Email Authentication Troubleshooting

DMARC, SPF, and DKIM failures have a finite set of causes. This guide covers the most common ones, how to diagnose them from your DMARC reports, and how to fix them.

How DMARC, SPF, and DKIM Work Together

Before troubleshooting, it helps to understand what each system does:

  • SPF (Sender Policy Framework) — verifies that the sending IP address is authorized by the domain in the envelope sender (Return-Path). SPF alignment for DMARC requires that the envelope sender domain matches the From header domain.
  • DKIM (DomainKeys Identified Mail) — verifies that the message body and headers haven't been modified in transit, using a cryptographic signature. DKIM alignment requires that the signing domain matches the From header domain.
  • DMARC — passes if either SPF or DKIM passes with alignment. It doesn't matter which one — both failing is what causes DMARC to fail.

Reading Failures in Your DMARC Reports

Your DMARC aggregate reports are the primary diagnostic tool. For each failing source, check:

  1. What is the source IP? — Identify what sending service or system this is.
  2. Did SPF pass or fail? — If fail, the IP is not in the SPF record or the envelope sender domain doesn't match.
  3. Did DKIM pass or fail? — If fail, DKIM isn't configured for this sender, the DNS record is wrong, or the message was modified in transit.
  4. What is the disposition? — With p=none, it will be none even for failures. This tells you what will happen when you enforce.

Common SPF Failures

Sending IP Not in SPF Record

Symptom: SPF fail from an IP you don't recognize, or from a service you recently onboarded.

Fix: Add the service's sending range to your SPF record. Most providers document their SPF include mechanism — look for "SPF record" or "email authentication" in their help documentation. Add include:provider-spf-domain.com to your record.

SPF Alignment Failure (SPF passes but DMARC fails)

Symptom: SPF shows as pass in the raw lookup but DMARC still fails. The header_from and envelope sender domain don't match.

Fix: Configure the sending service to use your domain as the envelope sender. Many ESPs send on behalf of your domain using their own domain in the Return-Path, then set your domain in the From header. If the service supports custom Return-Path configuration, enable it. If not, set up DKIM signing instead — DKIM alignment is usually more reliable than SPF alignment for third-party senders.

SPF PermError — Too Many Lookups

Symptom: Widespread SPF failures across many legitimate senders, not just one specific source.

Fix: Count the DNS lookups in your SPF record. If you're over 10, see our guide on fixing SPF records that are too long.

Two SPF Records on the Same Domain

Symptom: SPF PermError even though your record looks correct.

Fix: Look up all TXT records for your domain. If there are two records starting with v=spf1, delete one and merge the content into a single record. Having two SPF records always causes PermError.

Common DKIM Failures

DKIM Not Configured for the Sending Service

Symptom: DKIM fail from a specific source (ESP, SaaS tool, internal system). SPF may be passing, but DMARC still fails because SPF isn't aligned.

Fix: Enable DKIM signing in the sending service. The service will give you a TXT record to publish in your DNS (usually at a subdomain like selector._domainkey.yourdomain.com). After publishing, enable signing in the service and wait for DNS propagation.

DKIM DNS Record Not Propagated

Symptom: DKIM was just set up but is still failing. The sending service reports DKIM is configured.

Fix: Wait 24 to 48 hours for DNS changes to propagate. Verify the record exists using a DNS lookup tool querying the selector subdomain directly.

DKIM Record Incorrect

Symptom: DKIM was set up weeks ago but has never passed.

Fix: Look up the DKIM TXT record and compare it character by character with what the sending service expects. Common mistakes: a missing semicolon between tags, incorrect selector name, or the record being published at the wrong subdomain. DKIM records are sensitive to formatting — a single misplaced space can invalidate the signature.

DKIM Broken by Email Forwarding or Mailing Lists

Symptom: DKIM fails only for messages that were forwarded or went through a mailing list.

This is expected behavior. Email forwarding and mailing lists often modify the message body or headers, which invalidates the DKIM signature. This cannot be fixed on the sender side. It is a known limitation of DKIM. These failures in your reports don't require action — they are legitimate messages from forwarding infrastructure.

DMARC Failures That Don't Need Fixing

Not every failure in your DMARC reports requires action:

  • Forwarded messages — SPF fails because the forwarding server's IP isn't in your record. DKIM may also fail if the message was modified. Normal and expected.
  • Spam/phishing attempts — Unknown IPs with high failure rates sending messages you didn't authorize. These are your DMARC policy working as intended. When you move to p=reject, these will be blocked.
  • Old or legacy systems — Low-volume failures from systems that have been decommissioned. If the source is gone, the reports will stop once the system stops sending.

Get Clear Answers Without the XML

Your DMARC Exposed categorizes your sending sources automatically — legitimate senders, authentication failures, and spoofing attempts — so you can fix what matters and ignore what doesn't.

Start Your Free Trial Check Your DMARC Record

Frequently Asked Questions

Why is DMARC failing for my domain?

DMARC fails when both SPF and DKIM fail alignment. Common causes: a sending service is not in your SPF record and has not set up DKIM for your domain; your SPF record has too many DNS lookups (PermError); a third-party tool is sending from a different domain in the Return-Path; or email forwarding has broken SPF alignment. Check your DMARC aggregate reports to identify which sources are failing and why.

Why does SPF pass but DMARC still fail?

SPF can pass the authentication check but fail DMARC alignment. DMARC requires the SPF-authenticated domain (the envelope sender / Return-Path domain) to match the From header domain. If an ESP sends with its own domain in the Return-Path, SPF passes for the ESP's domain but doesn't align with your From domain. The fix is to configure the ESP to use your domain in the Return-Path, or enable DKIM signing.

Why is DKIM failing after I set it up?

Common causes: the DNS record hasn't propagated yet (allow 24–48 hours); the TXT record was entered incorrectly; the sending service's DKIM signing is not enabled or uses the wrong selector; or email modification in transit (mailing lists, security gateways) has invalidated the signature. Verify the record is published correctly by looking it up directly with a DNS tool.

Can I have DMARC pass if only DKIM passes (not SPF)?

Yes. DMARC requires either SPF or DKIM to pass with alignment — not both. If DKIM passes and aligns with your From domain, DMARC passes regardless of SPF. This is why DKIM is generally considered the more robust mechanism for DMARC: it survives email forwarding in a way SPF cannot.