• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » Understanding the Exchange transport pipeline with EXAMPLES !

Understanding the Exchange transport pipeline with EXAMPLES !

June 18, 2020 - by Zsolt Agoston - last edited on June 18, 2020

This article aims to get a view of all the scenarios how SMTP messages travel through an Exchange organization. We'll cover all the variations, from having one server in the company only, all the way to many sites, with multiple Edge servers.

Single Exchange server

With a single server in the mix we have a simple job. The only two scenarios are there is receiving/sending external messages, and doing so between two mailboxes in the same server.

1. External, to single MB server

Message: Info@opentechtips.com -> Bob@alwayshotcafe.com

Understanding the Exchange transport pipeline with EXAMPLES !

One of the most common scenarios. An external email arrives at the MAIL.alwayshotcafe.com server, it is received by the frontend transport service ( Default Frontend MAIL receive connector) on port 25/tcp (*Hop3). It is then passed over to the transport service (*Hop4), and then to the mailbox transport delivery service (*Hop5) that writes the message into the database.

2. Internal, to the same MB server

Message: Bob (Bob@alwayshotcafe.com) -> Kim (Kim@alwayshotcafe.com)

Understanding the Exchange transport pipeline with EXAMPLES !

A very simple scenario: a mailbox user sends a message to another user on the same mailbox server. Here, after the message is received by the server it is passed to the mailbox transport delivery service by the transport service making it a three-hop transaction (if the first hop of Outlook sending the message is counted as hop 1)

Four AD sites, with a Hub site, with two Edge servers

In a simple environment only one single Mailbox server is used. There's not much to that scenario, both incoming and outgoing messages are passed to and from the internet through port 25/tcp SMTP port. However, things get interesting when multiple servers are involved. In our setup we have an EDGE server in the perimeter network, behind that four AD sites, each with an individual Exchange server, as shown in the following diagram

Understanding the Exchange transport pipeline with EXAMPLES !

The site links costs in our system are as follows:

PS C:\> Get-AdSiteLink | Select Name, ADCost, ExchangeCost

Name             ADCost ExchangeCost
----             ------ ------------
NY-California       100           25
NY-Texas            100           50
California-Miami    100           25
Texas-Miami         100           50


PS C:\>

3. Route of Incoming SMTP from the Internet - no HUB sites

Message: Info@opentechtips.com -> John.Doe@alwayshotcafe.com Summary: with no hub sites, the mail is received by the EDGE server, forwarded to the site it has a subscription with (NY in our case), then directly delivered to the destination site (Miami).

PS C:\> Get-ADSite | Select name,*hub*

Name       HubSiteEnabled
----       --------------
NY                  False
California          False
Texas               False
Miami               False
Understanding the Exchange transport pipeline with EXAMPLES !

Details:

As expected, SMTP messages arrive on port 25/tcp at the EDGE server through receive connector: "Default internal receive connector EDGE".  Then they are forwarded by the transport service also to port 25/tcp to the receiving frontend transport service on MB1, as this site has a subscription with the EDGE server. Receiving connector name at this hop: Default Frontend MB1. From there the message is forwarded to MB4 straight, using port 2525/tcp and receive connector "Default MB4" on the destination server.

4. Route of Incoming SMTP from the Internet - high cost HUB site

Summary: same as 3. After received by EDGE, the message is sent to MB1 (subscribed AD site), then straight to MB4 destination server.

PS C:\> Get-ADSite | Select name,*hub*

Name       HubSiteEnabled
----       --------------
NY                  False
California          False
Texas                True
Miami               False


PS C:\>

5. Route of Incoming SMTP from the Internet - lowest cost HUB site

Message: Info@opentechtips.com -> John.Doe@alwayshotcafe.com

Summary: with a hub site on the lowest cost route, the SMTP message is routed through the HUB site (California) on it's way to the destination (Miami).

Understanding the Exchange transport pipeline with EXAMPLES !
PS C:\> Get-ADSite | Select name,*hub*

Name       HubSiteEnabled
----       --------------
NY                  False
California           True
Texas               False
Miami               False


PS C:\>

Details:

  1. As expected SMTP messages arrive on port 25/tcp on the EDGE server through receive connector: "Default internal receive connector EDGE"
  2. It is then forwarded by the transport service also on port 25/tcp to the frontend transport service MB1, that has a subscription with the EDGE server. Receiving connector: Default Frontend MB1
  3. Message is routed to MB2, using port 2525/tcp
  4. From the HUB site, the message reaches it's final destination MB4 on port 2525/tcp, through the "Default MB4" receive connector.

6. Outbound routing through equal-cost Edge servers

Message: John.Doe@alwayshotcafe.com -> Info@opentechtips.com

Summary: With multiple Edge servers available in the system - assuming that all servers can use all Edge servers to send emails out from the organization - the mailbox server will search for the lowest cost route to the internet. We have two Edge servers, EDGE and EGDE2. To reach the internet from EDGE, first the message needs to travel from MB4 to MB2, then from MB2 to MB1 and finally from MB1 to the EDGE server that will submit the message to the recipient. Adding that together it's 25 + 25 + 100 = 150.

Now, submitting through EDGE2 would cost only 100 as MB4 is directly adjacent with EDGE2, see the illustration below.

This means the system will use EDGE2 to send John's email out.

Understanding the Exchange transport pipeline with EXAMPLES !

Details: the frontend transport service on MB4 submits the SMTP message to EDGE on port 25/tcp, then EDGE sends out the message to the next hop the MX record of the recipient dictates.

7. When EDGE2 cost is higher than cumulative cost through EDGE

Message: John.Doe@alwayshotcafe.com -> Info@opentechtips.com

Summary: in this scenario the message from MB4 can also take two routes: one through EDGE, or EDGE2. See which is path costs less: through EDGE2 it's only one hop from MB4, but the cost of that link is 90. Through EDGE the message first need to be passed through MB2, then MB1, only then it reaches EDGE. Adding the link costs of 25 + 25 + 25 will return a cumulative cost of only 75, which is lower than through EDGE2, so the message will be forwarded following the longer route.

Understanding the Exchange transport pipeline with EXAMPLES !

It begs for the question: how is it possible that even though this route is longer, it's still the preferred path out? Well, in real life connection speed between sites, physical locations differ. In this case we assume that the connection between MB4 and EDGE2 is a very slow connection, hence the higher cost. The other connection links have lower cost values associated, as they have faster network connection between each other. Note, that these cost values are set by administrators, not a representation of the actual link speed. In general, as a guidance see the cost and network speed table to decide what cost you assign to your links in a production environment. I include both the Cisco and Microsoft approach, you decide which one you prefer. ( * https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/plan/determining-the-cost)

Understanding the Exchange transport pipeline with EXAMPLES !

Details: reverse of 5.

8. Intra email from MB1 to MB4 through a HUB site

Message:  Alfred.Franco@alwayshotcafe.com -> John.Doe@alwayshotcafe.com

Summary: the message starts from MB1, then received by MB2, and passed to MB4. Again, you see MB4 twice, in hop 3 and 4. This is because (like in earlier examples) first the message is received by the transport service, then it is passed to the mailbox transport delivery service that can write the message in the mailbox database.  

Understanding the Exchange transport pipeline with EXAMPLES !

9. Intra, one hop only

Message:  Alice@alwayshotcafe.com -> John.Doe@alwayshotcafe.com

Summary: Same as 8., just omitting the hop through the HUB site.

Understanding the Exchange transport pipeline with EXAMPLES !

Reader Interactions

Comments

  1. Charlie Tilgner says

    August 23, 2020 at 00:20

    As I website possessor I believe the content material here is rattling wonderful , appreciate it for your hard work. You should keep it up forever! Best of luck.

    Reply
    • Zsolt Agoston says

      August 23, 2020 at 13:43

      Thank you for your kind words Charlie!

      Reply
  2. Buy Private Proxies says

    September 11, 2020 at 12:58

    I am not real great with English but I find this very easygoing to interpret.

    Reply
    • Zsolt Agoston says

      September 12, 2020 at 13:58

      Awesome, if you had any questions let me know!

      Z.

      Reply
  3. kobe shoes says

    October 2, 2020 at 05:33

    I happen to be commenting to let you be aware of of the fine experience my wife’s girl encountered reading your web site. She learned so many things, which included how it is like to have an awesome coaching mood to make many more completely gain knowledge of specified tortuous subject matter. You truly did more than readers’ desires. Many thanks for supplying these beneficial, safe, edifying and fun tips on the topic to Kate.

    Reply

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • Single Exchange server
  • 1. External, to single MB server
  • 2. Internal, to the same MB server
  • Four AD sites, with a Hub site, with two Edge servers
  • 3. Route of Incoming SMTP from the Internet – no HUB sites
  • 4. Route of Incoming SMTP from the Internet – high cost HUB site
  • 5. Route of Incoming SMTP from the Internet – lowest cost HUB site
  • 6. Outbound routing through equal-cost Edge servers
  • 7. When EDGE2 cost is higher than cumulative cost through EDGE
  • 8. Intra email from MB1 to MB4 through a HUB site
  • 9. Intra, one hop only

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}