Home > How to use SMTP Diagnostics 1.0 to troubleshoot IIS issues
Resource Guide:
EMAIL THIS LICENSING & REPRINTS

How to use SMTP Diagnostics 1.0 to troubleshoot IIS issues

15 Oct 2007 | By Tim Fenner, Contributor
SearchWinComputing.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

Written by the Microsoft Exchange Server team, the SMTPDiag utility will benefit anyone with an SMTP-based environment. It's simple to use and run and has an excellent analysis engine. SMTPDiag is a command-line troubleshooting tool that works directly on a Windows server with IIS/SMTP service enabled or with Exchange Server installed. It utilizes the same APIs as Windows Server and Microsoft Exchange in order to diagnose configuration and connection issues involving SMTP and DNS.

Per Microsoft:

"SMTPDiag issues DNS queries using both User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) to validate that the queries will succeed. If TCP queries fail, mail will not be delivered successfully.

The first thing that SMTPDiag does after verifying syntax is to check the Start of Authority (SOA) record for the remote address domain. The next step is to validate that the local domain MX/A records are resolvable. This test verifies that the sender domain is valid and any bounces can return to the originating server. This test could fail if the domain is not resolvable from inside the firewall. The remote domain MX/A records are then checked also. If this step fails, mail will not route because of issues with DNS.

At this point, the network DNS infrastructure must be investigated. When all the DNS records have been successfully queried, the tool will try to connect to all the MX (mail exchange) records that were published for the remote domain on port 25 and try to do an EHLO, mail from, rcpt to, and quit command."

Key features

  • Makes test requests based on user-inputted information, such as sender and receiver
  • Validates that DNS MX records are configured correctly
  • Ensures that the correct firewall or proxy ports are open for SMTP to properly work
  • Ensures the correct permissions on the relevant SMTP directories such as BadMail, Pickup, etc.

To use the SMTP Diagnostics utility:

  1. Go to Start -> Run.>p>
  2. Type command and hit Enter.
  3. Once the command window is open, type: cd
  4. Now type: cd "Program Files\IIS Resources\SMTPDiag"

  5. Finally, enter the following syntax to use the tool:
  6. SMTPDIAG "sender address" "recipient address" [-d target DNS] [/v]

Below is a look at the results. (Email servers, email addresses, DNS servers, etc. are blocked out though, of course.)


Inside the IIS Diagnostics Toolkit

 Introduction
 How to install the Microsoft IIS Diagnostics Toolkit
 How to use SSL Diagnostics 1.0
 How to use Authentication and Access Control Diagnostics (AuthDiag) 1.0
 How to use Exchange Server SMTP Diagnostics 1.0
 How to use Log Parser 2.2
 How to use WFetch 1.4
 How to use Trace Diagnostics
 How to use Debug Diagnostics 1.0

About the author: Tim Fenner (MCSE, MCSA: Messaging, Network+ and A+) is a senior systems administrator who oversees a Microsoft Windows, Exchange and Office environment. He is also an independent consultant who specializes in the design, implementation and management of Windows networks.

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Microsoft Internet Information Services (IIS)
When and how to use worker process recycling with IIS
How to use Microsoft's IIS Diagnostics Toolkit
How to install the Microsoft IIS Diagnostics Toolkit
How to use AuthDiag 1.0 to troubleshoot IIS problems
How to use SSL Diagnostics 1.0 to identify issues in IIS
How to use the IIS Diagnostics Toolkit's Log Parser 2.2. utility
How to use Trace Diagnostics 1.0 to troubleshoot IIS issues
How to use Debug Diagnostics to troubleshoot IIS issues
How to use the IIS Diagnostics Toolkit's WFetch 1.4 utility
Working with IIS worker process isolation mode

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts