Errors

DMARC fail: why SPF and DKIM pass but DMARC still fails

Short answer

DMARC fails when a message has no SPF pass and no DKIM pass for a domain that aligns with the domain in the From header. That is why SPF and DKIM can both pass while DMARC fails: they passed for someone else's domain. The fix is to sign with DKIM for your own domain (d=yourdomain) or use a custom Return-Path on your domain, then publish a DMARC record. DMARC is now defined by RFC 9989.

Last checked 16 November 2026

DMARC fails when neither SPF nor DKIM passes for a domain that matches the one in your From header. The checks can each pass and DMARC still fails, because they passed for the wrong domain. Depending on your policy, the message is then delivered, sent to spam or rejected.

Authentication-Results: mx.google.com;
       dkim=pass header.i=@mailer.example-provider.net;
       spf=pass smtp.mailfrom=bounces@mailer.example-provider.net;
       dmarc=fail (p=REJECT sp=REJECT dis=REJECT) header.from=example.com

What it means

RFC 9989, the current DMARC standard, requires “Identifier Alignment”: the domain that passed SPF (the Return-Path) or the domain that signed with DKIM (d=) must match the From domain. In relaxed mode, the default, they must share the same organizational domain, so send.example.com aligns with example.com. In strict mode they must be identical. If nothing passes and aligns, the result is dmarc=fail, and the receiver applies your published policy (p=none, quarantine or reject).

Why it happens

  • Your provider signs with its own domain. DKIM passes for d=provider.net, which does not align with example.com.
  • The Return-Path is your provider’s domain. SPF passes for them, not for you.
  • DKIM is not set up for your domain, or the record is broken (see DKIM neutral).
  • Forwarding or mailing lists. SPF breaks when mail is forwarded, and lists that add footers break DKIM.
  • A forgotten sender. A CRM, billing tool or help desk sends as your domain without your keys.
  • Someone is spoofing you. That is DMARC doing its job.

How to fix it

  1. Read the result. In the raw message, compare header.from with header.i or header.d (DKIM) and smtp.mailfrom (SPF). Whichever should match, does not.

  2. Set up DKIM for your own domain with every sending service. Publish the CNAME or TXT records they give you so they sign with d=example.com. This is the fix that survives forwarding.

  3. Use a custom Return-Path (often called a custom MAIL FROM or bounce domain) on a subdomain like send.example.com, with its own SPF record. Then SPF aligns too.

  4. Publish or check your DMARC record:

    _dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

    Read the aggregate reports for a couple of weeks, fix every legitimate source, then move to p=quarantine and p=reject. RFC 9989 removed the pct tag; to trial a stricter policy, add t=y, which asks receivers not to apply it yet.

  5. Retest with a message to Gmail and confirm dmarc=pass.

Which server sent it

  • Gmail rejects with 550 5.7.26 Unauthenticated email from example.com is not accepted due to domain's DMARC policy. when the policy is reject, or 451 4.7.26 if DNS problems stopped it from deciding. Bulk senders whose From domain does not align with SPF or DKIM can get 421 4.7.32 or 550 5.7.32. All from Google’s error list.
  • Microsoft returns 550 5.7.509 Access denied, sending domain [example.com] does not pass DMARC verification and has a DMARC policy of reject. See 550 5.7.509.
  • Yahoo lists failing a domain’s DMARC policy among its permanent 553 and 554 errors.
  • Other servers using OpenDMARC or Rspamd record dmarc=fail and act on your policy in their own words.

Is it temporary?

A DMARC rejection is a 5xx, a permanent failure, and retrying the same message will fail the same way. Gmail’s 451 4.7.26 is the exception: a temporary DNS failure prevented the check, and a later retry can succeed. With p=none or p=quarantine there is no bounce at all; the failure shows only in headers and DMARC reports.

How Mailcandor handles it

Mailcandor signs with DKIM on your domain through three CNAME records and uses a bounce domain on send.yourdomain, so both SPF and DKIM align with your From address, and it gives DMARC advice when you add a domain. If a message bounces, the deliverability coach explains the reply in plain English, and hard bounces are suppressed automatically. Use the free bounce code lookup, the full error library, and our SPF, DKIM and DMARC setup guide.

Questions

Can SPF pass but DMARC fail?

Yes. SPF checks the Return-Path domain. If that is your provider's domain, SPF passes for them, not you, so it does not align with your From domain and DMARC ignores it.

Why would DMARC fail if SPF and DKIM both pass?

Because neither passing domain matches your From domain. DMARC needs at least one of them to align: the same domain (strict) or the same organizational domain (relaxed).

Does forwarding cause DMARC failures?

Often. Forwarding breaks SPF because the forwarder's IP is not in your record. A DKIM signature usually survives if the message is not changed, which is why DKIM alignment matters most.

What happens to mail that fails DMARC?

It depends on your policy. With p=none nothing changes; with p=quarantine receivers tend to send it to spam; with p=reject they may bounce it, for example Gmail's 550 5.7.26 or Microsoft's 550 5.7.509.

Which RFC defines DMARC now?

RFC 9989, published in May 2026. It obsoletes RFC 7489, removes the pct tag and adds t=y for testing a policy.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.