Outbound Connector Smart Host Behavior
If you have an on-premises mail environment that you are protecting with Exchange Online Protection (EOP) then you’ll need to create some connectors in the cloud. This article is going to focus on EOP Outbound Connectors and how they deliver mail when configured with a smart host.
Keep in mind that with EOP connectors, the naming convention is EOP centric (from EOPs point of view). When we talk about incoming mail, we are referring to mail that has originated on the Internet and is destined to our on-premises mail servers. This Internet originating message will be directed to EOP first because this is where your MX record is pointing. Once EOP processes the message, it needs an Outbound Connector to deliver the message to your on-premises mail environment. Here’s what we’re looking at.
Because your MX record will be pointed towards EOP, the EOP Outbound Connector (type is on-premises) will need a smart host to be able to deliver mail to your on-premises mail environment. For the smart host, you can enter either an IP or a Fully Qualified Domain Name (FQDN).
Customers that use an FQDN as the smart host typically ask me the following question.
How does the lookup for the FQDN smart host work? Does the EOP Outbound Connector look up the MX record or the A record for the smart host FQDN?
The Outbound Connector respects RFC 5321 section 5 which clearly states the following must happen once the recipient domain is known.
- Look up the MX record of the recipient domain.
- If no MX is present, lookup the A record and if present, treat this as the MX record.
- If an MX record is present, clients MUST NOT use the A record.
Note: In our scenario we are using a smart host and not the recipient domain to determine routing, however this same MX/A logic still applies.
Because the EOP Outbound connector first does an MX lookup on the smart host FQDN, MX priorities are also respected just like you would expect. This in a nutshell is exactly what an EOP Outbound Connector does when it finds an FQDN entered for the smart host.
References
Configure custom mail flow by using connectors
Create required connectors to set up basic email flow through EOP
Comments
- Anonymous
January 01, 2003
Thanks for the comment Kevin! I've added a note to the article to help clarify that. - Anonymous
January 01, 2003
Hi Jim, you are correct, our on-premises server will need to smart host outbound mail to EOP which will then relay the messages out to the Internet. For this to work you will need to create an EOP Inbound connect of type on-premises. Your on-premises mail environment will then need to smart host to the same MX record that Office 365 provided for your domain. Ex. You add contoso.com to your tenant and are given an MX record of contoso-com.mail.protection.outlook.com. This would also be the address that your on-premises mail environment would use as a smart host for outbound mail. EOP would then accept the message, run rules, and then deliver to the internet. - Anonymous
June 23, 2014
The comment has been removed - Anonymous
July 02, 2014
Organizations with on-premises mail environments often will have a primary site and at least one backup - Anonymous
October 25, 2014
What about mail coming from the On-Premise Server outbound for delivery to the Internet... There is setup info on the connector for EOP to receive mail from your on-premise server... but don't you have to configure your Hub Transport Connector on the Exchange Server to send outbound to the OEP Server? Smart Host Info? I can not find info on how to configure my exchange server to rout through the OEP server as the relay... - Anonymous
December 24, 2014
I only began this blog in June of this year and so it’s hard to believe that it is already six - Anonymous
January 02, 2016
The comment has been removed