I posted this to an Exchange newsgroup but they seem to think this is a
"Developer Issue", so here it is again.
Kal
*********************************
I have access to two LANs each with an Exchange Server and a webserver.
There is an MSDN article "Sending SMTP Mail by Port 25 Using CDOSYS". I
copied this code and on the first network it worked perfectly. This one uses
Exchange 2000 on SBS 2000.
The server that worked has an address of 10.0.0.x and the exchange server
has an address of 10.0.0.y and relay explicitly allowed for 10.0.0.x. This
webserver is used for test and has no external ip address.
The webserver that does not work has two addresses 10.1.1.x and
209.111.251.y (assigned to the website). The exchange server has an address
of 10.1.1.z and relay explicitly allowed for 10.1.1.x. This one is Exchange
2003 on Windows 2003 with Intelligent Message Filter and recipient
filtering. I have tried it with both from and to addresses resident on the
Exchange Server and with other combinations of addresses.
The page fails with the not very informative error in the subject. I added
an explicit route for 10.1.1.0 but it made no difference. Does the webserver
try to send the message via the external address? If so, I suppose this is
seen as a forbidden relay.
Is there a solution?
The above is as posted to the public.inetserver.iis.smtp_nntp group a few
days ago, but have not received useful feedback.
Since then I have repeated the experiment from two other computers with only
one NIC, the address of which is explicitly allowed to relay. The error
message here is:
a.. Error Type:
(0x80040211)
/email/msdnEmail.asp, line 55
(This is the '.Send' line)
************
Or we can simplify the question: How do you "Sending SMTP Mail by Port 25
Using CDOSYS" when the SMTP server is Exchange Server 2003 with Intelligent
Message Filter and Recipient Filter?
Kal