How to Enable SMTP Logging and Log the Files to a Shared Disk

 

If you want to gather statistical data about server usage, you can enable logging of the SMTP resource. However, be aware that enabling SMTP logging reduces Exchange performance. Unless you are troubleshooting or need statistical data, disable logging, which is the default setting. This procedure describes how to enable SMTP logging and log the files to a shared disk.

Before You Begin

When enabled, Internet Information Services (IIS) creates SMTP log files on the system drive of the local computer (for example, C:\Winnt\System32\Logfiles, where C is the location of your Windows Server 2003 or Windows 2000 installation). To reliably configure SMTP logging in a clustered environment, you must change the default location of the log files (that is, the local computer) to a folder on a shared disk.

Procedure

To enable SMTP logging and log the files to a shared disk

  1. In Exchange System Manager, in the console tree, expand Servers, and then expand the server on which you want to enable IIS logging for SMTP.

  2. In the console tree, expand Protocols, and then expand SMTP.

  3. In the console tree, right-click Default SMTP Virtual Server, and then click Properties.

  4. In the Default SMTP Virtual Server Properties dialog box, on the General tab, click Enable logging, and then click Properties.

  5. In the Extended Logging Properties dialog box, on the General Properties tab, in Log file directory, change the SMTP log file location to a folder on a shared disk.

  6. Click OK two times.