Skip to main content
Varaxon Technologies

Email security

Why does email fail DMARC? SPF and DKIM alignment explained

SPF passed, DKIM passed, and DMARC still failed? The cause is almost always alignment. How to read the headers, the six usual causes, and the fix for each.

By Brandon Sooknanan, Founder, Varaxon Technologies · · 5 min read

A DMARC report or a bounce says your message failed DMARC. You check the headers and SPF says pass. DKIM says pass. So why did DMARC fail? Because DMARC asks a question SPF and DKIM don't: did they pass for your domain?

How DMARC decides pass or fail

Every email carries two sender addresses. The From address is the one people see. The envelope sender (also called the Return-Path or bounce address) is hidden, and it's where bounces go. SPF checks the envelope sender's domain. DKIM checks the domain in the signature's d= tag. Neither cares about the From address.

DMARC adds the missing link. A message passes DMARC when at least one of these is true:

  • SPF passes and the envelope sender's domain matches the From domain.
  • DKIM passes and the signature's d= domain matches the From domain.

By default the match is relaxed: mail.example.com aligns with example.com, because they share the same organisational domain. With strict alignment (adkim=s or aspf=s in your DMARC record), only an exact match counts.

Read the Authentication-Results header

Open the full headers of a failing message (in Gmail, Show original; in Outlook, View message details) and find Authentication-Results. Here is a typical failure from a newsletter service that hasn't been set up for the sender's domain:

spf=pass smtp.mailfrom=bounces.newsletter-service.net; dkim=pass header.d=newsletter-service.net; dmarc=fail header.from=example.com

Reading the example header
PartWhat it saysAligned with example.com?
spf=pass smtp.mailfrom=bounces.newsletter-service.netThe service's own bounce domain passed SPFNo. Different domain.
dkim=pass header.d=newsletter-service.netThe service signed with its own domainNo. Different domain.
dmarc=fail header.from=example.comNeither result belongs to example.comFail

Both checks passed, and neither helped, because neither was about example.com. Once the service signs with d=example.com, DMARC passes on DKIM alone.

The six usual causes, and the fix for each

Why DMARC fails and how to fix it
CauseHow it shows upFix
A sending service not set up for your domainSPF and DKIM pass with the service's domain. DMARC fails.Complete the service's "authenticate your domain" setup: publish its DKIM records, and its custom bounce domain if it offers one.
ForwardingMail forwarded by a person's rule or an alias fails SPF, because the forwarding server isn't in your SPF record.Make sure your mail is DKIM-signed with your domain. A DKIM signature survives forwarding when the message isn't changed.
Mailing listsThe list adds a footer or a tag to the subject, which breaks the DKIM signature. SPF fails too.Most modern list software rewrites the From address for domains with a strict policy, or adds an ARC seal. Ask the list owner, as you can't fix it from your side.
SPF errorsspf=permerror in the header.Usually more than 10 DNS lookups or two SPF records. See SPF too many DNS lookups.
DKIM key missing or wrongdkim=fail or dkim=neutral with your domain, or no signature at all.Check the key is published at the selector in the signature. See how to find your DKIM selector.
Strict alignment with subdomain sendersMail sent from or bounced via mail.example.com fails even though everything passes.Remove adkim=s and aspf=s from your DMARC record unless you really need exact matches.

What ARC does for forwarded mail

ARC (Authenticated Received Chain, RFC 8617) lets a forwarding server or mailing list record what the authentication results were when the message reached it, and seal that record. A receiver that trusts the forwarder can use those results when the message fails DMARC on arrival. Some large mailbox providers take ARC into account, but it's their decision, not something you can set. Signing your own mail with DKIM is still the dependable fix.

Rule out the record itself

Sometimes the message is fine and the DMARC record is the problem. Run your domain through the DMARC checker, which reads the record and the SPF and DKIM it depends on. Look for these:

  • Two DMARC records. Receivers ignore DMARC entirely when there is more than one.
  • A record at the wrong name. It must be a TXT record at _dmarc.yourdomain, not at the domain itself.
  • A syntax slip. The record must start with v=DMARC1, and tags are separated by semicolons.
  • A subdomain policy you forgot. If mail comes from a subdomain, sp= (or the subdomain's own _dmarc record) decides what happens to it.

When a DMARC failure is good news

Not every failure needs fixing. Your DMARC reports will show mail from servers you've never heard of, failing both checks. Much of that is spoofing: exactly what DMARC exists to stop. Fix the services you recognise, and let the rest fail. When every real sender passes, you're ready to move your policy towards reject, following how to set up DMARC step by step.

Common questions

Why does DMARC fail when SPF passes?

Because SPF passed for a different domain. SPF checks the hidden envelope sender, which for many sending services is their own bounce domain. DMARC needs that domain, or the DKIM signing domain, to match your From address.

Do I need both SPF and DKIM to pass DMARC?

No. One passing and aligned result is enough. DKIM is the more reliable of the two, because it survives forwarding.

What is DMARC alignment?

The rule that the domain checked by SPF or DKIM must match the domain in the visible From address. Relaxed alignment, the default, accepts subdomains. Strict alignment needs an exact match.

Will DMARC failures block my email?

Only if your policy is quarantine or reject. With p=none, failing mail is still delivered, and the failures just appear in your reports.

Turn your next scan export into a client-ready report.

Run a free pre-flight check

Cookie preferences

Essential site functions remain available whichever option you choose. Your advertising choice is saved on this site. The Scan Hub has a separate choice.

Google and Reddit may receive cookies, identifiers, browser and device information, and your network/IP information. Reject or withdraw at any time. Read the Privacy Policy.