Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Email with IIS & Exchange on same server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Email with IIS & Exchange on same server

 Post Reply Post Reply Page  12>
Author
djdementia View Drop Down
Newbie
Newbie
Avatar

Joined: 14 April 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote djdementia Quote  Post ReplyReply Direct Link To This Post Topic: Email with IIS & Exchange on same server
    Posted: 14 April 2004 at 12:49pm

I have a small network setup where my IIS and Exchange server are on the same box.

How do I setup the email notifications?  I only have experience with CDONTS, and from my experience I need to install the SMTP virtual server on the same box as the IIS server.  Since Exchange uses port 25 for SMTP, this does not seam feasable in my case.

I tried using CDOSYS, and I tried using "localhost", "externaldns.domain.net" and "internaldns.domain.local" for the SMTP server name, all 3 settings prdoduce the same error:

error '8004020f'

/forum/functions/functions_send_mail.asp, line 136

I'm using Windows 2000/IIS5 with Exchange 2000.

PS: I'm open to any other suggestions on best ways to accomplish my goal.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2004 at 2:02pm
Have a look at the following page on CDOSYS error codes:-

http://msdn.microsoft.com/library/en-us/cdosys/html/_cdosys_ error_codes.asp
Back to Top
djdementia View Drop Down
Newbie
Newbie
Avatar

Joined: 14 April 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote djdementia Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2004 at 6:47pm

Thank you -boRg-

I looked up that error and it shows

CDO_E_RECIPIENTS_REJECTED 0x8004020FL The server rejected one or more recipient addresses. The server response was: %1

 

However I feel that this is not the case, I believe this error is because I do not have an SMTP virtual server setup (I can't set one one on this machine because it is already an Exchange server).  AFAIK a SMTP Virtual Server is required for CDONTS and CDOSYS.

Is there a way to do this using the Exchange Server SMTP rather then a SMTP Virtual Server?

Back to Top
dbonline View Drop Down
Newbie
Newbie
Avatar

Joined: 16 September 2003
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbonline Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2004 at 9:22pm

How to troubleshoot SMTP on a server or anywhere:  TELENET

Telnet servername or ip 25   (telnet^IP^25)  ^=space

you should get a answer back. You can use this for TONS of testing just by changing the port of the service you wish to check, like 110,  3389, and the list goes on.

If you have Exchange on win2ksrv, you of course will already have Virtual server installed for smtp as exchange needs IIS. If your running this on SBS, with ISA, then you "might" run into issues, but do the telnet first. Once you get an answer, that is the value to use for the smtp email server function. The link that borg gave you should I think give you the link for the CDONTS file. I am running my forum on win2k3/IIS6 and have installed the CDONTS on my server. There are tons of people that complain about CDONTS, yet I've never had a problem with it.

Hope this helps

Back to Top
djdementia View Drop Down
Newbie
Newbie
Avatar

Joined: 14 April 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote djdementia Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2004 at 2:03pm

Telnet of course works because there is an Exchange server.

AFAIK Exchange does not require the SMTP virtual server as part of IIS because Exchange has it's own SMTP engine.  The Exchange server SMTP service has been working for a long time now (over a year), So I dont' see any problems there.

From what I understand CDONTS requires the SMTP Virtual Server to be installed correct?  That was my original problem/question.  How do I install the SMTP virtual server as part of IIS since Exchange is already running on port 25 (Telnet troubleshooting works) without any IIS SMTP service.  If I install the SMTP Virtual Server do I need to run it on a different port?  Do I need to modify any code in Web Wiz Forums to use this other port?

 

Thanks for the replies

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2004 at 9:30pm
It is actually a configuration in Exchange where you have to allow relaying from the IP address of your IIS, another option is to install Virtual SMTP and just configure it on another port, SMTP does hot have to run on 25
Back to Top
djdementia View Drop Down
Newbie
Newbie
Avatar

Joined: 14 April 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote djdementia Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 11:17am

Thank you Michael,

I'll take a look into the Relaying IP address, I figured since this would be coming from localhost that I wouldn't need to worry about relaying, but perhaps that is the case.

I did try to install the SMTP Virtual Server, but it seems that although it is installed, I cannot possibly add a Virtual Server (Option is unvailable).  I'm not sure, but I'm guessing it will not allow me to add one because this is on an Exchange server.

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 4:47pm

To verify the problem is with smtp and not with cdosys configuration...

Go to the mailroot sub directory in your inetpub directory. check out what's in the folders under mailroot. May get some clues. Also check your error logs.

To test if smtp is running properly...

Copy the following 4 lines into a .txt file:

From: emailaddress@someplace.com

To: emailaddress@someplace.com

Subject: testing

This is the test message body.


Change the email addresses to something you can check.

Copy the text file (not a shortcut) to the smtp pickup directory. On my XP machine, it's C:\Inetpub\mailroot\Pickup

Within a few seconds it should disappear from the directory and be mailed to the addresses.

Check the other directories inder mairoot to see if there are errors. If the .txt file doesn't disappear from the Pickup directory, stop and start smtp.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.