question

KennyStern-7712 avatar image
0 Votes"
KennyStern-7712 asked KennyStern-7712 answered

Routing mail from 365 to a subdomain

We have a need to route email from O365 to a subdomain. Emails from 365 to the subdomain need to route to a smart host in our datacenter that has a mail bot running on it. I have the subdomain added as an internal relay accepted domain and a send connector that specifies that emails to the subdomain route to the smart host. However, the emails are not using this connector and are instead using the default send connector that routes mail to our on-prem Exchange servers.
I should also mention that we are currently in hybrid mode and have centralized transport enabled.

Can anyone tell me how to get emails to the subdomain to route to the correct smart host? The email would only ever be sent by internal people so we don't need this to work with external senders.

So to summarize, we need emails from domain.com in 365 sent to bot.domain.com to route to a smart host and not to Exchange on-prem as we are planning to go out of hybrid and decommission the on-prem servers eventually.

Thanks

office-exchange-server-mailflowoffice-exchange-hybrid-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KennyStern-7712 avatar image
0 Votes"
KennyStern-7712 answered

I was able to get this to work by changing the send connector to the subdomain to require a mail flow rule. Then using the mail flow rule to specify that all mails to the subdomain use that connector.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyDavid avatar image
0 Votes"
AndyDavid answered KennyStern-7712 commented

Does the default connector to on-prem have this set to $false?
AllAcceptedDomains


Get-OutboundConnector


It should be $false if you do not want all the accepted domains to go through it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It was set to False.
I was able to get this to work by changing the send connector to the subdomain to require a mail flow rule. Then using the mail flow rule to specify that all mails to the subdomain use that connector.

Thanks

0 Votes 0 ·
KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT edited

@KennyStern-7712

Do you want emails sent from the Exchange online mailbox to be sent to the subdomain through the smart host? If so, why not create a send connect to send this email directly?
102456-qa-kyle-17-31-02.png
102369-qa-kyle-17-31-24.png

If I misunderstood your question, please point it out.


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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.