Exchange Online - Route Email by Sender Domain

Ian562 61 Reputation points
2021-04-20T18:47:02.477+00:00

Hello Everyone,

We use a 3rd party cloud hosted email protection system that we use for our Exchange 2013 user base. We just setup hybrid with Exchange Online and would like to start moving a set of our users to Exchange Online.

The user base on Exchange 2013 uses domain.com while the user base located on Exchange Online uses a child domain of my.domain.com.

Both domains are setup in O365 Admin Center.

I have the following rule created but it seems like the "The sender's domain is..." setting includes both domain.com AND my.domain.com. This caused ALL Exchange Online email to route out through our 3rd party cloud hosted email protection system.

Then I added an Exception of "sender's address domain portion belong to": 'my.domain.com'.

Name: Route domain.com to 3rd party cloud hosted email protection system
If the message:
sender's address domain portion belongs to any of these domains: 'domain.com'

Take the following actions:
Route the message using the connector named 'Outbound to 3rd Party Host Email Protection System'.

Except if the message:
Is sent to 'Inside the organization'
or sender's address domain portion belongs to any of these domains: 'my.domain.com'

This seems to work for the most part but the issue is if anyone with a my.domain.com account has forwarding enabled (which is alot), AND someone from the domain.com sends and email to them it will route out through our 3rd party email protection system.

Is there a better way to create a rule to route Exchange Online users with domain.com outbound through our hosted email protect system AND have our child domain users of my.domain.com route out via O365?

Thanks for any input!
Ian...

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,335 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,875 questions
0 comments No comments
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,206 Reputation points
    2021-04-21T05:34:57.183+00:00

    @Ian562

    Based on my testing, the (The sender's domain is domain.com) in transport rule also contain the child domain of "domain.com". So, the only way is to use an additional filter in "Except if".

    One small suggestion: move "Is sent to 'Inside the organization'" from except if to "Apply this rule if" (The sender is located Outside the organization). It could speed up the filter process.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Victor Ivanidze 101 Reputation points
    2021-10-27T09:11:20.193+00:00

    Have a look at RouteBySender tool.

    0 comments No comments