[Blog](https://mailglo.com/blog/)

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

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

Published 2 Dec 2026. Tags: DMARC, Inbox providers.

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](https://labs.infoguard.ch/posts/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](https://techcommunity.microsoft.com/blog/exchange/direct-send-vs-sending-directly-to-an-exchange-online-tenant/4439865) 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](https://learn.microsoft.com/en-us/defender-office-365/anti-phishing-policies-about#spoof-protection-and-sender-dmarc-policies) 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](https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/manage-mail-flow-using-third-party-cloud) 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.

1. 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.
2. If your own servers send straight to Exchange Online, use the IP version in step 4: `-RestrictDomainsToIPAddresses $true -SenderIpAddresses` with your servers' IP addresses and the filter's ranges, in place of the certificate parameters.
3. 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.
4. Create the connector. Replace `*.example.com` with the certificate name your filter presents:

```powershell
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](https://techcommunity.microsoft.com/blog/exchange/reject-direct-send-now-generally-available-in-exchange-online/4573787) 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](https://mailglo.com/check/) to see where its MX record points. It's free and needs no account.
