SMTP Routing Changed in an Exchange Database Availability Group

Comments 0

Share to social media

In Exchange Server 2010 it is possible to create a Database Availability Group (DAG) where the nodes contain multiple server roles. For example, you can create a 2 node DAG where each node contains the Hub Transport, Client Access Server and Mailbox Server roles.

In Exchange Server 2010, all messages are routed through a Hub Transport Server in the Active Directory site. The Hub Transport Server keeps a shadow copy of the message (when supported by the receiving server of course) and the message is temporarily stored in the transport dumpster. When a mailbox fail-over takes place, the Mailbox Server will request the Hub Transport Server to retransmit the last messages to prevent any data from being lost during the mailbox fail-over.

But, if the Hub Transport Server containing the Transport Dumpster is on the same server (node) as the Mailbox Server, and the complete server fails, the other node in the DAG cannot request a retransmit of the messages since the Hub Transport Server failed as well. Therefore Microsoft made some changes in the routing mechanism when a DAG is involved.

Inbound SMTP

When an inbound SMTP message is delivered on node 1, and the recipient mailbox is on node 1 as well, an additional ‘hop’ is made and the message is rerouted via the second node. This way a shadow copy is created on this 2nd node, and the message is temporarily stored in the transport dumpster of this 2nd node as well. If node 1 completely fails the 2nd Mailbox Server role will request a retransmit of missing data from the 2nd Hub Transport Server role.

1952-SMTP1%5B1%5D.jpg

Outbound SMTP

The mail submission service (running on the Mailbox Server), which is responsible for notifying the Hub Transport Server that a message is awaiting processing shows the same behavior. The mail submission service load balances outgoing SMTP messages between multiple Hub Transport Servers in the Active Directory site, without (if possible of course) using the Hub Transport Server that’s combined with the Mailbox Server that contains the user’s mailbox. Only if there are no other Hub Transport Servers available, the Hub Transport Server on the same Mailbox Server as the sender’s mailbox is used.

Hub Transport Servers outside the DAG

When there are more Hub Transport Servers in the same Active Directory site, and these are not members of the DAG, then the routing mechanism has a strong preference for these Hub Transport Servers. When an inbound SMTP message is received by node1 in the DAG, the message is routed via the Hub Transport Server outside the DAG as shown in this image:

1952-SMTP2%5B1%5D.jpg

This is also valid for the Mail Submission Service. The Mail Submission Service running on node 1 in the image will first contact the Hub Transport Server outside the DAG. This Hub Transport Server will process the message waiting in the mailbox located on node 1 in the DAG.

Load comments

About the author

Jaap Wesselius

See Profile

Jaap Wesselius is an independent consultant from The Netherlands focusing on (Microsoft) Business Productivity solutions with Microsoft Exchange, Lync and Office 365. Prior to becoming an independent consultant in 2006, Jaap worked for 8 years for Microsoft Services in The Netherlands, specializing in Exchange Server. Jaap has a Bsc in Applied Physics & Computer Science, is an MCSE, MCITP and MCT, and has consistently been awarded the Microsoft MVP Award (Exchange Server, eighth year now) for his contributions to the (Dutch) Exchange community. For his blog posts, you can visit http://www.jaapwesselius.com. If you'd like to get in touch, you can reach Jaap via email at Simple-Talk@jaapwesselius.nl, or follow him on twitter as @jaapwess.

Jaap Wesselius's contributions