Exchange Connection Problems

Fix Microsoft 365 to On-Premises Exchange Hybrid Mail Flow

Rana GarciaRana Garcia Nov 27, 2026 869 views

Question details

Identify why messages sent from Microsoft 365 cannot reach on-premises Exchange mailboxes in a hybrid deployment.

Fix Microsoft 365 to On-Premises Exchange Hybrid Mail Flow
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.
Before you start

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.

Solution 1Recommended

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.

1
Identify the destination

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.

2
Verify public DNS

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.

3
Test port 25

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.

4
Inspect SMTP traffic

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.

Directional failures can have different causes: Successful outbound mail from on-premises Exchange does not establish that Microsoft 365 can reach the inbound SMTP endpoint on port 25.
Free Microsoft Office alternative

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.

Document hybrid mail flow checks and troubleshooting results in WPS Writer or SpreadsheetsOpen and edit common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface to help migrate existing Office workflowsWork with a free, lightweight office suite
QA img-9

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.