DNS authentication DMARC fail: the five real causes
A DMARC fail in your reports is almost always one of five things. Here is how to tell which one you have, and what to fix first.
You ran a DNS authentication check, or opened a DMARC report, and saw dmarc=fail. The word "fail" sounds like a verdict that your mail is spam. It is not. It is a narrow technical result, and it almost always comes down to one of five things. This guide walks through each one and shows you how to read your reports to find yours.
What a DMARC fail actually means
DMARC validation results in a verdict of either pass or fail. The standard, RFC 9989, says a pass requires an SPF or DKIM pass, and the passing domain must be aligned with the Author Domain. The Author Domain is the domain name taken from the RFC5322.From header field. That is the address the reader sees.
A message fails the DMARC check if no Authenticated Identifiers exist, or none align with the Author Domain. So there are two layers. First, SPF or DKIM has to pass on its own. Second, the domain that passed has to match the From domain in the right way.
Set your expectations here. A fail does not by itself mean the message is spam, and a pass does not guarantee inbox safety. The standard says a DMARC pass does not by itself guarantee that delivery would be safe or desirable. DMARC is commonly used as one input to more complex filtering decisions. Mailbox providers also ask for other things, like the one-click unsubscribe headers. Fixing DMARC fixes DMARC. It does not fix everything.
Cause one: SPF and DKIM both fail
The simplest failure. The message never authenticated in the first place, so there is nothing to align. Gmail's guidelines say to pass DMARC authentication, messages must be authenticated by SPF or DKIM, or both. If both fail, DMARC fails.
Check your SPF record covers every sending IP, including your CRM, your support desk, and any billing system that sends as your domain. Check DKIM signing is turned on and the public key in DNS matches the private key your system signs with.
Cause two: authentication passes, but alignment fails
This is the one that confuses people. SPF passes. DKIM passes. DMARC still fails. The reason is alignment.
Relaxed alignment means the Author Domain and the Authenticated Identifier share the same Organizational Domain. Under strict alignment, the two domains have to match exactly. You choose the mode with the adkim tag for DKIM and the aspf tag for SPF. The Domain Owner publishing the record chooses which alignment mode is required.
A common case: your SPF record passes for a shared sending service, but the envelope domain is that vendor's domain, not yours. Under relaxed alignment that still fails, because the vendor's domain is not in your Organizational Domain. The fix is usually to sign with DKIM using your own domain in the d= tag, so the signature aligns.
Should you switch to strict alignment to fix failures? Usually no. Google Workspace Help says relaxed alignment typically provides sufficient spoofing protection, while strict alignment can send messages from associated subdomains to spam. Google Workspace Help says to consider strict alignment when mail is sent for your domain from a subdomain outside your control.
Cause three: the DNS record is broken or missing
Sometimes the problem is the record itself, which is wrong or missing. If no DMARC Policy Record is discovered, the mechanism does not apply and validation stops for the message. In Authentication-Results, that shows as dmarc=none, which RFC 9989 says means no DMARC Policy Record exists for the Author Domain. That is different from a fail, and it means receivers have no policy from you at all.
DMARC Policy Records are stored as DNS TXT records with names starting with the label _dmarc. The record host should be _dmarc followed by your domain name. Google Workspace Help warns that some domain hosts automatically add the domain name, so verify the host after adding the record.
Two record-level traps:
- The v tag has to come first in the record, and DMARC1 is the only value it can hold. The whole record must be ignored if the v tag is not first, is missing, or has the wrong value.
- A record without a p tag is treated as if it said p=none. So a typo in the p tag silently turns your reject policy into a no-op.
If your TXT record holds multiple character strings, the module doing DMARC evaluation must join them in order and parse them as one string. A record split wrong at your DNS host can break parsing.
Cause four: subdomain policy gaps
Mail from your subdomain fails while mail from your main domain passes. This is a policy discovery problem, not an authentication problem.
The sp tag sets the policy for subdomains of the organizational domain. When sp is absent, the p tag policy applies to subdomains. The np tag applies only to subdomains that do not exist, not to the domain itself.
If you publish a record only at the organizational domain, subdomains inherit its policy. But someone may have published a separate record at that subdomain. That record wins, and it may say p=none or point reports somewhere you do not look. The standard says a Domain Owner who fully participates publishes a DMARC Policy Record for each Author Domain and its Organizational Domain. A record also needs to be published for the Organizational Domain when it differs from the Author Domain.
Cause five: legitimate mail that was never fixed before enforcement
The standard says some messages making authorized use of the Author Domain can still fail DMARC validation checks. Failing mail streams may be illegitimate uses like spoofing, or legitimate uses that lack aligned Authenticated Identifiers.
This is why mail that always arrived fine can go to spam or bounce once you move from p=none to quarantine or reject. Under enforcement, the policy for an Organizational Domain and all its subdomains is not p=none. The domain can only be used as an Author Domain if mail passes validation. Your old newsletter tool, your printer's scan-to-email, and that forgotten SaaS account all fail together.
The standard is blunt about the fix order: shortcomings in legitimate mail streams must be fixed before the Domain Owner publishes an Enforcement policy. That is what p=none is for. Domain Owners usually start with a policy of p=none and a rua tag pointing to the mailbox that receives aggregate reports. Starting at p=none makes sure nothing was missed in the initial SPF and DKIM deployments.
How to find which of the five you have
Read your aggregate reports. They are defined in RFC 9990 and show a Domain Owner the sources of mail using the Author Domain. The standard recommends machine-parsing them rather than reading by hand, and many third-party services exist to process them, or you can build your own tools.
Each report row tells you the story. The preserved SPF results include pass or fail and the domain used for the SPF check. The preserved DKIM results include pass or fail and the d and s tags from each checked signature. Match those against the From domain in the row.
- SPF fail and DKIM fail: cause one. Fix the underlying authentication.
- SPF pass or DKIM pass, but the passing domain does not share your Organizational Domain: cause two. Fix alignment, usually with DKIM on your own domain.
- No rows at all, or dmarc=none in Authentication-Results: cause three. Fix the record.
- Failures only from one subdomain: cause four. Check what is published at that subdomain.
- Failures from sources you recognize, like your own tools: cause five. Fix those streams before enforcing.
One more thing the reports tell you. The standard says a message that fails DMARC validation is not necessarily associated with the Author Domain and should not affect that domain's reputation. Fails from strangers spoofing you are the ones your policy is there to catch. Fails from your own systems are the ones you must fix first.
What to fix first
Fix the DNS record before anything else, because a broken record makes every other fix invisible. Then fix SPF and DKIM, then alignment, then subdomain coverage. Only after your reports show clean mail from every legitimate source should you move past p=none. Enforcement on top of unfixed streams does not make mail authenticate. It puts that mail at risk of spam foldering or rejection.
Sources
Filed