Troubleshooting IIS SMTP

If you have been using IIS SMTP, you will notice that it is actually quite hard to troubleshoot SMTP related issues. Ranging from event id 4000, to mail stuck in pickup, queue and bad mail folders. Normally, I would suggest users to try the following:
XFOR: How to Test Outbound Mail Flow With a File in the Pickup Folder
http://support.microsoft.com/?id=297700

The above simply test the basic function of SMTP. Just create a plain text file with the specified format. If SMTP is working, the mail will be delivered. Now, normally when mails get stuck in the server, it is mostly due to DNS issue. Meaning the SMTP component can't resolve the recipient's email domain MX record. In IIS 5.1 and below IIS SMTP only support TCP DNS queries, if it failed the mail will not be delivered. Only W2k3 or IIS 6.0 support either TCP or UDP Mode. So, to test the whether is DNS issue, try the following kb:
XCON: Windows 2000 and Exchange 2000 SMTP Use TCP DNS Queries
http://support.microsoft.com/?id=263237

The entire process is not that user friendly and required you to do certain troubleshooting. Today or I mean just now, I came across this new diagnostic tool called SMTPDiag, sent by Chris Adam to Brett's mailing list. Awesome Tool ! It helps you to troubleshooting the DNS resolution issues, further test the connection to the remote hosts and more. It DOES NOT need Exchange 2003, it only needs SMTP component.

The tool is super tiny :) only 96k ! here's the sample output of the diagnostic process.

D:\Tools\SmtpDiag>SmtpDiag.exe “sender@sender.com“blabla@gmail.com“ /v
Searching for Exchange external DNS settings.
Computer name is XXXXX.
Failed to connect to the domain controller. Error: 8007054b  << you can ignore this

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.

Checking TCP/UDP SOA serial number using DNS server [xxx.xxx.xxx.xxx].
TCP test succeeded.
UDP test failed.    << W2K behavior
Serial number: 2004092100

Checking TCP/UDP SOA serial number using DNS server [xxx.xxx.xxx.xxx].
TCP test succeeded.
UDP test failed.
Serial number: 2004092100
SOA serial number match: Passed.

Checking local domain records.
Starting TCP and UDP DNS queries for the local domain. This test will try to validate that DNS is set up correctly for inbound mail. This test can fail for
3 reasons.
    1) Local domain is not set up in DNS. Inbound mail cannot be routed tolocal mailboxes.
    2) Firewall blocks TCP/UDP DNS queries. This will not affect inbound mail,but will affect outbound mail.
    3) Internal DNS is unaware of external DNS settings. This is a valid configuration for certain topologies.
Checking MX records using TCP: sender.com.
  A:     sender.com [xxx.xxx.xxx.xxx]
Checking MX records using UDP: sender.com.
  A:     sender.com [xxx.xxx.xxx.xxx]   << amazingly this test domain, can query via UDP
Both TCP and UDP queries succeeded. Local DNS test passed.

Checking remote domain records.
Starting TCP and UDP DNS queries for the remote domain. This test will try to validate that DNS is set up correctly for outbound mail. This test can fail for 3 reasons.
    1) Firewall blocks TCP/UDP queries which will block outbound mail. Windows 2000/NT Server requires TCP DNS queries. Windows Server 2003 will use UDP queries first, then fall back to TCP queries.
    2) Internal DNS does not know how to query external domains. You must either use an external DNS server or configure DNS server to query external domains.
    3) Remote domain does not exist. Failure is expected.
Checking MX records using TCP: gmail.com.
  MX:    gsmtp171.google.com (10)
  MX:    gsmtp57.google.com (20)
  A:     gsmtp171.google.com [64.233.171.27]
  A:     gsmtp57.google.com [216.239.57.27]
Checking MX records using UDP: gmail.com.
  MX:    gsmtp171.google.com (10)
  MX:    gsmtp57.google.com (20)
Both TCP and UDP queries succeeded. Remote DNS test passed.

Checking MX servers listed for blabla@gmail.com.
Connecting to gsmtp171.google.com [64.233.171.27] on port 25.
Received:
220 mx.gmail.com ESMTP 73si601551rna
Sent:
ehlo sender.com

Received:
250-mx.gmail.com at your service
250-SIZE 20971520
250 8BITMIME
Sent:
mail from: <
sender@sender.com>
Received:
250 OK
Sent:
rcpt to: <
blabla@gmail.com>
Received:
250 OK
Sent:
quit

Received:
221 mx.gmail.com closing connection
Successfully connected to gsmtp171.google.com.
Connecting to gsmtp57.google.com [216.239.57.27] on port 25.

Received:
220 mx.gmail.com ESMTP v71si245850cwb
Sent:
ehlo sender.com
Received:
250-mx.gmail.com at your service
250-SIZE 20971520
250 8BITMIME
Sent:
mail from: <
sender@sender.com>
Received:
250 OK
Sent:
rcpt to: <
qbernard@gmail.com>
Received:
250 OK
Sent:
quit
Received:
221 mx.gmail.com closing connection

Successfully connected to gsmtp57.google.com.

This is a so kewl !!!!  Try it out !

Published Tuesday, September 28, 2004 3:48 PM by bernard
Filed under: ,

Comments

# Six degrees from Brent to Bernard to Minasi

Tuesday, September 28, 2004 11:26 PM by TrackBack

# Six degrees from Brett to Bernard to Minasi

Wednesday, September 29, 2004 7:01 AM by TrackBack

# re: Troubleshooting IIS SMTP

good

Monday, November 22, 2004 1:23 AM by bernard

# re: Troubleshooting IIS SMTP

Hey, I tried exactly that with the SMTPDiag tool but You know where it says TCP test succeeded.
UDP test failed.

I got just the opposite:
TCP test failed.
UDP test succeeded.

Can you help me ??? I need to know how to fix this. Please...

-Satish

Tuesday, March 22, 2005 10:23 AM by bernard

# re: Troubleshooting IIS SMTP

Just confirm, what OS you running now ? W2k3 ?
As for the tcp port issue, you need to verfiy that tcp port 53 is not blocked by firewall or router access list

Tuesday, March 22, 2005 10:44 AM by bernard

# re: Troubleshooting IIS SMTP

I am running Windows 2003 standard edition and the built in firewall is not enabled. Is there something else i can check

Tuesday, March 22, 2005 11:54 AM by bernard

# re: Troubleshooting IIS SMTP

It is fine then. Since this is W2k3, it will try UDP first. Anyway, this is just one part of the diag process, and whether UDP or TCP will do, as long as not both are failed. what's the problem you facing ? what about other diagnostic output ?

Tuesday, March 22, 2005 12:14 PM by bernard

# re: Troubleshooting IIS SMTP

My problem is that I am unable to send email outside my dedicated server. I have a dedicated server which is running my site www.zalavadia.com it is running IIS 6 and i can receive email and I am able to POP the email to my outlook client, however in the outlook client I can't use the smpt for my dedicated server because it just wont' send out emails. This is my out put from the smtpDiag

Searching for Exchange external DNS settings.
Computer name is D00110991E211.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.
DNS server [66.235.217.202] did not return a valid SOA record.
SOA serial number match: Failed with one or more failures.

Checking local domain records.
Checking MX records using TCP: zalavadia.com.
Warning: The TCP DNS query returned no results.
Checking MX records using UDP: zalavadia.com.

Checking remote domain records.
Checking MX records using TCP: gmail.com.
Warning: The TCP DNS query returned no results.
Checking MX records using UDP: gmail.com.

Checking MX servers listed for satish.zalavadia@gmail.com.
Connecting to gsmtp185.google.com [64.233.185.27] on port 25.
Successfully connected to gsmtp185.google.com.
Connecting to gsmtp171.google.com [64.233.171.27] on port 25.
Successfully connected to gsmtp171.google.com.
Connecting to gsmtp57.google.com [216.239.57.27] on port 25.
Successfully connected to gsmtp57.google.com.

What do you think this could be?

Tuesday, March 22, 2005 12:40 PM by bernard

# re: Troubleshooting IIS SMTP

Post the other part of the log, the log is not complete. Not sure why.

Have you try other domain other than gmail ?

Tuesday, March 22, 2005 1:19 PM by bernard

# re: Troubleshooting IIS SMTP

I have tried yahoo too. Here is the output from yahoo.

Searching for Exchange external DNS settings.
Computer name is D00110991E211.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for yahoo.com.
Checking external DNS servers.
Checking internal DNS servers.

Checking TCP/UDP SOA serial number using DNS server [66.235.216.48].
TCP test failed.
UDP test succeeded.
Serial number: 2005032118

Checking TCP/UDP SOA serial number using DNS server [64.70.61.131].

Checking TCP/UDP SOA serial number using DNS server [66.235.217.202].
Failed: DNS server [66.235.217.202] may be down.
DNS server [66.235.217.202] did not return a valid SOA record.
SOA serial number match: Failed with one or more failures.

Checking local domain records.
Starting TCP and UDP DNS queries for the local domain. This test will try to
validate that DNS is set up correctly for inbound mail. This test can fail for
3 reasons.
1) Local domain is not set up in DNS. Inbound mail cannot be routed to
local mailboxes.
2) Firewall blocks TCP/UDP DNS queries. This will not affect inbound mail,
but will affect outbound mail.
3) Internal DNS is unaware of external DNS settings. This is a valid
configuration for certain topologies.
Checking MX records using TCP: zalavadia.com.
Warning: The TCP DNS query returned no results.
Checking MX records using UDP: zalavadia.com.
MX: MAIL.zalavadia.com (10)
A: MAIL.zalavadia.com [66.235.214.81]
A: NS21.WORLDNIC.com [216.168.228.13]
A: NS22.WORLDNIC.com [216.168.225.152]

Checking remote domain records.
Starting TCP and UDP DNS queries for the remote domain. This test will try to
validate that DNS is set up correctly for outbound mail. This test can fail for
3 reasons.
1) Firewall blocks TCP/UDP queries which will block outbound mail. Windows
2000/NT Server requires TCP DNS queries. Windows Server 2003 will use UDP
queries first, then fall back to TCP queries.
2) Internal DNS does not know how to query external domains. You must
either use an external DNS server or configure DNS server to query external
domains.
3) Remote domain does not exist. Failure is expected.
Checking MX records using TCP: yahoo.com.

Successfully connected to mx4.mail.yahoo.com.
Connecting to mx4.mail.yahoo.com [68.142.202.112] on port 25.
Received:
220 YSmtp mta120.mail.mud.yahoo.com ESMTP service ready

Sent:
ehlo zalavadia.com

Received:
250-mta120.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <satish@zalavadia.com>

Received:
250 sender <satish@zalavadia.com> ok

Sent:
rcpt to: <satish_zalavadia@yahoo.com>

Received:
250 recipient <satish_zalavadia@yahoo.com> ok

Sent:
quit

Received:
221 mta120.mail.mud.yahoo.com

Successfully connected to mx4.mail.yahoo.com.

Tuesday, March 22, 2005 1:39 PM by bernard

# re: Troubleshooting IIS SMTP

I don't see any error with the above log. do you get any mail in your yahoo mailbox ?

try send it using this method
http://support.microsoft.com/?id=297700

if not working, anything in smtp log file ?

Tuesday, March 22, 2005 2:01 PM by bernard

# re: Troubleshooting IIS SMTP

Hey listen, thank you for taking the time to look at my problem. I saw no errors in the log and i didn't see any emails in yahoo , hotmail or gmail. I did a port scan and all necessary ports r ok. Anyhow, thanks for ur help, i just used no-ip and forwarded email to there and it went through fine. Weird.

Wednesday, March 23, 2005 10:16 AM by bernard

# re: Troubleshooting IIS SMTP

This could happen when the remote server blacklist you or etc. I have a smtp test server that can only send to yahoo mailbox, but not gmail or hotmail, because both gmail and hotmail doesn't recognize the smtp box, etc. hence though it got deliever, but it doesn't reach the mail box.

Wednesday, March 23, 2005 11:41 AM by bernard

# re: Troubleshooting IIS SMTP

We run MS Exchange 5.5 on an NT 4.0 box.
Our mx record points to our public IP address.
Our firewall then forwards SMTP email to our Exchange 5.5
We have been successfully sending/receiving internet email for years and do not have an open relay.

Let's call my internet email domain address abcdnet.com. This as well as mail.abcdnet.com point to our public IP address.

Last week I setup a Windows 2000 IIS server to act as a SMTP relay for inbound mail only. I got it to work and it worked fairly well until yesterday. I started to receive event log messages stating:
"Message delivery to remote domain 'abcdnet.com' failed ...: The connection was dropped by the remote host'.

I'm not sure why after 5 days of working this started to happen. How would I trouble shoot this? Here is what I did when I installed the SMTP relay.

1) Edited Exchange Server's file c:\winnt\system32\driver\etc\services to default SMTP to port 26 (previously 25).

2) On the IIS box Default SMTP Server Properties->General->Connection I changed the Outgoing TCP port to 26

3) On the IIS box UNDER the Default SMTP Server I created a remote domain named called "abcdnet.com". Under properties I have checked 'Allow incoming mail to be relayed through this domain' checked. I also 'Forward all mail to smart host': internal IP address of Exchange Server.

4) I then pointed the smtp port in the firewall to point to the IIS box.


This setup was partially due to Symantec's suggestions for setting up a relay to be used with their anti-spam server, which is currently not setup.

So I am wondering if perhaps I did something wrong. It worked for 4 days then stopped. We did get hit by a lot of virus emails yesterday (sobe?) so we did have a higher than normal load, yet nothing seems to have become infected. It as if the SMTP relay got bogged down somehow. Everythign was working fine then just not.

Friday, May 06, 2005 1:49 AM by bernard

# re: Troubleshooting IIS SMTP

Hi Joe,

What kind of mail volume we are looking here? 10K per day? did you actually found any 'mails' stuck in badmail/drop under the mailroot/ folder? Lastly, any errors in smtp log?

I have seen this behavior before in one of my previous setup. Roughly 40K mails a day, hence the log is huge and you never know whether the mail really get delivered or not, it just too many. This could be due to heavy traffic and at that particular time. Under default setup, smtp will try to resend the mail. What you need to do one is to check if user complaint about mail not being delivered, then check the mail folder and smtp log to see if there's more clues to troubleshoot.

Cheers.

Monday, May 09, 2005 10:46 AM by bernard

# re: Troubleshooting IIS SMTP

Having 'internal dns error' for the past 6 months. After running fine for few hours, my dedicated server will fail.

Upon failure. I get the following results:
- ping an external IP fails
- ping an external domain (ip show up) fails
- ping internal domain OK
- nslookup for internal and external domains OK
- Browser fails on both internal and external website.
- Email client can access mails
- Email client can send mails but mails will get stuck in queue for resend.
- Web cdo mail fails, goes to queue for resend.

After rebooting the server, all mail queue will goes out. All the abovemention problems do not exist until several hours later.

Any suggestions would be greatly appreciated.

Larry
http://www.geromail.com

Friday, July 29, 2005 8:28 PM by bernard

# re: Troubleshooting IIS SMTP

Can you run smtpdiag when the problem occurs? use verbose mode and post the output here.

Saturday, July 30, 2005 10:55 AM by bernard

# re: Troubleshooting IIS SMTP

I am having trouble with my email. I am able to send email to some accounts and others it fails. I ran the SMPTdiagtool and get the following.

error expected 250 smtp.pp.htv.fi

I'm not sure what is happening. I also notice that emails to AOL fail.

Thanks

HW

Friday, August 12, 2005 5:27 AM by bernard

# re: Troubleshooting IIS SMTP

Can you post the complete smtpdiag log? I'm guessing the remote mail server rejected the mail. pls look at the smtp log files. It could be your mail host is not a valid host (e.g. complete with reverse lookup dns record), not in whitelist or it's blacklisted, etc.

And it's not really smtp issue as you can send to certain domains, but rather the smtp host itself been able to send mail like the rest of those valid mail server.

Friday, August 12, 2005 2:51 PM by bernard

# re: Troubleshooting IIS SMTP

I'm also having touble sending email form a windows 2003 server. I downloaded SMTPDiag and below afre the results, Unfortunatly I'm much more of a developer than a network guy, do you have any ideas what the problem might be? Thanks for you help.


Searching for Exchange external DNS settings.
Computer name is NS1.
Failed to connect to the domain controller. Error: 8007054b

Checking SOA for yahoo.com.
Checking external DNS servers.
Checking internal DNS servers.

Checking TCP/UDP SOA serial number using DNS server [70.84.160.11].
TCP test failed.
UDP test succeeded.
Serial number: 2005081508

Checking TCP/UDP SOA serial number using DNS server [70.84.161.11].
TCP test failed.
UDP test succeeded.
Serial number: 2005081508
SOA serial number match: Passed.

Checking local domain records.
Starting TCP and UDP DNS queries for the local domain. This test will try to
validate that DNS is set up correctly for inbound mail. This test can fail for
3 reasons.
1) Local domain is not set up in DNS. Inbound mail cannot be routed to
local mailboxes.
2) Firewall blocks TCP/UDP DNS queries. This will not affect inbound mail,
but will affect outbound mail.
3) Internal DNS is unaware of external DNS settings. This is a valid
configuration for certain topologies.
Checking MX records using TCP: hubshift.com.
Warning: The TCP DNS query returned no results.
Checking MX records using UDP: hubshift.com.
MX: mailstore1.secureserver.net (10)
MX: smtp.secureserver.net (0)
A: smtp.secureserver.net [64.202.166.12]
A: mailstore1.secureserver.net [64.202.166.11]
A: PARK5.secureserver.net [64.202.165.110]
A: PARK6.secureserver.net [64.202.167.149]

Checking remote domain records.
Starting TCP and UDP DNS queries for the remote domain. This test will try to
validate that DNS is set up correctly for outbound mail. This test can fail for
3 reasons.
1) Firewall blocks TCP/UDP queries which will block outbound mail. Windows
2000/NT Server requires TCP DNS queries. Windows Server 2003 will use UDP
queries first, then fall back to TCP queries.
2) Internal DNS does not know how to query external domains. You must
either use an external DNS server or configure DNS server to query external
domains.
3) Remote domain does not exist. Failure is expected.
Checking MX records using TCP: yahoo.com.
Warning: The TCP DNS query returned no results.
Checking MX records using UDP: yahoo.com.
MX: mx3.mail.yahoo.com (1)
MX: mx4.mail.yahoo.com (5)
MX: mx1.mail.yahoo.com (1)
MX: mx2.mail.yahoo.com (1)
A: mx1.mail.yahoo.com [67.28.113.10]
A: mx1.mail.yahoo.com [67.28.113.11]
A: mx1.mail.yahoo.com [4.79.181.14]
A: mx1.mail.yahoo.com [4.79.181.15]
A: mx2.mail.yahoo.com [67.28.114.35]
A: mx2.mail.yahoo.com [67.28.114.36]
A: mx2.mail.yahoo.com [4.79.181.13]
A: mx2.mail.yahoo.com [64.156.215.8]
A: mx3.mail.yahoo.com [4.79.181.12]
A: mx3.mail.yahoo.com [64.156.215.5]
A: mx3.mail.yahoo.com [64.156.215.6]
A: mx3.mail.yahoo.com [64.156.215.18]
A: mx4.mail.yahoo.com [67.28.113.19]
A: mx4.mail.yahoo.com [68.142.202.11]
A: mx4.mail.yahoo.com [68.142.202.12]
A: mx4.mail.yahoo.com [66.218.86.156]

Checking MX servers listed for kywillis@yahoo.com.
Connecting to mx3.mail.yahoo.com [64.156.215.18] on port 25.
Received:
220 mta340.mail.scd.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta340.mail.scd.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta340.mail.scd.yahoo.com

Successfully connected to mx3.mail.yahoo.com.
Connecting to mx3.mail.yahoo.com [64.156.215.6] on port 25.
Received:
220 mta189.mail.scd.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta189.mail.scd.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta189.mail.scd.yahoo.com

Successfully connected to mx3.mail.yahoo.com.
Connecting to mx3.mail.yahoo.com [64.156.215.5] on port 25.
Received:
220 mta151.mail.scd.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta151.mail.scd.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta151.mail.scd.yahoo.com

Successfully connected to mx3.mail.yahoo.com.
Connecting to mx2.mail.yahoo.com [64.156.215.8] on port 25.
Received:
220 mta311.mail.scd.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta311.mail.scd.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta311.mail.scd.yahoo.com

Successfully connected to mx2.mail.yahoo.com.
Connecting to mx2.mail.yahoo.com [4.79.181.13] on port 25.
Received:
220 mta153.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta153.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta153.mail.mud.yahoo.com

Successfully connected to mx2.mail.yahoo.com.
Connecting to mx2.mail.yahoo.com [67.28.114.36] on port 25.
Received:
220 mta202.mail.dcn.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta202.mail.dcn.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta202.mail.dcn.yahoo.com

Successfully connected to mx2.mail.yahoo.com.
Connecting to mx1.mail.yahoo.com [4.79.181.15] on port 25.
Received:
220 mta242.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta242.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta242.mail.mud.yahoo.com

Successfully connected to mx1.mail.yahoo.com.
Connecting to mx1.mail.yahoo.com [4.79.181.14] on port 25.
Received:
220 mta219.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta219.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta219.mail.mud.yahoo.com

Successfully connected to mx1.mail.yahoo.com.
Connecting to mx1.mail.yahoo.com [67.28.113.11] on port 25.
Received:
220 mta183.mail.re2.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta183.mail.re2.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta183.mail.re2.yahoo.com

Successfully connected to mx1.mail.yahoo.com.
Connecting to mx2.mail.yahoo.com [67.28.114.35] on port 25.
Received:
220 mta140.mail.dcn.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta140.mail.dcn.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta140.mail.dcn.yahoo.com

Successfully connected to mx2.mail.yahoo.com.
Connecting to mx1.mail.yahoo.com [67.28.113.10] on port 25.
Received:
220 mta135.mail.re2.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta135.mail.re2.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta135.mail.re2.yahoo.com

Successfully connected to mx1.mail.yahoo.com.
Connecting to mx3.mail.yahoo.com [4.79.181.12] on port 25.
Received:
220 mta113.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta113.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta113.mail.mud.yahoo.com

Successfully connected to mx3.mail.yahoo.com.
Connecting to mx4.mail.yahoo.com [66.218.86.156] on port 25.
Received:
220 mta263.mail.scd.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta263.mail.scd.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta263.mail.scd.yahoo.com

Successfully connected to mx4.mail.yahoo.com.
Connecting to mx4.mail.yahoo.com [68.142.202.12] on port 25.
Received:
220 mta230.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta230.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta230.mail.mud.yahoo.com

Successfully connected to mx4.mail.yahoo.com.
Connecting to mx4.mail.yahoo.com [68.142.202.11] on port 25.
Received:
220 mta217.mail.mud.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta217.mail.mud.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta217.mail.mud.yahoo.com

Successfully connected to mx4.mail.yahoo.com.
Connecting to mx4.mail.yahoo.com [67.28.113.19] on port 25.
Received:
220 mta213.mail.re2.yahoo.com ESMTP YSmtp service ready

Sent:
ehlo hubshift.com

Received:
250-mta213.mail.re2.yahoo.com
250-8BITMIME
250-SIZE 31981568
250 PIPELINING


Sent:
mail from: <kywillis@hubshift.com>

Received:
250 sender <kywillis@hubshift.com> ok

Sent:
rcpt to: <kywillis@yahoo.com>

Received:
250 recipient <kywillis@yahoo.com> ok

Sent:
quit

Received:
221 mta213.mail.re2.yahoo.com

Successfully connected to mx4.mail.yahoo.com.

Tuesday, August 16, 2005 5:34 AM by bernard

# re: Troubleshooting IIS SMTP

From the log, it shows that your smtp is working correctly. Are you experiencing the mail get sent but not received at the other end? e.g. emails not delivered to hotmail/yahoo mailbox. The possible reason that your mail hosts is blacklisted, or doesn't pass their filter rules (e.g. has a valid reverse lookup name), etc.

Wednesday, August 17, 2005 9:55 AM by bernard

# Question: SMTP not sending mail

Friday, October 07, 2005 1:48 PM by TrackBack

# Question: SMTP not sending mail

Friday, October 07, 2005 1:59 PM by TrackBack

# re: Troubleshooting IIS SMTP

Hi,

I am unable to send emails to yahoo/gmail or hotmail a/c . I am using win2003 server with iis 6. I am able to send mails within the organization but not able to send it to other accounts.I get a delivery failure . The event log log returns this message

=========================================

Message delivery to the host '66.249.83.114' failed while delivering to the remote domain 'gmail.com' for the following reason: The remote server did not respond to a connection attempt.

==========================================

Any pointers on what could be the reason.


The reports after running the smtpdiag are these..


Searching for Exchange external DNS settings.
Computer name is E2ESCV2.
Failed to bind to search. Error: 8007054b

Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.

Checking TCP/UDP SOA serial number using DNS server [16.138.16.52].
TCP test succeeded.
UDP test succeeded.
Serial number: 2005122000

Checking TCP/UDP SOA serial number using DNS server [16.138.16.104].
TCP test succeeded.
UDP test succeeded.
Serial number: 2005122000
SOA serial number match: Passed.

Checking local domain records.
Starting TCP and UDP DNS queries for the local domain. This test will try to
validate that DNS is set up correctly for inbound mail. This test can fail for
3 reasons.
1) Local domain is not set up in DNS. Inbound mail cannot be routed to
local mailboxes.
2) Firewall blocks TCP/UDP DNS queries. This will not affect inbound mail,
but will affect outbound mail.
3) Internal DNS is unaware of external DNS settings. This is a valid
configuration for certain topologies.
Checking MX records using TCP: xx.com.
MX: smtp.xx.com (10)
MX: smtpx.xx.com (30)
A: smtp.xx.com [192.151.81.254]
A: smtpx.xx.com [15.81.168.21]
A: smtpx.xx.com [15.81.176.20]
A: smtpx.xx.com [15.81.176.21]
A: smtpx.xx.com [15.45.89.154]
A: smtpx.xx.com [15.45.89.155]
A: smtpx.xx.com [15.45.89.156]
A: smtpx.xx.com [15.45.89.157]
A: smtpx.xx.com [15.81.168.20]
Checking MX records using UDP: xx.com.
MX: smtp.xx.com (10)
MX: smtpx.xx.com (30)
A: smtp.xx.com [192.151.81.254]
A: smtpx.xx.com [15.81.176.20]
A: smtpx.xx.com [15.81.176.21]
A: smtpx.xx.com [15.45.89.154]
A: smtpx.xx.com [15.45.89.155]
A: smtpx.xx.com [15.45.89.156]
A: smtpx.xx.com [15.45.89.157]
A: smtpx.xx.com [15.81.168.20]
A: smtpx.xx.com [15.81.168.21]
Both TCP and UDP queries succeeded. Local DNS test passed.

Checking remote domain records.
Starting TCP and UDP DNS queries for the remote domain. This test will try to
validate that DNS is set up correctly for outbound mail. This test can fail for
3 reasons.
1) Firewall blocks TCP/UDP queries which will block outbound mail. Windows
2000/NT Server requires TCP DNS queries. Windows Server 2003 will use UDP
queries first, then fall back to TCP queries.
2) Internal DNS does not know how to query external domains. You must
either use an external DNS server or configure DNS server to query external
domains.
3) Remote domain does not exist. Failure is expected.
Checking MX records using TCP: gmail.com.
MX: gmail-smtp-in.l.google.com (5)
MX: gsmtp83.google.com (10)
MX: gsmtp163.google.com (10)
MX: gsmtp185.google.com (10)
MX: gsmtp83-2.google.com (10)
MX: gsmtp185-2.google.com (10)
A: gsmtp83.google.com [66.249.83.27]
A: gsmtp163.google.com [64.233.163.27]
A: gsmtp185.google.com [64.233.185.27]
A: gsmtp83-2.google.com [66.249.83.114]
Checking MX records using UDP: gmail.com.
MX: gmail-smtp-in.l.google.com (5)
MX: gsmtp83.google.com (10)
MX: gsmtp163.google.com (10)
MX: gsmtp185.google.com (10)
MX: gsmtp83-2.google.com (10)
MX: gsmtp185-2.google.com (10)
Both TCP and UDP queries succeeded. Remote DNS test passed.
A: gmail-smtp-in.l.google.com [64.233.163.27]
A: gmail-smtp-in.l.google.com [64.233.163.114]
A: gsmtp185-2.google.com [64.233.185.114]

Checking MX servers listed for pradykris@gmail.com.
Connecting to gmail-smtp-in.l.google.com [64.233.163.114] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to gmail-smtp-in.l.google.com [64.233.163.27] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to gsmtp185-2.google.com [64.233.185.114] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gsmtp185-2.google.com.
Connecting to gsmtp83-2.google.com [66.249.83.114] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gsmtp83-2.google.com.
Connecting to gsmtp185.google.com [64.233.185.27] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gsmtp185.google.com.
Connecting to gsmtp163.google.com [64.233.163.27] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gsmtp163.google.com.
Connecting to gsmtp83.google.com [66.249.83.27] on port 25.
Connecting to the server failed. Error: 10061
Failed to submit mail to gsmtp83.google.com.

Thursday, January 12, 2006 2:40 AM by Prady

# re: Troubleshooting IIS SMTP

Hi Prady,
Obviously from the event log and smtpdiag log. it is indicating that your host is unable to connect to the remote smtp server on port 25. Make sure this port is not blocked by your firewall, etc.

Saturday, January 14, 2006 6:38 AM by qbernard

# re: Troubleshooting IIS SMTP

HI,
I have a few questions.
I have Windows 2K with IIS with Frontpage Extentions running. I want to be able to setup Forms in Frontpage so that when the form is filled out, it will be sent to an email address. Right now when I try this, I get an Event Log saying "unknown email address".
I guess my question is in IIS, is the Virtual SMTP Server the only thing that has to be setup to get this to work?

I found some information on how to setup the Virtual SMTP Server but it is still confusing. For example, in IIS under the SMTO Virtual Server under Domain, select NEW - DOMAIN then I have a choose between Remote or Alias, I think this should be Remote so I choose Remote. Then it asks "What is the address space of mail that is to be delivered by this domain? Do I just make up a name and put it in the box??? I did try that but I get the error mentioned above.

Thanks for any help.

Thursday, January 19, 2006 3:30 PM by Norm

# re: Troubleshooting IIS SMTP

Err. I think you are having another problem. It looks like you are confuse with SMTP and not SMTP is not sending mail.
a) first of all, your Frontpage question. To be frank - I'm not sure, coz I never use frontpage before :( anyway - try post it to frontpage newsgroup.

b) IIS SMTP is design to help you relay emails. I don't configure any remote or alias for new virtual server as the default one is enough to fulfill my needs.

So, first, you need to understand what you want to do? to relay email? forward to smart host? or ?

Here's some generic SMTP KB that should give you a better picture.
HOW TO: Configure the SMTP Virtual Server for Message Delivery
http://support.microsoft.com/?id=303734

HOW TO: Configure a Remote Domain for an Internet Information Services SMTP Mail Relay Server in Windows Server 2003
http://support.microsoft.com/?id324272

HOW TO: Set SMTP Security Options in Windows Server 2003
http://support.microsoft.com/?id=324285

Friday, January 20, 2006 2:25 AM by qbernard

# re: Troubleshooting IIS SMTP

Hey thanks again. I'll try and find some Frontpage Newsgroups and see what they say.

All I'm really trying to do is to get my website to email messages that come from a FrontPage Extentions Form on a webpage.

Friday, January 20, 2006 8:26 AM by Norm

# SMTPDiag - troubleshooting email issues

SMTPDiag is a handy tool for tracking down SMTP based issues. I recently used in a newsgroup posting

Sunday, May 13, 2007 3:03 PM by Steve Schofield Weblog