Rule to filter out emails sent to EOL outbound connector (Centralized Transport mode enabled)

Evi Venizelou 1 Reputation point
2021-05-06T11:39:10.833+00:00

Our tenant [domain contoso-x.com] hosts several subsidiaries' domains [other-y.com, another-z.com].
Only for our main domain [contoso-x.com] we will implement Hybrid with option Centralized Transport mode enabled.
Our target is to forward any email sent from contoso-x.com mailbox on the cloud to our OnPrem environment (via an EOL Outbound Connector] and relay it to the internet in a Secure Email Gateway we possess.
As Centralized Transport will send any email sent from any hosted domain in our tenant to the onprem environment, we are looking for a rule to filter-out any other email sent from subsidiaries' domains to EOL Outbound connector and keep only emails from our main domain contoso-x.com

Exchange | Hybrid management
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lucas Liu-MSFT 6,191 Reputation points
    2021-05-07T03:03:24.87+00:00

    Hi @Evi Venizelou ,
    In order to better help you, I want to confirm with you that whether all the mailboxes are in Exchange online? If so, based on my research and test, you could following the steps to make only emails from your main domain send to on-premises Exchange server.

    1.Please disable the centralized tranpsort mode first. We could not create a connecotr from Office 365 to Internet. So we cannot create a transport rule to specify that users use a connector that is sent directly to the Internet. Disbale the centralized transport mode will send all emails directly to Internet.

    2.Create a connector as below screenshot. Set to "From: Office 365" and "To: Your organization's email server". And select "Use only when I have a transport rule set up that redirects messages to this connector."
    94613-inkedcapture-li.jpg

    3.Create a transport rule as below screenshot. Set to use the specific connector you just created to send mail when the sending domain is your main domain, then the mail will be sent to your On-premises Exchange server. Initially, you can set "Apply this rule…" to a specific sender, then send a test email to external recipient and see if the email send to on-premises Exchange server first.If it succeeds, set it apply to all users in the domain, so as to prevent accidents from affecting the use of the user's mailbox.
    94597-inkedcapture4-li.jpg

    The following is my test in lab environment:
    1.I create a connector and transport rule as I mentioned above, then I send a email to external recipient. First, I check the message track in Exchange online and view the email send to my on-premises Exchange server.
    94499-inkedcapture2-li.jpg

    2.Second, I check the message tracking log in on-premises Exchange, we could see that the email is transmitted in the on-premises Exchange server and sent out successfully.
    94615-inkedcapture3-li.jpg


    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 person found this answer helpful.

  2. VenizelouE 1 Reputation point
    2021-05-20T08:54:12.38+00:00

    Hi @Lucas Liu-MSFT
    I haven't replied so far, as hybrid implementation has not proceeded since I asked the question (due to non-relevant to the project reasons).
    I accept your answer (for which I thank you) but I cannot click on "Accept Answer" button as no such button is shown (no matter which browser I use).
    Many Regards,
    Evi


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.