Print Page | Close Window

Email with IIS & Exchange on same server

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9997
Printed Date: 04 April 2026 at 12:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Email with IIS & Exchange on same server
Posted By: djdementia
Subject: Email with IIS & Exchange on same server
Date 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.




Replies:
Posted By: WebWiz-Bruce
Date 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 -


Posted By: djdementia
Date 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?



Posted By: dbonline
Date 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



Posted By: djdementia
Date 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



Posted By: michael
Date 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

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: djdementia
Date 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.



Posted By: dpyers
Date 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: mailto:emailaddress@someplace.com - emailaddress@someplace.com

To: mailto:emailaddress@someplace.com - 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.


Posted By: djdementia
Date Posted: 16 April 2004 at 7:53pm

Thank you for the suggestion dpyers,

It wasn't necessary though, michael hit my problem on the nose, I had to allow relaying and put in the internal IP address of my Exchange/IIS server.  Email is working now from Web Wiz Forums.

 

Thank you all for the assistance




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net