IIS and SMTP - IIS SMTP server - won't send to our mail server

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > January 2006 > IIS SMTP server - won't send to our mail server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author IIS SMTP server - won't send to our mail server
David Thielen

2005-12-29, 2:51 am

Hi;

I am testing using the IIS SMTP server for when my web app
(java-based, not asp) sends an email. The Java code to send the mail
reports success (and returned an error the first time until I allowed
a relay from my test system).

Note: In this case I am sending from my workstation (running IIS to
test) to the SMTP server on the web server which is sending email to
me - where our mail server is exchange on a second server. All 3 boxes
are on the same subnet and behind the firewall. One thing that might
be an issue, the web server (SMTP box) is our external DNS server so
it will probably get the external IP address of our mail (exchange)
server. And the firewall won't allow a connection that goes out and
loops back in. Could this be the issue?

The log shows the following (the IP address is my workstation, where I
am running the Java app on IIS from):
21:13:22 192.168.200.129 EHLO - 250
21:13:22 192.168.200.129 MAIL - 250
21:13:22 192.168.200.129 RCPT - 250
21:13:22 192.168.200.129 RCPT - 250
21:13:22 192.168.200.129 DATA - 250
21:13:22 192.168.200.129 QUIT - 240


When I ran the test, I first had two files in
c:\InetPub\mailroot\Queue
(there is a To: and a BCC. Then after about a minute there were 6
files in
the Badmail directory.

The .BDR file is:
Unable to deliver this message because the follow error was
encountered:
"This message is a delivery status notification that cannot be
delivered.".

The specific error code was 0xC00402C7.

The message sender was <>.

The message was intended for the following recipients.
order@windward.net

Any ideas?

--
thanks - dave

ps - just sent to an email address outside and it worked fine. So...
how can I set this up to send to internal email addresses too? We
always BCC these emails to an internal list so this is a critical
need.


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
David Thielen

2006-01-03, 8:58 pm

Asking again.

thanks - dave


On Wed, 28 Dec 2005 20:14:06 -0700, David Thielen <david@windward.net>
wrote:

>Hi;
>
>I am testing using the IIS SMTP server for when my web app
>(java-based, not asp) sends an email. The Java code to send the mail
>reports success (and returned an error the first time until I allowed
>a relay from my test system).
>
>Note: In this case I am sending from my workstation (running IIS to
>test) to the SMTP server on the web server which is sending email to
>me - where our mail server is exchange on a second server. All 3 boxes
>are on the same subnet and behind the firewall. One thing that might
>be an issue, the web server (SMTP box) is our external DNS server so
>it will probably get the external IP address of our mail (exchange)
>server. And the firewall won't allow a connection that goes out and
>loops back in. Could this be the issue?
>
>The log shows the following (the IP address is my workstation, where I
>am running the Java app on IIS from):
>21:13:22 192.168.200.129 EHLO - 250
>21:13:22 192.168.200.129 MAIL - 250
>21:13:22 192.168.200.129 RCPT - 250
>21:13:22 192.168.200.129 RCPT - 250
>21:13:22 192.168.200.129 DATA - 250
>21:13:22 192.168.200.129 QUIT - 240
>
>
>When I ran the test, I first had two files in
>c:\InetPub\mailroot\Queue
>(there is a To: and a BCC. Then after about a minute there were 6
>files in
>the Badmail directory.
>
>The .BDR file is:
>Unable to deliver this message because the follow error was
>encountered:
>"This message is a delivery status notification that cannot be
>delivered.".
>
>The specific error code was 0xC00402C7.
>
>The message sender was <>.
>
>The message was intended for the following recipients.
> order@windward.net
>
>Any ideas?



david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Jeff Cochran

2006-01-04, 2:56 am


Check SMTP log entries. Tell us what OS versions. Make sure you have
valid sender and destination addresses, and that the system can
resolve the MX record for the destination domain.

Jeff

On Tue, 03 Jan 2006 19:39:13 -0700, David Thielen <david@windward.net>
wrote:

>Asking again.
>
>thanks - dave
>
>
>On Wed, 28 Dec 2005 20:14:06 -0700, David Thielen <david@windward.net>
>wrote:
>
>
>
>david@at-at-at@windward.dot.dot.net
>Windward Reports -- http://www.WindwardReports.com
>me -- http://dave.thielen.com


David Thielen

2006-01-04, 6:27 pm

Hi;

The log is below. The O/S is Windows 2003 with all the latest service
packs. The MX record is good because we get email fine from the rest
of the world.

However... the MX record is for the external IP address of the mail
server, not the internal one (we use NAT on our firewall). And the
webserver box is also our external DNS box.

??? - thanks - dave


On Wed, 04 Jan 2006 04:37:36 GMT, jeff.nospam@zina.com (Jeff Cochran)
wrote:
[vbcol=seagreen]
>
>Check SMTP log entries. Tell us what OS versions. Make sure you have
>valid sender and destination addresses, and that the system can
>resolve the MX record for the destination domain.
>
>Jeff
>
>On Tue, 03 Jan 2006 19:39:13 -0700, David Thielen <david@windward.net>
>wrote:
>


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Jeff Cochran

2006-01-06, 2:59 am

On Wed, 04 Jan 2006 11:23:00 -0700, David Thielen <david@windward.net>
wrote:

>Hi;
>
>The log is below. The O/S is Windows 2003 with all the latest service
>packs. The MX record is good because we get email fine from the rest
>of the world.


Are you sening to yourself? The log is only for your workstationa nd
shows the mail moving fine. The MX record is fr the destination
server, if it's yours, then there shouldn't be an issue because the
mail is going from your system to your system, there's no transfer.

>However... the MX record is for the external IP address of the mail
>server, not the internal one (we use NAT on our firewall). And the
>webserver box is also our external DNS box.


NSLOOKUP will tell you if the destination address in the message can
be resolved correctly. Have you tested your SMTP server outside of
the app you wrote? Do you have a valis message being produced by your
app? Print the message and see.

Jeff


>??? - thanks - dave
>
>
>On Wed, 04 Jan 2006 04:37:36 GMT, jeff.nospam@zina.com (Jeff Cochran)
>wrote:
>
>
>
>david@at-at-at@windward.dot.dot.net
>Windward Reports -- http://www.WindwardReports.com
>me -- http://dave.thielen.com


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com