Exchange Connection Problems

Investigate Microsoft 365 Email Bypassing Third-Party MX Records

Algirdas JasaitisAlgirdas Jasaitis Nov 13, 2026 868 views

Question details

Determine why messages from other Microsoft 365 tenants reach mailboxes without passing through the organization's third-party email security platform.

Investigate Microsoft 365 Email Bypassing Third-Party MX Records
Product
Microsoft 365 Exchange Online
Device & OS
not provided
Scenario
The organization uses MX records to direct incoming email through a third-party security platform before delivery to Microsoft 365.
Observed behavior
Some legitimate messages from other Microsoft 365 tenants reach Microsoft 365 mailboxes directly, bypassing the security platform.
Before you start

Collect the sender and recipient addresses, approximate delivery time, and message ID for an affected message. Have access to the Exchange admin center, your DNS records, and the security platform's message logs.

Solution 1Recommended

Trace the message and check the recipient's primary address

Use this approach to establish the delivery path and identify whether an onmicrosoft.com address or a routing configuration is involved.

1
Run a message trace

In the Exchange admin center, open Mail flow > Message trace. Search for the affected sender, recipient, and time range, then review the message events and available routing details.

2
Compare security platform logs

Search the third-party platform's message logs for the same message ID, sender, and delivery time. A missing log entry can indicate that the message did not pass through the platform.

3
Check the recipient's addresses

In the Microsoft 365 admin center, open Users > Active users, select the recipient, and review their username and email aliases. Check whether the primary address uses the initial onmicrosoft.com domain and whether the sender addressed that domain or the custom domain.

4
Review Exchange routing settings

In the Exchange admin center, check Mail flow > Accepted domains, Connectors, and Rules for settings that could affect attribution or delivery. Compare the configuration with Microsoft's Message Attribution FAQ and the security provider's routing guidance.

5
Test the custom address

If appropriate, make the verified custom-domain address primary using the user's email address settings, then send a new test message to that address from another tenant. Check both Message trace and the security platform logs again.

Trace the message and check the recipient's primary address
Address changes require review: Changing a primary address may affect user identity or sign-in settings. Check your organization's policies before making the change; it does not guarantee that every message will use the intended route.
Free Microsoft Office alternative

Use WPS Office as an alternative for everyday Office files

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Microsoft Office format support helps you move existing files without a major workflow change. It does not change Microsoft 365 email routing or fix Exchange connector settings.

Open and edit Microsoft Office formats such as DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsWork with exported email-routing reports in a spreadsheetMove existing Office files into a lightweight productivity suite
microsoft office alternative - wps office

Frequently Asked Questions

Can Microsoft 365 route mail between tenants without using my MX records?

Direct tenant-to-tenant routing can occur in some circumstances, including scenarios involving the initial onmicrosoft.com domain. Review Microsoft's Message Attribution FAQ and use Exchange message trace to investigate the specific message.

How do I see whether the security gateway processed a message?

Search the gateway's message logs for the message ID, sender, and delivery time, then compare the result with Mail flow > Message trace in the Exchange admin center.

Why might a sender use my higher-numbered Microsoft 365 MX record?

A higher-numbered MX preference can serve as a fallback when preferred, lower-numbered destinations are unavailable. Check your public DNS records and the security provider's configuration guidance.

Will changing the primary email address guarantee that mail goes through the gateway?

No. A custom-domain primary address may be appropriate, but routing also depends on the address used by the sender and the tenant's configuration. Send a new test message and check both Exchange and gateway logs.