Connector selection in external message routing
Like previous versions of Exchange, Exchange Server 2016 and Exchange Server 2019 use connectors to deliver messages to external recipients (recipients that don't exist in the Exchange organization). Exchange uses Send connectors to route messages to external SMTP domains. If the external recipient isn't on an SMTP messaging system, Exchange uses Delivery Agent connectors or Foreign connectors.
For more information about the different types of connectors, see Connectors. For more information about how Exchange makes routing decisions, see Mail routing.
Connector considerations in message routing
The settings that are configured on connectors might eliminate an otherwise available connector from routing consideration. These settings are described in the following table:
|State (enabled or disabled)||Only enabled connectors are used in routing decisions. If a connector is disabled, it's not considered when routing messages.|
|Address space||The address spaces defines the destination domains or other address spaces that are serviced by the connector. When Exchange selects a connector for routing a message, it only considers connectors that have a matching address space. If more than one connector matches the destination address space, the connector with the more precise address match is selected.
For example, suppose the recipient is email@example.com, and separate Send connectors are configured for *, *.contoso.com and marketing.contoso.com. The order of connector preference based solely on the address space is:
|Address space type||By default, the address space type on a new Send connector is SMTP. If you specify a non-SMTP address space, the messages are still sent to the destination (a smart host) by using SMTP. You need to create a Delivery Agent connector or a Foreign connector to route non-SMTP messages to non-SMTP messaging servers without using SMTP.|
|Address space cost||You use the cost value on the address space for mail flow optimization and fault tolerance when the same address space is configured on multiple connectors. A lower cost value indicates a preferred connector.|
|Source server||At least one Mailbox server or Edge Transport server must be configured to host the connector. You can configure multiple source servers to provide load balancing and fault tolerance for the address spaces that are defined on the connector.|
|Scope||The connector's scope controls its visibility within the Exchange organization.
By default, connectors are visible to all the Exchange servers in the entire Active Directory forest. However, you can limit the scope of a connector so that it's only visible to other Exchange servers in the local Active Directory site. The connector is invisible to Exchange servers in other Active Directory sites, and isn't used in their routing decisions. A connector that's restricted in this way is said to be scoped.
|Message size limits||A message size restriction on a connector can eliminate the connector from selection if the message is larger than the maximum size that's allowed on the connector.
For more information about message size limits on connectors, see Connector limits.
Selecting the connector for an external recipient
For messages that are sent to external recipients, Exchange must select the best connector to route the message through. The decisions that are required to select this connector are described in the following list:
Exchange eliminates all connectors that have a message size limit that's smaller than the size of the message.
Exchange narrows the list of remaining connectors to those that satisfy all of the following criteria:
The connector is scoped to another Exchange server in the local Active Directory site, or isn't scoped at all (is available to all Exchange in the Active Directory forest).
The connector is enabled.
The connector is configured with an address space that matches the recipient's email address.
From the resulting list of connectors, Exchange selects the connector with the most specific address space match. If multiple connectors have the same address space specificity, Exchange uses the following criteria to select a connector:
Aggregate cost: This is the sum of the cost that's 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 connector, and the cost that's assigned to the address space on the connector (IP site link costs + connector cost). The connector with the lowest aggregate cost is selected. If multiple connectors have the same aggregate cost, the selection process continues to the next step.
Hop count: The source server for the connector that can be reached in the least number of hops is selected. Typically, this means the general order of preference is:
The local Exchange server.
An Exchange server in the same Active Directory site.
An Exchange server in a remote Active Directory site.
If multiple connectors have the same hop count, the selection process continues to the next step.
Connector name: If more than one routing path has the same aggregate cost and hop count, the connector with the name that has the lowest alphanumeric value is selected.
Handling messages that can't be routed
If no connector satisfies all of the selection criteria, 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. For more information about the Unreachable queue, see Types of queues.
If there is no matching connector for a non-SMTP address space, a non-delivery report (also known as an NDR or bounce message) is returned to the sender.
If the message size exceeds the connector size restriction for all connectors, an NDR is returned to the sender.