1

Overview:

We have a demo environment where we have installed Exchange 2019. The Exchange 2019 server is set up in Classic Hybrid mode with centralised mail transport enabled. Inbound emails are successfully flowing through Office 365 to our on-premise Exchange mailboxes. However, outbound messages (sent from on an on-premise mailbox) is not received by external recipients.

Steps to reproduce:

  • An external user sends an email to Mia@example.com (i.e. EOP mailbox).
  • Mia replies to the email.
  • The external recipient never receives the email.

Troubleshooting done so far:

  • In OWA there is no indication that the email was not sent, or will not be delivered. The outbound email is sitting in the Sent folder.
  • Within EXO Exchange Admin Center Mail Trace reports do not show any outbound messages leaving Mia's mailbox.

Question(s):

  1. Exchange hybrid was configured by following this YouTube video thread. Are there any steps the trainer has missed?
  2. Where can I go to begin troubleshooting why the outbound email from EOP is not sending?

3 Answers3

1

@joeqwerty put me on the right track.

Firstly, it is certainly possible to do what I wanted. Centralised Mail Transport (CMT) allows you to route incoming and outgoing emails through Office 365, it's just that enabling that feature in the Hybrid Exchange wizard isn't enough.

To get inbound emails to route through Office 365, just add the EXO-related MX records to DNS, and make the EXO MX records a higher priority. As for outbound emails, you need to create an additional Send Connector that uses EXO as a "Smart Host" (click here) for more details.

Once both are configured, you can use the EXO Message trace feature to search inbound and outbound emails whether they be from Exchange Online (EXO) or Exchange On-premise (EOP) mailboxes. Doesn't matter.

NB You may need a static IP address to get this to work correctly. That is, if you're using Hybrid Classic mode.

I hope this helps someone else.

0

The "Outbound to Office 365" send connector is valid for on premises mailboxes sending email to EOL mailboxes (or groups) that have a YourVerifiedDomain.mail.onmicrosoft.com remote routing address. It isn't for sending email to external recipients. If you look at the address space this connector is responsible for (under scoping in the connector properties) you'll see that it's only valid for the YourVerifiedDomain.mail.onmicrosoft.com address space.

Your on premises Exchange server needs an "internet" send connector for sending outbound email to external recipients.

joeqwerty
  • 108,377
  • 6
  • 80
  • 171
  • Currently, all inbound messages are coming in through EXO, then forwarded to EOP mailboxes. I'd like all of the outbound mail to also go through Office 365. When I enabled "centralised mail transport" in the Exchange Hybrid wizard, I thought the wizard would have also created the necessary Send Connector with Office 365 to handle the sending of emails (via Office 365). If I create Send Connector, what settings should I use to ensure that all outbound messages are routed through Office 365? – user1913559 Sep 16 '21 at 02:44
  • What's the address space of the on premises "Outbound to Office 365" connector? – joeqwerty Sep 16 '21 at 03:12
  • Originally it was "YourVerifiedDomain.mail.onmicrosoft.com". Yesterday I added another address space, "*" and I was ultimately able to get outbound emails to start working. I'm not convinced that was the right move, though. For example, I'm not able to use the EXO Message Trace feature to see the outbound messages sent from EOP mailboxes. Because I'm able to use that feature to trace inbound messages to EOP mailboxes, I was expecting to see the same for outbound messages proxied through EXO. Any ideas? So sorry if this is obvious. It's my first time and this is a demo environment. – user1913559 Sep 16 '21 at 15:06
0

Please note that Centralized Mail Transport's purpose is the exact opposite of what you want: it means everything will be routed through your on-premises Exchange, including messages that come from and go to Exchange Online.

If you instead want everything to be routed through Exchange Online, you need first and foremost to disable Centralized Mail Transport.

In both cases, you will need to create an additional Send Connector on your on-premises Exchange to handle Internet messages delivering; the existing connector only handles messages directed to your Exchange Online hybrid environment.

This will provide some guidance: https://docs.microsoft.com/en-us/exchange/transport-routing

Massimo
  • 68,714
  • 56
  • 196
  • 319
  • I'm confused because according to the trainer, Centralised Mail Transport (CMT) is used to consolidate the sending *and* receiving of emails (see here: https://youtu.be/OzbpkY3_49Y?t=446). – user1913559 Sep 16 '21 at 15:02
  • Hi @Maasimo, unless I'm misunderstanding your response, it appears as though what you've said is not true. CMT allows you to choose whether you want to route everything on-premise or via EXO. Once it is enabled, to centralise outgoing emails through EXO requires creating an additional Send Connector configured to route messages through a EXO as a "Smart Host". More details are provided in my Answer. – user1913559 Sep 17 '21 at 13:48
  • @Tim you are correct, this is technically possible; it's just a bit unusual, because CMT is normally used when you want your on-premises Exchange to handle your inbound and outbound mail flow; you instead want Exchange Online to handle both of them, which makes CMT a bit pointless and adds additional hops to all your messages. – Massimo Sep 17 '21 at 17:19