Bouncewise

Bouncewise › Guides › Why DMARC fails (even when SPF or DKIM passes)

Email delivery guide

Why DMARC fails (even when SPF or DKIM passes)

By the Bouncewise team · Updated · 3 min read · How we check guides

Short answer

DMARC fails when neither SPF nor DKIM passes for a domain that is aligned with the From address. A pass on someone else's domain does not count: if your provider signs with its own DKIM domain and uses its own Return-Path, SPF and DKIM both pass and DMARC still fails. The fix is DKIM signing on your own domain, ideally plus a custom Return-Path, for every service that sends as you.

  1. Find a failing message Open its full headers and compare header.from with header.d (DKIM) and smtp.mailfrom (SPF).
  2. Set up DKIM on your domain Publish your provider's DKIM record for the From domain and verify it in the provider.
  3. Add a custom Return-Path Point a bounce subdomain of your domain at the provider so SPF also aligns.
  4. Cover every sender Use DMARC aggregate reports to find other tools sending as your domain and set up DKIM in each.
  5. Re-test Send a new message and confirm dmarc=pass before tightening the policy.

Pass is not enough: alignment

DMARC looks at the domain in the visible From header (the Author Domain) and asks whether an authenticated domain matches it. RFC 9989, which replaced RFC 7489 in 2026, keeps the two modes: relaxed (the default), where the domains share an organisational domain, and strict (adkim=s or aspf=s), where they must be identical. For SPF only the envelope sender (MAIL FROM, shown as smtp.mailfrom) counts; for DKIM, the signature's d= domain.

FromSPF passes forDKIM passes forDMARC
example.compm-bounces.example.comexample.compass (both aligned)
example.combounces.example.net (provider)example.net (provider)fail: both pass, neither aligns
example.comfails (forwarded)example.compass via DKIM
example.comexample.comfails (body changed)pass via SPF
example.com with adkim=s; aspf=spm-bounces.example.commail.example.comfail: strict needs an exact match

What causes DMARC to fail, most common first

  1. DKIM is not set up on your domain at the provider. The provider signs with its own domain, so dkim=pass shows a header.d that is not yours. Publish the provider's DKIM record for your domain and verify it.
  2. A third-party tool sends as you. Billing, helpdesk, CRM or a form plugin puts From: [email protected] on mail it signs with its own domain. Aggregate reports show these as sources you do not recognise. Set up DKIM for your domain in each tool, or send from a subdomain they own.
  3. Forwarding and mailing lists. A forwarder sends from its own IP, so SPF fails; a list that adds a footer or a subject tag breaks DKIM. With both broken, DMARC fails. Aligned DKIM survives plain forwarding, which is why it matters more than SPF.
  4. DKIM broke after a DNS change. A key lost in a DNS move or rotated badly. See DKIM fail.
  5. Strict alignment on a domain that sends from subdomains. Remove adkim=s and aspf=s unless you need them; RFC 9989 notes that nearly all domain owners find relaxed alignment sufficient.
  6. A From domain you do not control. Sending From: [email protected] through a provider cannot pass DMARC, because only Google can sign for gmail.com.

Read dmarc=fail in the headers

The second row of the table above looks like this in a message's headers:

Authentication-Results: mx.example.net;
  dkim=pass header.d=example.net header.s=s1;
  spf=pass smtp.mailfrom=bounces.example.net;
  dmarc=fail header.from=example.com

The giveaway is header.d and smtp.mailfrom on a domain other than header.from. Receivers add their own details. Microsoft documents dmarc=pass|fail|bestguesspass|none with an action, for example:

dmarc=fail action=none header.from=contoso.com
dmarc=fail action=oreject header.from=contoso.com

Its compauth reason 000 means the message failed DMARC and the policy was p=quarantine or p=reject. Other receivers print your published policy in brackets, such as p, sp and the disposition they applied; dmarc=fail with p=none means the check failed but you asked for no action.

Message source showing Authentication-Results with dkim and spf passing on the provider's domain and dmarc failing
Check whose domain passed, not just whether it passed.

What the receiver does with a failure

Your policyTypical outcome
p=noneDelivered or filtered on other signals; you still get aggregate reports
p=quarantineSpam folder
p=rejectRejected at SMTP. Gmail: 5.7.26 Unauthenticated email from example.com is not accepted due to domain's DMARC policy. Microsoft: 550 5.7.509 Access denied, sending domain [EXAMPLE.COM] does not pass DMARC verification and has a DMARC policy of reject.

Gmail also enforces alignment for bulk senders regardless of your policy: Your email has been rate limited because the From: header (RFC5322) in this message isn't aligned with either the authenticated SPF or DKIM organizational domain. (4.7.32). Google says DMARC alignment isn't required for forwarded or mailing list messages.

Fix it per provider

  • Postmark: verify the DKIM TXT record for your domain, and add a custom Return-Path (pm-bounces.example.com CNAME to pm.mtasv.net) for aligned SPF.
  • SendGrid: complete domain authentication; its CNAMEs give you aligned DKIM and an aligned bounce domain.
  • Mailgun: verify the sending domain's DKIM TXT and SPF records.
  • Resend: verify the domain; DKIM is on resend._domainkey and the Return-Path defaults to send.example.com.

Then read your DMARC aggregate reports to find any other source still failing.

Questions

Why does DMARC fail when SPF and DKIM pass?

Because they passed for a domain that is not aligned with your From address, usually your provider's own domain. DMARC only counts aligned passes.

What does dmarc=fail with p=none mean?

The message failed DMARC, but your policy asks receivers to take no action. It still shows up in your aggregate reports, and it may still be filtered on other signals.

Does DMARC need both SPF and DKIM to pass?

No. One aligned pass is enough. Gmail and Yahoo still require bulk senders to set up both SPF and DKIM.

Can forwarding make DMARC fail?

Yes, if the forwarder also changes the message and breaks DKIM. Plain forwarding breaks SPF but leaves an aligned DKIM signature intact, so DMARC still passes.

Sources