Training
Learning path
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: Exchange Server 2013
Protocol logging records the SMTP conversations that occur on Send Connectors and Receive connectors as part of message delivery.
Estimated time to complete: 15 minutes
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Transport Service", "Front End Transport service", "Mailbox Transport service", "Receive connectors" and "Send connectors" entries in the Mail flow permissions topic.
You can use the Exchange admin center (EAC) to enable or disable protocol logging for Send connectors and Receive connectors in the Transport service on Mailbox servers, and for Receive connectors in the Front End Transport service on Client Access servers. You can also use the EAC to configure the protocol log paths for the Transport service only. For all other protocol logging options, you need to use the Shell.
Protocol logging is enabled or disabled on each individual connector. All the Receive connectors on the Exchange servers share the same protocol log files and protocol log options. These protocol log settings are separate from the Send connector protocol log files and protocol log options that are on the same server.
Don't perform this procedure on an Edge Transport server that is subscribed to the Exchange organization by using EdgeSync. Instead, make the changes in the Transport service on the Mailbox server. The changes are then replicated to the Edge Transport server next time EdgeSync synchronization occurs.
For information about keyboard shortcuts that apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.
Tip
Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server.
To use the EAC to enable or disable protocol logging on a Send connector or a Receive connector in the Transport service on a Mailbox server, or on a Receive connector in the Front End Transport service on a Client Access server, do the following:
In the EAC, navigate to Mail flow > Send connectors or Mail flow > Receive connectors.
Select the connector you want to configure, and then click Edit .
On the General tab in the Protocol logging level section, select one of the following options:
When you're finished, click Save.
To use the EAC to configure the protocol log paths for the Send connectors and Receive connectors in the Transport service on a Mailbox server, do the following:
In the EAC, navigate to Servers > Servers.
Select the Mailbox server you want to configure, and then click Edit .
On the server properties page, click Transport logs.
In the Protocol log section, change any of the following settings:
When you're finished, click Save.
To verify that you successfully used the EAC to configure the protocol log settings, do the following:
Browse to the location you specified for the Send connector or the Receive connector protocol logs.
If you enabled protocol logging, verify a log file is created. If you disabled protocol logging, verify the latest log file is no longer being updated.
To enable or disable protocol logging on a Send connector or a Receive connector, run the following command:
<Set-SendConnector |Set-ReceiveConnector> <ConnectorIdentity> -ProtocolLoggingLevel <Verbose | None>
This example enables protocol logging for the Receive connector named Connection from Contoso.com.
Set-ReceiveConnector "Connection from Contoso.com" -ProtocolLoggingLevel Verbose
To verify that you successfully enabled or disabled protocol logging, do the following:
In the Shell, run the following command:
<Get-SendConnector |Get-ReceiveConnector> | Format-List Name,ProtocolLoggingLevel
Verify the values displayed are the values you configured.
To enable or disable protocol logging on the implicit and invisible intra-organization Send connector that exists in the Transport service on a Mailbox server and in the Front End Transport service on a Client Access server, run the following command:
<Set-TransportService | Set-FrontEndTransportService> -IntraOrgConnectorProtocolLoggingLevel <Verbose | None>
This example enables protocol logging on the intra-organization Send connector in the Transport service on a Mailbox server named Mailbox01.
Set-TransportService Mailbox01 -IntraOrgConnectorProtocolLoggingLevel Verbose
To verify that you successfully enabled or disabled protocol logging on the intra-org Send connector, do the following:
In the Shell, run the following command:
<Get-TransportService | Get-FrontEndTransportService> <ServerIdentity> | Format-List IntraOrgConnectorProtocolLoggingLevel
Verify the value displayed is the value you configured.
To enable or disable protocol logging on the implicit and invisible mailbox delivery Send connector that exists in the Mailbox Transport service on a Mailbox server, run the following command:
Set-MailboxTransportService -MailboxDeliveryConnectorProtocolLoggingLevel <Verbose | None>
This example enables protocol logging on the mailbox delivery Receive connector in the Mailbox Transport service on a Mailbox server named Mailbox01.
Set-MailboxTransportService Mailbox01 -MailboxDeliveryConnectorProtocolLoggingLevel Verbose
To verify that you successfully enabled or disabled protocol logging on the mailbox delivery connector, do the following:
In the Shell, run the following command:
Get-MailboxTransportService <ServerIdentity> | Format-List MailboxDeliveryConnectorProtocolLoggingLevel
Verify the value displayed is the value you configured.
To configure the protocol log settings, run the following command:
<Set-TransportService | Set-MailboxTransportService | Set-FrontEndTransportService> <ServerIdentity> -ReceiveProtocolLogPath <LocalFilePath> -SendProtocolLogPath <LocalFilePath> -ReceiveProtocolLogMaxFileSize <Size> -SendProtocolLogMaxFileSize <Size> -ReceiveProtocolLogMaxDirectorySize <Size> -SendProtocolLogMaxDirectorySize <Size> -ReceiveProtocolLogMaxAge <dd.hh:mm:ss> -SendProtocolLogMaxAge <dd.hh:mm:ss>
This example sets the following protocol log settings in the Transport service on the Mailbox server named Mailbox01:
Set-TransportService Mailbox01 -ReceiveProtocolLogPath "D:\Hub Receive SMTP Log" -SendProtocolLogPath "D:\Hub Send SMTP Log" -ReceiveProtocolLogMaxFileSize 20MB -SendProtocolLogMaxFileSize 20MB -ReceiveProtocolLogMaxDirectorySize 400MB -SendProtocolLogMaxDirectorySize 400MB -ReceiveProtocolLogMaxAge 45.00:00:00 -SendProtocolLogMaxAge 45.00:00:00
Note
$null
effectively disables protocol logging for all Send connectors or all Receive connectors on the server. However, setting either of these parameters to $null
when protocol logging is enabled for any other connectors on the server, including the intra-organization Send connector or the mailbox delivery Send connector, event log errors are generated.00:00:00
prevents the automatic removal of protocol log files because of their age.To verify that you successfully configure the protocol log settings, do the following:
In the Shell, run the following command:
<Get-TransportService | Get-MailboxTransportService | Get-FrontEndTransportService> <ServerIdentity> | Format-List SendConnectorProtocolLog*,ReceiveConnectorProtocolLog*
Verify the values displayed are the values you configured.
Training
Learning path
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization