Applies to: Exchange Server 2013
Topic Last Modified: 2013-02-18
Message tracking records the SMTP transport activity of all messages transferred to and from the Transport service or mailboxes on a Microsoft Exchange Server 2013 Mailbox server. You can use message tracking logs for message forensics, mail flow analysis, reporting, and troubleshooting.
What do you need to know before you begin?
- 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" entries in the Mail Flow
Permissions topic or the "Mailbox server configuration" entry
in the Recipients
Permissions topic.
- You can use the Exchange admin center (EAC) to enable or
disable message tracking, or set the message tracking log path. For
all other message tracking options, you need to use the Exchange
Management Shell.
- On an Exchange 2013 Mailbox server, you can use either the
Set-TransportService or the Set-MailboxServer cmdlet
to configure the message tracking options. The procedures in this
topic use the Set-TransportService cmdlet.
- For information about keyboard shortcuts that may 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, Exchange Online, or Exchange Online Protection |
Use the EAC to configure message tracking on Mailbox servers
- 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 Message tracking log section, change any of the
following:
- Enable message tracking log To disable
message tracking on the server, clear the check box. To enable
message tracking on the server, select the check box.
- Message tracking log path The value you
specify must be on the local Exchange server. If the folder doesn't
exist, it will be created for you when you click Save.
- Enable message tracking log To disable
message tracking on the server, clear the check box. To enable
message tracking on the server, select the check box.
- Click Save.
Use the Shell to configure message tracking
To configure message tracking, run the following command:
Copy Code | |
---|---|
Set-TransportService <ServerIdentity> -MessageTrackingLogEnabled <$true | $false> -MessageTrackingLogMaxAge <dd.hh:mm:ss> -MessageTrackingLogMaxDirectorySize <Size> -MessageTrackingLogMaxFileSize <Size> -MessageTrackingLogPath <LocalFilePath> -MessageTrackingLogSubjectLoggingEnabled <$true|$false> |
This example sets the following message tracking log settings on the Mailbox server named Mailbox01:
- Sets the location of the message tracking log files to
D:\Message Tracking Log. Note that if the folder doesn't exist, it
will be created for you.
- Sets the maximum size of a message tracking log file to
20 MB.
- Sets the maximum size of the message tracking log directory to
1.5 GB.
- Sets the maximum age of a message tracking log file to
45 days.
Copy Code | |
---|---|
Set-TransportService Mailbox01 -MessageTrackingLogPath "D:\Hub Message Tracking Log" -MessageTrackingLogMaxFileSize 20MB -MessageTrackingLogMaxDirectorySize 1.5GB -MessageTrackingLogMaxAge 45.00:00:00 |
Note: |
---|
|
This example disables message subject logging in the message tracking log on the Mailbox server named Mailbox01:
Copy Code | |
---|---|
Set-TransportService Mailbox01 -MessageTrackingLogSubjectLoggingEnabled $false |
This example disables message tracking on the Mailbox server named Mailbox01:
Copy Code | |
---|---|
Set-TransportService Mailbox01 -MessageTrackingLogEnabled $false |
How do you know this worked?
To verify that you have successfully configured message tracking, do the following:
- In the Shell, run the following command:
Copy Code Get-TransportService <ServerIdentity> | Format-List MessageTrackingLog*
- Verify that the values displayed are the values you
configured.