Microsoft Knowledge Base Email Alertz

(324266) - This step-by-step guide describes how to turn on protocol logging for Microsoft Internet Information Services (IIS). Protocol logs track the commands that the Simple Mail Transport Protocol (SMTP) virtual server receives from SMTP clients over the...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 324266 - Last Review: July 15, 2004 - Revision: 7.1

How To Turn On SMTP Protocol Logging for Internet Information Services in Windows Server 2003

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
This article was previously published under Q324266

On This Page

SUMMARY

This step-by-step guide describes how to turn on protocol logging for Microsoft Internet Information Services (IIS). Protocol logs track the commands that the Simple Mail Transport Protocol (SMTP) virtual server receives from SMTP clients over the network. You can choose which logging format the Microsoft SMTP service uses for recording information.

Turn On Logging in ASCII Text Format

You designate the TCP port that the SMTP service uses to receive incoming messages when you identify the SMTP virtual server. When you set up a log file, remember that the log formats and default file names are the same as those used by other services in IIS. If you select the default names, all transactions for all services are recorded in the same file. To turn on logging that uses ASCII text format:
  1. In Internet Information Services management console, right-click the SMTP Virtual Server, and then click Properties.
  2. On the General tab, click Enable logging.
  3. In the Active log format box, click a log format.
  4. Click Properties, and then specify the new log time period and log file location on the General Properties tab.

    NOTE: If you configure the file to be in a different location from the default, make sure that the file is stored on a local drive, not on a network drive.
  5. If you selected the W3C Extended Logging format, click the Extended Properties tab, and then select the items that you want to track.

    NOTE: Because logging is shared with other services provided by IIS, some of the extended properties are not SMTP-specific.
  6. Click OK two times.

Turn On Logging in ODBC Format

To turn on logging in Open Database Connectivity (ODBC) format:
  1. Set up an ODBC-compliant database.
  2. In Internet Information Services management console, right-click SMTP Virtual Server, and then click Properties.
  3. On the General tab, click Enable logging.
  4. In the Active log format box, click ODBC Logging.
  5. Click Properties, and then specify the ODBC data source name (DSN), table, user name, and password.
  6. Click OK two times.

APPLIES TO
  • Microsoft Windows Server 2003 Datacenter Edition
  • Microsoft Windows Server 2003 Enterprise Edition
  • Microsoft Windows Server 2003 Standard Edition
  • Microsoft Windows Server 2003 Web Edition
  • Microsoft Windows Server 2003 Datacenter Edition
  • Microsoft Windows Server 2003 64-bit Enterprise Edition
  • Microsoft Internet Information Services 6.0
  • Microsoft Windows Small Business Server 2003 Standard Edition
  • Microsoft Windows Small Business Server 2003 Premium Edition
Keywords: 
kbwebservices kbappservices kbhowtomaster KB324266
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate