Your MX points to a mail filter? Spoofed mail can go around it

If your domain's MX record points to a mail filter that passes mail on to Exchange Online, by default anyone can skip the filter and send straight to your mailboxes. Unless you close that path, such mail can reach the inbox even when it fails DMARC.
What InfoGuard found
In June 2026, InfoGuard Labs published Ghost-Sender. Its researchers sent mail to tenants' <tenant>.mail.protection.outlook.com addresses, bypassing the filter in the MX record. A test message that claimed to come from noreply@microsoft.com failed SPF and DMARC and still reached the inbox. In InfoGuard's first analysis, fewer than half of the setups with an external MX record had a fix in place.
Microsoft support called it a known limit of the design, not a vulnerability. Its Exchange team says that by default it accepts all mail sent straight to your mailboxes, and that an admin who puts another service in front must close that path.
Why a DMARC failure doesn't stop the mail
A dmarc=fail in the headers doesn't mean Exchange Online blocked the message. When your MX points somewhere else, Microsoft's anti-phishing page says the "Honor DMARC policy" setting applies only if Enhanced Filtering for Connectors is on for the connector that receives the mail. Mail that goes around your filter and matches no connector never gets that setting. InfoGuard found that the connector type for your own email server doesn't block it either, even with Enhanced Filtering on.
The fix
Step 4 of Microsoft's guide to using a third-party filter with Exchange Online adds a Partner inbound connector that recognizes your filter by its certificate or IP addresses. Exchange Online then rejects direct mail that doesn't come through a connector you set up.
- Find every legitimate path into Exchange Online. Microsoft's post shows how to list mail with no connector. Review your existing connectors too, for your own servers.
- If your own servers send straight to Exchange Online, use the IP version in step 4:
-RestrictDomainsToIPAddresses $true -SenderIpAddresseswith your servers' IP addresses and the filter's ranges, in place of the certificate parameters. - If any path is still unclear, start with Microsoft's quarantine rule from the same post instead. It quarantines mail unless it comes from IP addresses you approve or is internal. Release what's legitimate.
- Create the connector. Replace
*.example.comwith the certificate name your filter presents:
New-InboundConnector -Name "Reject mail not routed through MX" -ConnectorType Partner -SenderDomains * -RestrictDomainsToCertificate $true -TlsSenderCertificateName *.example.com -RequireTls $true
Then test right away. Mail through the filter and from your own servers should still arrive. Mail sent straight to <tenant>.mail.protection.outlook.com should bounce with 5.7.51 TenantInboundAttribution. If legitimate mail bounces, remove the connector and check step 1 again.
Keep -SenderDomains *, or the bypass still works.
Microsoft also recommends Enhanced Filtering for Connectors on this connector. Try it on a few recipients first.
Reject Direct Send is off by default in existing tenants. It blocks mail only when the envelope sender uses one of your accepted domains and no connector matches, so it doesn't replace this fix.
Check your domain to see where its MX record points. It's free and needs no account.
For AI agents: this page in Markdown, llms.txt, the index of guides and public pages