In this article I’ll show you how I enable SMTP Send or Receive Connector logging on Exchange Server 2016 using the Exchange Admin Center and PowerShell.
To use EAC -> Open EAC -> Mail Flow
Click Send Connector or Receive Connector
Double click connector and set the protocol logging to Enable
Next go to the location below to view the logs:
C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\Hub\ProtocolLog
To view the location off all Logs run the command below:
Get-TransportService -Identity EX16SERVER |fl
To use Exchange PowerShell to enable Protocol logging use:
Set-SendConnector “outbound to office 365” -ProtocolLoggingLevel verbose
To disable use:
Set-SendConnector “outbound to office 365” -ProtocolLoggingLevel none