Monday, June 22, 2009

Exchange 2007 SMTP Protocol Logging

To enable protocol logging in exchange 2007 you need to do it on either the Recieve Connector or the Send Connector themselves.

To enable outbound SMTP logging use Set-SendConnector "Connector Name" -ProtocolLoggingLevel verbose. By default it is set to none.

To enable inbound SMTP logging use Set-RecieveConnector "Connector Name" -ProtcolLoggingLevel verbose. By default it is set to none.

By default outbound logs are stored here:
C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend

By default inbound logs are stored here:
C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpReceive

2 comments:

  1. Do I need to restart any Exchange services in order for logging to start happening once enabled? I have enabled the SMTP Protocol Logging however I'm not seeing anything in either the log folders.

    ReplyDelete
  2. Make sure the NETWORK SERVICE user has modify rights over the directory that you're locating the log files in. I ran into a situation where although the connectors were configured correctly, nothing was logged until the permissions were configured as described above. I'd probably also restart the services if you can though, just to be on the safe side.

    ReplyDelete