Exchange - Enable Protocol Logging


Recently had an issue where I had to enable protocol logging on some Exchange 2013 Edge servers to trace failed SMTP connectivity from EOL / Office 365.

Check that logging isn't already enabled:

Get-ReceiveConnector | Format-List Name,ProtocolLoggingLevel

Enable Logging on the receive connector:

Set-ReceiveConnector "Default internal receive connector SERVER01" -ProtocolLoggingLevel Verbose

Check that logging is enabled:

Get-ReceiveConnector | Format-List Name,ProtocolLoggingLevel

Disable Logging on the receive connector:

Set-ReceiveConnector "Default internal receive connector SERVER01" -ProtocolLoggingLevel None


The log files can be found in their default location:

D:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Edge\ProtocolLog\SmtpReceive

for more details see:

https://technet.microsoft.com/en-us/library/bb124531(v=exchg.150).aspx

Comments