Configure protocol logging in exchange 2016

Protocol logging records the SMTP conversations that occur between messaging servers and between Exchange services in the transport pipeline as part of message delivery

In this post we will learn how to enable protocol logging in Exchange Server 2016.

We can enable protocol logging using EAC or using Exchange PowerShell

So first lets go through how to Use the EAC to enable or disable protocol logging on a connector

Use the below procedure to enable or disable protocol logging on a Send or a Receive connector.

 

1.    Open the EAC and navigate to one of the following locations:

 

o    Mail flow > Send connectors.

o    Mail flow > Receive connectors

 

2.      Select the connector you want to configure, and then click Edit 

 

 

 

3.    On the General tab in the Protocol logging level section, select one of the following options:

 

o    None   Protocol logging disabled.

o    Verbose   Protocol logging is enabled.

 

And then click Save.

Next let’s see how Use the EAC to configure the location of the protocol logs on an Exchange server

 

Use the below steps to configure the location of the protocol logs.

 

1.    Open the EAC and navigate to Servers > Servers.

2.    Select the Mailbox server you want to configure, and then click Edit .

3.    On the server properties page, click Transport logs. In the Protocol log section, change the following settings:

 

o    Send protocol log path

o    Receive protocol log path

 

 

Specify a location, and then click Save.

 

To enable or disable protocol logging on a Send connector or a Receive connector, use the following syntax in the Exchange Management Shell:

 

Set-SendConnector "to internet" -ProtocolLoggingLevel Verbose

 

 

To verify that you have successfully configured protocol logging, browse the log location for the Send connector or the Receive connector protocol logs, and verify that a log file exits and they are being updated.

 

 

Comments