
Configuring the Location of the Protocol Log Files
By default, the Receive connector protocol log files are located at C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpReceive. The directory must be local to the Exchange 2007 computer.
Note: |
|---|
|
You can configure the location of the Receive connector protocol log files by using the Exchange Management Console only in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
|

To use the Exchange Management Console to change the location of the Receive connector protocol log files for all Receive connectors on a Hub Transport server or an Edge Transport server in Exchange 2007 SP1
-
Open the Exchange Management Console. Perform one of the following steps:
-
On a computer that has the Edge Transport server role installed, select Edge Transport, and then in the action pane, click the Properties link that is directly under the server name.
-
On a computer that has the Hub Transport server role installed, in the console tree, expand Server Configuration, and select Hub Transport. In the action pane, click the Properties link that is directly under the server name.
-
In the Properties page, click the Log Settings tab.
-
In the Protocol log section, click Browse next to Receive connector protocol log file path.
-
In the Browse for folder window, browse to the new location where you want to store the Receive connector protocol log files. If you want to create a new folder, select a parent folder, click Make New Folder, and then type the name of the new folder. After you make your folder selection, click OK to close the Browse for folder window.
-
Click Apply to save changes and remain in the Properties page, or click OK to save changes and exit the Properties page.

To use the Exchange Management Shell to change the location of the Receive connector protocol log files for all Receive connectors on a Hub Transport server or an Edge Transport server in Exchange 2007 SP1 or the release to manufacturing (RTM) version of Exchange 2007
-
Run the following command:
Set-TransportServer <Identity> -ReceiveProtocolLogPath <LocalFilePath>
For example, to set the Receive connector protocol log directory to C:\Receive SMTP Log on an Exchange 2007 computer named Exchange01, run the following command:
Set-TransportServer Exchange01 -ReceiveProtocolLogPath "C:\Receive SMTP Log"
By default, the Send connector protocol log files are located at C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend. The directory must be local to the Exchange 2007 computer.
Note: |
|---|
|
You can configure the location of the Send connector protocol log files by using the Exchange Management Console only in Exchange 2007 SP1.
|

To use the Exchange Management Console to change the location of the Send connector protocol log files for all Send connectors on a Hub Transport server or an Edge Transport server in Exchange 2007 SP1
-
Open the Exchange Management Console. Perform one of the following steps:
-
On a computer that has the Edge Transport server role installed, select Edge Transport, and then in the action pane, click the Properties link that is directly under the server name.
-
On a computer that has the Hub Transport server role installed, in the console tree, expand Server Configuration, and select Hub Transport. In the action pane, click the Properties link that is directly under the server name.
-
In the Properties page, click the Log Settings tab.
-
In the Protocol log section, click Browse next to Send connector protocol log file path.
-
In the Browse for folder window, browse to the new location where you want to store the Send connector protocol log files. If you want to create a new folder, select a parent folder, click Make New Folder, and then type the name of the new folder. After you make your folder selection, click OK to close the Browse for folder window.
-
Click Apply to save changes and remain in the Properties page, or click OK to save changes and exit the Properties page.

To use the Exchange Management Shell to change the location of the Send connector protocol log files for all Send connectors on a Hub Transport server or an Edge Transport server in Exchange 2007 SP1 or Exchange 2007 RTM
-
Run the following command:
Set-TransportServer <Identity> -SendProtocolLogPath <LocalFilePath>
For example, to set the Send connector protocol log directory to C:\Send SMTP Log on an Exchange 2007 computer named Exchange01, run the following command:
Set-TransportServer Exchange01 -SendProtocolLogPath "C:\Send SMTP Log"
Setting the value of the SendProtocolLogPath parameter or ReceiveProtocolLogPath parameter to $null 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 Send connector, including the intra-organization Send connector, or Receive connector on the server generates event log errors. The preferred method of disabling protocol logging is to use the Set-SendConnector or SetReceiveConnector cmdlets to set the ProtocolLoggingLevel to None on each Send connector or Receive connector. Also, you can use the SetTransportServer cmdlet to set the IntraOrgProtocolLoggingLevel to None.
Changing the location of the protocol log directory does not copy any existing log files from the old directory to the new directory. The new protocol log directory is active almost immediately after the configuration change, but any existing log files are left in the old directory.
The following permissions are required on the protocol log directory:
-
Administrator: Full Control
-
System: Full Control
-
Network Service: Read, Write, and Delete Subfolders and Files
By default, the Microsoft Exchange Transport service uses the security credentials of the Network Service user account to create the new protocol logging directory and apply the correct permissions. If the new protocol log directory does not already exist, and the Network Service account has the rights that are required to create folders and apply permissions at the new location, the new protocol log directory is created, and the correct permissions are applied to the protocol log directory. If the new protocol log directory already exists, the existing folder permissions are not checked. Whenever you move the protocol log directory by using the SendProtocolLogPath or ReceiveProtocolLogPath parameter with the Set-TransportServer cmdlet, it is always a good idea to verify that the new protocol log directory exists and that the new directory has the correct permissions applied to it. If your change to the protocol log directory is not successful, you can create the new protocol log directory and apply the correct permissions to it before you use the SendProtocolLogPath or ReceiveProtocolLogPath parameter with the Set-TransportServer cmdlet.