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
This article was previously published under Q324266
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:
- In Internet Information Services management console,
right-click the SMTP Virtual Server, and then click Properties.
- On the General tab, click Enable logging.
- In the Active log format box, click a log
format.
- 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. - 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. - Click OK two times.
Turn On Logging in ODBC Format
To turn on logging in Open Database Connectivity (ODBC) format:
- Set up an ODBC-compliant database.
- In Internet Information Services management console,
right-click SMTP Virtual Server, and then click Properties.
- On the General tab, click Enable logging.
- In the Active log format box, click ODBC Logging.
- Click Properties, and then specify the ODBC data source name (DSN), table, user
name, and password.
- 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
| 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