Fix Microsoft 365 to On-Premises Exchange Hybrid Mail Flow
Question details
Identify why messages sent from Microsoft 365 cannot reach on-premises Exchange mailboxes in a hybrid deployment.

- Product
- Microsoft 365 and on-premises Microsoft Exchange Server
- Device & OS
- not provided
- Scenario
- Hybrid mail flow works from on-premises Exchange to Microsoft 365 and external recipients, but fails in the reverse direction.
- Observed behavior
- Messages sent from Microsoft 365 to on-premises mailboxes fail with an EHLO and remote-server connection error.
Collect the full non-delivery report, including the SMTP error, destination host, and time of the failed message. Have access to the Exchange admin center, the on-premises Exchange server, public DNS, and firewall settings.
Check SMTP connectivity and EHLO handling
Use this when Microsoft 365 reports that it cannot connect to the on-premises SMTP endpoint or complete the EHLO exchange.
In the Exchange admin center, open Mail flow > Connectors and inspect the connector from Microsoft 365 to your organization's email server. Note the configured smart host or routing method.
Look up the configured SMTP hostname in public DNS and confirm that it resolves to the public IP address of the intended Exchange endpoint. Check that any firewall NAT rule forwards that address to the correct server.
From an external network, test TCP port 25 on the public SMTP hostname, for example with an SMTP testing tool. Confirm that the firewall permits inbound SMTP from Microsoft 365; a successful test from another network alone does not prove Microsoft 365 can connect.
Check firewall and SMTP inspection logs for the failed connection time. Ensure the device permits the SMTP EHLO command and does not alter or block the response; adjust inspection rules if they interfere.
Review the hybrid connectors, certificate, and receive connector
Use this after confirming basic network reachability, or when the connection fails during SMTP or TLS negotiation.
Verify accepted-domain routing for the hybrid namespace
Use this when connection settings look correct but recipient routing or the shared domain configuration is uncertain.
Work with Office files in WPS Office
WPS Office is a free, lightweight, easy-to-use alternative for working with Office documents. Its familiar interface and format compatibility make it easier to move existing files, but it does not repair Exchange connectors or hybrid mail flow.

Frequently Asked Questions
Why does mail work from on-premises Exchange to Microsoft 365 but fail in the other direction?
The two directions use different connection paths. Check whether Microsoft 365 can reach the public on-premises SMTP endpoint on TCP port 25 and whether the firewall allows the EHLO exchange.
Where can I test the Microsoft 365 connector to on-premises Exchange?
In the Exchange admin center, open Mail flow > Connectors, select the connector to your organization's email server, and use its validation option with an on-premises recipient.
Does the accepted domain always need to be Internal Relay?
No. Internal Relay may be appropriate for a shared namespace where recipients must be routed to another email system. Check the recipient-routing design before changing an authoritative domain.
What should I check if the SMTP connection reaches Exchange but TLS fails?
Review the on-premises SMTP certificate's expiration, names, and trust chain, then compare its name with the TLS requirements on the Microsoft 365 outbound connector. Connector validation and SMTP protocol logs can help pinpoint the failure.




