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


  1. Several weeks ago I had the journey, where I accidentally learnt about one thing. To tell the truth it isn't usual thing, because of then I had problem with my MS Exchange. Consequently I knew about one tool, which might be effective in this problem just like my that time problem - edb recover.

  2. 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.

  3. 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.