Interpreting an SMTP protocol log

In a previous article I discussed using SMTP logging to troubleshoot communication issues. When the diagnostics logging level of the SMTP protocol log category is set to maximum the complete incoming message transfer is written to the log. To ensure that SMTP logging is enabled check the application event log after the Internet Mail Service is started. If enabled event 2004 is written to the event log. One point to note is that headers and body of outgoing messages cannot be logged. Only the entire text of incoming messages is included.

The following are transmission codes included in the logs:
2xx or 3xx message code indicate normal transmission of message
4xx codes are temporary problems that can be resolved by resending the message.
5xx codes are permanent negative responses requiring some repair before another attempt to send. Responses with the 4xx and 5xx codes are accompanied by text describing the problem.

The following is an example of a log text found in the SMTP log file:

4/2/01 11:44:31 AM : A connection was accepted from pop3.test.com.
4/2/01 11:44:31 AM : <<< IO: |HELO pop3.test.com
4/2/01 11:44:31 AM : <<< HELO pop3.test.com
4/2/01 11:44:31 AM : >>> 250 OK
4/2/01 11:44:31 AM : <<< IO: |MAIL  From:<richie@test.com>
4/2/01 11:44:31 AM : <<< MAIL From:<richie@test.com>
4/2/01 11:44:31 AM : >>> 250 OK - mail from <richie@test.com>
4/2/01 11:44:31

    Requires Free Membership to View

AM : <<< IO: |RCPT To:<chris@play.com> 4/2/01 11:44:31 AM : <<< RCPT To:<chris@play.com> 4/2/01 11:44:32 AM : >>> 250 OK - Recipient <chris@play.com> 4/2/01 11:44:32 AM : <<< IO: |DATA

For additional information on SMTP logging including a detailed log file visit the following link: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q155455.

Adesh Rampat has 10 years experience with network and IT administration. He is a member of the Association Of Internet Professionals, the Institute For Network Professionals, and the International Webmasters Association. He has also lectured extensively on a variety of topics.

This was first published in May 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.