dotvitals

Loading the list of pages…

↑↓ to moveEnter to openEsc to close

Microsoft 5.7.509: the sending domain does not pass DMARC verification

Updated · 3 min read

Microsoft 365:5.7.509

In short

  • A Microsoft 365 mailbox refused the message because it failed DMARC and the domain in its From address publishes a policy of reject.
  • Microsoft lists three causes: missing or wrong records and alignment, DKIM not published or not signing, and forwarding that breaks SPF or DKIM.
  • Fix authentication for the sender that failed. Lowering the domain's policy to let one sender through unprotects every message from that domain.

Check the domain now

Type the domain from the bounce: the one in the From address of the refused message. Paste the returned headers into the header analyzer to see which check failed.

On this page
  1. The bounce, as Microsoft documents it
  2. Most likely causes
  3. Reading the bounce Microsoft sends back
  4. How to fix it
  5. How to confirm the fix worked

The bounce, as Microsoft documents it

5.7.509As Microsoft's list of Exchange Online errors prints it

Access denied, sending domain [$SenderDomain] does not pass DMARC verification and has a DMARC policy of reject.

compauth=fail reason=000How Microsoft's own header records the same verdict

The message failed explicit authentication (compauth=fail). The message received a DMARC fail and the DMARC policy action is p=quarantine or p=reject.

Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.

A mailbox hosted in Microsoft 365 refused the message because it failed DMARC, and the domain in its From address publishes a DMARC policy of reject. Microsoft did what the domain asked: mail that claims to come from it, and cannot prove so, is refused.

If the domain is yours and the mail was genuine, some system that sends as you is not passing SPF or DKIM for your own domain. If the domain is not yours — you forwarded a message, or posted to a list — the failure happened in transit, not at the original sender.

Microsoft's documentation says it includes the headers of the refused message in the bounce it returns to the sender, so the answer is usually already in your inbox.

Most likely causes

  1. A legitimate service sends as the domain without aligned SPF or DKIM: a platform authenticating as itself, or a server missing from SPF.
  2. DKIM is missing or not signing. Microsoft names both halves: the public key not published in DNS, or the message not signed when it was sent.
  3. The message was forwarded. The forwarding server's address is not in the sender's SPF record, and any change it made to the message breaks DKIM as well.
  4. The domain's records are wrong: a broken SPF record, or strict alignment set while the senders use subdomains.
  5. It was a forgery. If the sending address means nothing to the domain's owner, the refusal is the policy working.

Reading the bounce Microsoft sends back

Look for the Authentication-Results line in the returned headers. spf= and dkim= give the raw results, with the domains they were checked for; dmarc=fail with header.from names the domain whose policy applied.

Microsoft adds compauth, its own composite verdict. compauth=fail with reason=000 is documented as an explicit failure: the message failed DMARC and the policy is p=quarantine or p=reject. Microsoft's header documentation lists the other reason codes.

Paste the headers into the header analyzer to see the From domain beside the domains SPF and DKIM passed for, and whether either aligns.

How to fix it

From the headers, identify the sending system: the address in the SPF result, the d= domain of any DKIM signature, the smtp.mailfrom domain.

If it is your service, give it a DKIM key for your domain and switch signing on, and add it to SPF with a return path under your domain.

If the message was forwarded or went through a mailing list, the original sender cannot repair that hop. Signing every message with DKIM is what survives a plain forward.

If genuine mail is failing while you fix a source, move the policy to p=quarantine rather than p=none: quarantined mail can still be found, and the domain keeps its protection.

How to confirm the fix worked

Send from the fixed source to a Microsoft 365 or Outlook.com mailbox you control: the headers should show dmarc=pass and compauth=pass.

In your DMARC aggregate reports, Microsoft's reports should show the source passing in alignment.

Check your domain with the DMARC checker

Read next