Applies to: Exchange Server 2013
Topic Last Modified: 2013-02-22
Routing table logging periodically records a snapshot of the routing table used by Microsoft Exchange Server 2013 to route messages to their destinations.
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" and "Edge Transport server" entries in the
Mail Flow
Permissions topic.
- You can't use the Exchange admin center (EAC) to perform this
procedure. You can only use the Shell.
- To configure the time interval for automatic recalculation of
the routing table, you modify the EdgeTransport.exe.config XML
application configuration file. Changes you save to this file are
applied after you restart the Microsoft Exchange Transport service.
When you restart this service, mail flow on the server is
temporarily interrupted.
- Any customized per-server settings you make in Exchange XML
application configuration files, for example, web.config files on
Client Access servers or the EdgeTransport.exe.config file on
Mailbox servers, will be overwritten when you install an Exchange
Cumulative Update (CU). Make sure that you save this information so
you can easily re-configure your server after the install. You must
re-configure these settings after you install an Exchange CU.
- 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 |
What do you want to do?
Use the Shell to configure routing table logging
Run the following command:
Copy Code | |
---|---|
Set-TransportService <ServerIdentity> -RoutingTableLogMaxAge <dd.hh:mm:ss> -RoutingTableLogMaxDirectorySize <Size> -RoutingTableLogPath <LocalFilePath> |
This example sets the following routing table log settings on the Mailbox server named Mailbox01:
- Sets the location of the routing table log files to D:\Routing
Table Log. Note that if the folder doesn't exist, it will be
created for you.
- Sets the maximum size of the routing table log folder to
70 MB.
- Sets the maximum age of a routing table log file to
45 days.
Copy Code | |
---|---|
Set-TransportService Mailbox01 -RoutingTableLogPath "D:\Routing Table Log" -RoutingTableLogMaxDirectorySize 70MB -RoutingTableLogMaxAge 45.00:00:00 |
Note: |
---|
Setting the RoutingTableLogMaxAge parameter to the value
00:00:00 prevents the automatic removal of routing
table log files because of their age. |
How do you know this worked?
To verify that you have successfully configured routing table logging, do the following:
- In the Shell, run the following command:
Copy Code Get-TransportService <ServerIdentity> | Format-List RoutingTableLog*
- Verify the values displayed are the values you configured.
Use the Command Prompt to configure the interval for automatic recalculation of the routing table in the EdgeTransport.exe.config file
- In a Command prompt window, open the EdgeTransport.exe.config
application configuration file in Notepad by running the following
command:
Copy Code Notepad %ExchangeInstallPath%Bin\EdgeTransport.exe.config
- Modify the following key in the
<appSettings>
section.
Copy Code <add key="RoutingConfigReloadInterval" value="<hh:mm:ss>" />
Copy Code <add key="RoutingConfigReloadInterval" value="10:00:00" />
- When you are finished, save and close the
EdgeTransport.exe.config file.
- Restart the Microsoft Exchange Transport service by running the
following command:
Copy Code net stop MSExchangeTransport && net start MSExchangeTransport
How do you know this worked?
To verify that you have successfully configured the interval for the automatic recalculation of the routing table, verify the routing table log is updated during the time interval you specified.
Note that the routing table will be recalculated and logged earlier than the value specified by the RoutingConfigReloadInterval key if any of the following conditions occur:
- A routing configuration change is detected. For example, a Send
connector or a Receive connector is added, removed, or modified, or
the 6 hour Kerberos token renewal occurs.
- The Microsoft Exchange Transport service is started.