When a message is sent to an external recipient, Exchange 2007 must select a Send connector through which to route the message. Routing will always select a single connector through which to send the message. The selection varies slightly depending on whether the source server for the selected Send connector is an Exchange 2007 or Exchange 2003 server.
If more than one Send connector is configured to have an address space that meets the routing requirements for an external recipient, Exchange 2007 routing will select a single connector through which to route the message. The selected connector must meet the message size constraints. After Exchange 2007 has eliminated all connectors that have prohibitive message size restrictions, routing applies the following criteria to determine to which connector it will route:
-
From the list of all Send connectors and foreign connectors that are configured in the Exchange organization, it narrows the list to connectors that satisfy all the following criteria:
-
In the scope for the local server
-
Enabled
-
With an address space that matches the recipient's e-mail domain
-
From the resulting list, select the connector with the most specific address space match. No matching connectors may be found.
If more than one Send connector meets the address space match criteria, Exchange 2007 routing evaluates the following criteria to select a connector:
-
Connector cost The cost of the connector is the sum of the cost that is assigned to all the IP site links between the source Active Directory site and the Active Directory site that contains the source servers for the Send connector, and the cost that is assigned to the connector. The connector with the lowest aggregate cost is selected. If more than one connector has the same cost, the selection process continues to the next step.
-
Proximity The source server that has the closest proximity to the routing server is selected. This means that the local server is chosen over another Hub Transport server in the same Active Directory site, and a server in the local Active Directory site is chosen over a source server in a remote Active Directory site.
-
Alphanumerically lower connector name If more than one routing path has the same cost and proximity, the connector with the name that has the lowest alphanumeric value is selected.
If more than one connector meets the address space match criteria, and the connectors are hosted on servers that are running Exchange 2003 or Exchange 2000, the following selection method is used:
-
Connector cost The cost of the connector is the sum of the cost that is assigned to all the routing group connectors between the routing server and the routing group that contains the source servers for the Send connector and the cost that is assigned to the connector.
-
Alphanumerically lower connector name If more than one routing path has the same cost and proximity, the connector with the name that has the lowest alphanumeric value is selected.
The Exchange 2007 connector is always preferred by Exchange 2007 routing when the following conditions are true:
-
More than one connector meets the address space match criteria.
-
The source server of one connector is an Exchange 2007 server.
-
The source server for the other connector is an Exchange 2003 or Exchange 2000 server.
After a connector is selected by using the previous criteria, there may be more than one routing path to reach the Active Directory site where the source server for the selected connector is located. In this case, the lowest cost routing path to the connector is calculated by using the logic that is used for intra-organizational routing. For more information, see Internal Message Routing.
The Send connector cost criterion is overridden when both an Exchange 2007 transport server and an Exchange 2003 or Exchange 2000 server are the source servers for a matching Send connector. Exchange 2003 and Exchange 2000 are not aware of the Exchange 2007 routing costs related to IP site links. Because Exchange 2003 and Exchange 2000 do not consider IP site link costs when calculating a least cost routing path, earlier versions of Exchange Server may calculate an Exchange 2007 connector as having a lower cost than an Exchange 2003 connector, even though the Exchange 2007 connector is assigned a greater cost. This can cause Exchange 2003 to route to a more costly Exchange 2007 connector. If Exchange 2007 always selected the least cost connector, regardless of the server version where the connector is sourced, Exchange 2007 could potentially route the message back to the Exchange 2003 connector. This can cause routing loops as messages are relayed back and forth between Exchange 2007 and Exchange 2003 routing groups. To prevent these routing loops, when a choice must be made between a connector sourced on Exchange 2007 and a connector sourced on Exchange 2003, Exchange 2007 always selects the Exchange 2007 connector, regardless of cost. This preference is only made when both connectors match the address space equally well for a recipient.
If no connector satisfies all criteria required to select a connector according to the logic described earlier, one of the following actions occurs:
-
If there is no matching connector for an SMTP address space, the recipient is marked as unreachable and the message is routed to the Unreachable queue.
-
If the message size exceeds the connector size restriction for all connectors, a non-delivery report (NDR) is returned to the sender.
-
If there is no matching connector for a non-SMTP address space, an NDR is returned to the sender.
The following examples illustrate how messages are routed to external recipients. When a message is routed to an external recipient, the destination object is a Send connector that is configured to route messages to the recipient's SMTP address space.
The following table shows the configuration of two Send connectors in an Exchange 2007 topology. In this topology, a message is being routed from Active Directory Site A to the external recipient, Tjones@subdomain.contoso.com. Two connectors can route messages to this address space.
Examples of Send Connector configurations
|
Send connector name
|
Address space
|
Address space cost
|
Source servers
|
Message size restrictions
|
|---|
|
C1
|
*.contoso.com
|
1
|
Hub Transport servers in Active Directory Site A
|
None
|
|
C2
|
subdomain.contoso.com
|
10
|
Hub Transport servers in Active Directory Site C
|
None
|
In this scenario, the message is routed by using C2 because the most specific address space match is chosen.
The next example shows an alternative configuration for the Send connectors. In this topology, a message is being routed by a Hub Transport server that is located in Active Directory Site A to the external recipient, Tjones@subdomain.contoso.com. The routing server is not listed as a source server for any Send connector, and there is an IP site link that is assigned a cost of 5 configured between Site A and Site C. Two connectors can route messages to the address space. The following table shows the connector configuration.
Alternative Send connector configuration
|
Send connector name
|
Address space
|
Address space cost
|
Source servers
|
Message size restrictions
|
|---|
|
C1
|
subdomain.contoso.com
|
15
|
Hub Transport servers in Active Directory Site A
|
None
|
|
C2
|
subdomain.contoso.com
|
10
|
Hub Transport servers in Active Directory site C
|
None
|
The cost assigned to connector C2 is added to the cost of the IP site link between Active Directory Site A and Site C, for a combined cost of 15. The source servers for connector C1 are located in the local Active Directory site. Therefore, the IP site link cost to reach the connector is 0, for a total cost of 15. In this scenario, both connectors match the address space equally and have an equal cost. Routing selects connector C1 because it has a closer proximity.
In the next example, a message is being relayed from Active Directory Site A to the external recipient, tjones@contoso.com. There are two connectors that match the destination address space equally. However, the source server for one connector is an Exchange 2003 server. The following table shows the connector configuration.
Send Connectors configured on different versions of Exchange Server
|
Connector name
|
Address space
|
Address space cost
|
Source servers
|
Message size restrictions
|
|---|
|
C1
|
*.contoso.com
|
10
|
Hub Transport servers in Active Directory Site B
|
None
|
|
C2
|
*.contoso.com
|
1
|
Exchange 2003 bridgehead servers in Routing Group 1
|
None
|
In this scenario, the cost to reach each connector is computed as follows:
-
To reach C1, the Hub Transport server in Site A must relay the message to Site B. Therefore, the cost to reach C1 is the cost assigned to the IP site link between Active Directory Site A and Site B (5) combined with the cost assigned to the address space on the Send connector (5+10=15).
-
To reach C2, the Hub Transport server in Site A must relay the message to Site B to reach a source server for the routing group connector that provides a logical connection between Exchange 2003 and the Exchange 2007 routing group. The IP site link between Site A and Site B is assigned a cost of 5, and the routing group connector is also assigned a cost of 5. The cost to reach C2 is the cost assigned to the IP site link between Site A and Site B, combined with the cost assigned to the routing group connector and the cost assigned to the address space on the SMTP connector (5+5+1=11).
Although the cost to reach C2 is actually less than the cost to reach C1, Send connector C1 is selected as the routing destination because the source server is an Exchange 2007 server.