Exchange Connection Problems

Exchange Hybrid Mail Flow and EOP Spam Filtering

Camila MilosovichCamila Milosovich Nov 25, 2026 868 views

Question details

Understand EOP filtering for mail between on-premises Exchange and Exchange Online, including centralized mail transport and mail sent through an Exim gateway.

How EOP Spam Filtering Works in an Exchange Hybrid Deployment
Product
Exchange Online Protection and Exchange hybrid deployment
Device & OS
not provided
Scenario
An organization uses on-premises Exchange and Exchange Online in a hybrid deployment and may also deliver mail directly to Exchange Online through Exim.
Observed behavior
The desired outcome is to understand which mail paths receive EOP spam filtering and how to route inbound internet mail through EOP.
Before you start

Identify your current MX record, the Exim gateway's role, and whether centralized mail transport is enabled. Have access to the Exchange admin center and Microsoft 365 Defender to review connectors, mail flow, and filtering policies.

Solution 1Recommended

Review hybrid mail flow and route inbound internet mail through EOP

Use this approach to distinguish trusted hybrid mail from internet mail and determine where EOP filtering applies.

Mail sent between on-premises Exchange and Exchange Online over correctly configured hybrid connectors uses authenticated TLS and is treated as internal hybrid mail. It generally bypasses EOP anti-spam filtering, while malware scanning still applies before delivery to Exchange Online mailboxes.

Centralized mail transport primarily routes outbound mail from Exchange Online through the on-premises organization; it does not by itself change your MX record or ensure that inbound internet mail reaches EOP first. An Exim server delivering directly to Exchange Online is not the standard Exchange hybrid transport path, and its mail should not automatically be assumed to receive the same treatment as authenticated hybrid mail.

1
Inspect hybrid connectors

In the Exchange admin center, open Mail flow > Connectors and review the connectors between your on-premises organization and Microsoft 365. Confirm that their TLS and certificate settings match your hybrid configuration.

2
Check centralized mail transport

Open the Hybrid Configuration Wizard and review your transport configuration to determine whether centralized mail transport is enabled. Map the outbound path separately from the inbound path shown by your MX record.

3
Trace Exim traffic

In the Exchange admin center, open Mail flow > Message trace and search for a test message sent through Exim. Check the connector and message details to see how the message entered Microsoft 365; do not assume it used the hybrid connector.

4
Route inbound mail through EOP

If EOP should filter incoming internet mail first, review the MX value for your domain in the Microsoft 365 admin center under Settings > Domains, then update the MX record at your DNS provider. Plan the onward route to on-premises recipients and the role of Exim before making the change to avoid mail loops or delivery interruptions.

5
Verify filtering

In Microsoft 365 Defender, review Email & collaboration > Policies & rules > Threat policies for the applicable anti-spam policies. Send test messages and use Message trace and Quarantine to check their delivery and filtering results.

Review hybrid mail flow and route inbound internet mail through EOP
Exim is a separate mail path: Direct delivery from Exim to Exchange Online is not the standard Exchange hybrid topology. If you retain Exim as an inbound gateway, review Microsoft's connector and filtering guidance for that scenario rather than treating it as a hybrid Exchange server.
Free Microsoft Office alternative

Use WPS Office for Exchange Mail Flow Documentation

WPS Office is a free, lightweight alternative with a familiar interface for working on mail flow plans and operational documents. Its Microsoft Office format compatibility helps teams move existing files without changing their Exchange deployment; it does not configure or replace Exchange or EOP.

Document hybrid mail flow and filtering procedures in WPS WriterCompatible with Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar interface for a smooth transition from Microsoft OfficeFree and lightweight for everyday document work
microsoft office alternative - wps office

Frequently Asked Questions

Does EOP scan hybrid mail for spam?

Mail sent over correctly configured, authenticated hybrid connectors is generally treated as internal and bypasses EOP anti-spam filtering. Malware scanning still applies before delivery to Exchange Online mailboxes.

Does centralized mail transport send all inbound mail through EOP?

No. Centralized mail transport controls the outbound route from Exchange Online through the on-premises organization. Inbound internet mail follows your MX record and subsequent routing configuration.

How can I make EOP filter inbound internet mail first?

Find the Microsoft 365 MX value under Settings > Domains in the Microsoft 365 admin center, then configure that MX record with your DNS provider. Plan delivery to on-premises recipients and any Exim gateway before changing the route.

Is mail sent directly from Exim treated as hybrid mail?

Not automatically. Exim is not an Exchange hybrid transport server, and how Microsoft 365 handles its messages depends on the configured inbound connector and authentication. Use Mail flow > Message trace in the Exchange admin center to investigate a test message.