Microsoft 365 May Override DMARC Reject Policies Behind Third-Party Gateways

· Original article ↗

Summary

SH Consulting reports that Microsoft 365 may deliver messages despite DMARC p=reject when mail arrives through trusted third-party gateways, and recommends restricting inbound connectors; RejectDirectSend blocks only the Direct Send path.

Key points

  • The article reports that Microsoft 365 may deliver messages despite a domain’s DMARC p=reject policy when mail arrives through a trusted third-party gateway.
  • The reported header indicators are action=oreject together with compauth=none reason=451; the article says reason 451 indicates composite authentication was bypassed.
  • The author attributes the behavior to trusted-relay handling and permissive sender-intelligence logic, while noting the precise trigger can vary.
  • The article says these oreject events do not appear in Microsoft’s DMARC aggregate reports, potentially leaving domain owners without visibility into delivered spoofed mail.
  • The recommended workaround is to restrict inbound Exchange Online connections to the third-party gateway’s IP ranges, while inventorying legitimate services that need direct mail access.
  • RejectDirectSend can block unauthenticated Direct Send, but the article cautions that it does not address messages arriving through an authorized third-party gateway connector.
  • Administrators are advised to check recent message headers, test spoofing paths, and review all inbound connectors.

Article Details

Defense Focus
Detect and prevent Microsoft 365 from accepting spoofed mail through trusted third-party gateway paths that can result in DMARC p=reject being overridden.
Detection Methods
  • Inspect recent inbound message Authentication-Results headers for action=oreject together with compauth=none reason=451.
  • Test the spoofing path by sending from outside the tenant with a From address in the tenant's domain, then check whether the gateway or Microsoft 365 rejects, quarantines, or delivers the message.
  • Inventory inbound Exchange Online connectors and verify that all accepted inbound flows pass through the intended gateway.
  • Check whether MX records point to a third-party gateway or directly to Microsoft.
Data Sources
  • Inbound email Authentication-Results headers
  • Exchange Online inbound connector configuration
  • Domain MX records
  • Results of controlled external spoof-path tests
  • DMARC aggregate reports, noting that the article says oreject events may not appear in Microsoft's reports
Platforms
  • Microsoft 365
  • Exchange Online
Defensive Actions
  • Restrict inbound mail at Microsoft 365 to the outbound IP ranges of the authorized gateway using a partner-type receive connector, and configure the default connector to refuse other sources.
  • Inventory applications, monitoring systems, printers, scanners, and Microsoft services that send mail directly to the tenant; explicitly allow or migrate required flows before enforcing the lockdown.
  • Enable RejectDirectSend to block unauthenticated Direct Send, while recognizing that it does not close the trusted third-party gateway path.
  • Review gateway allow-listed relationships and connector paths that could let spoofed mail reach Microsoft 365.
  • Do not rely on a DMARC p=reject policy or aggregate reports alone as evidence that spoofed messages are being rejected.

MITRE ATT&CK

People

Vendors

Products

Related Articles