Home/Blog/How to Fix SPF, DKIM and DMARC Failures (2026)

How to Fix SPF, DKIM and DMARC Failures (2026)

Email shield with SPF DKIM DMARC badges, authenticated envelope passing through security gate

Your emails land in spam — or vanish entirely. A SPF DKIM DMARC fail fix is the single highest-leverage email deliverability work you can do: these three DNS records prove your mail is really from you, and without them Gmail and Outlook increasingly reject or junk your messages. This 2026 guide explains each record and how to set them up correctly.

Here is what the trio does. SPF lists which servers may send mail for your domain — receivers check the sending IP against your SPF record. DKIM adds a cryptographic signature to each message — receivers verify it with the public key in your DNS. DMARC ties them together: it tells receivers what to do when SPF/DKIM fail (nothing, quarantine, or reject) and where to send reports. A failure in any one of the three degrades your deliverability.

What Causes SPF, DKIM, and DMARC Failures

  • Missing records: no SPF/DKIM/DMARC published at all — the most common case.
  • SPF too many lookups: more than 10 DNS lookups in the SPF record (each include: counts).
  • SPF missing a sender: you added a new mail service but never added it to SPF.
  • DKIM not enabled: DNS key published but the mail service is not actually signing.
  • DMARC alignment failure: the From domain does not match the SPF Return-Path or DKIM domain.
  • Forwarding breaking SPF: forwarders change the envelope, failing SPF (DKIM survives).

How to Fix SPF, DKIM, and DMARC: 8 Steps

Step 1: Audit your current records

Query your DNS: dig TXT yourdomain.com for SPF, dig TXT selector._domainkey.yourdomain.com for DKIM, dig TXT _dmarc.yourdomain.com for DMARC. Note what exists and what is missing before changing anything.

Step 2: Publish a correct SPF record

Create a TXT record at your root domain: v=spf1 include:_spf.google.com include:sendgrid.net ~all — one record only, listing every service that sends as you. Use ~all (softfail) while testing, -all (hard fail) when confident. Count includes: stay under 10 DNS lookups.

DNS records panel with SPF DKIM DMARC entries verified with green checkmarks, email authentication concept

Step 3: Enable DKIM signing

In your mail service (Google Workspace, Microsoft 365, SendGrid, cPanel), generate a DKIM key, publish the TXT record it gives you at selector._domainkey, then enable signing. Both steps are required — a published key with signing off does nothing.

Step 4: Publish DMARC starting at p=none

Add TXT at _dmarc: v=DMARC1; p=none; rua=mailto:[email protected];. The none policy only collects reports — no mail is affected. This is the safe starting point.

Step 5: Read the DMARC reports

After a week, the aggregate reports show which senders pass and fail. Add legitimate senders to SPF, fix DKIM signing, and identify spoofing attempts. Free DMARC report analysers make the XML readable.

Step 6: Tighten to quarantine, then reject

Once legitimate mail passes consistently, move to p=quarantine (failures go to spam), then p=reject (failures are refused). Tighten gradually with a week of monitoring between steps.

Step 7: Fix alignment

DMARC requires alignment: the domain in your From header must match the SPF-authenticated Return-Path domain or the DKIM signing domain. If you send via a service that uses its own bounce domain, configure a custom Return-Path or rely on DKIM alignment instead.

Step 8: Test end to end

Send test mail to Gmail and check “Show original” — it displays SPF, DKIM, and DMARC results. Use a mail-tester tool for a scored deliverability report. For bounce problems beyond authentication, see our SMTP 550 guide.

How to Prevent Authentication Failures

  • Add every new mail service to SPF before it sends its first message.
  • Keep DMARC reports flowing to a monitored mailbox.
  • Re-check records after DNS or hosting migrations.
  • Keep the SPF lookup count under 10 — flatten includes when needed.
  • Rotate DKIM keys yearly.

Conclusion

SPF, DKIM, and DMARC are your domain’s email ID card: publish SPF with all senders, enable DKIM signing, roll DMARC from p=none to reject using the reports. In 2026, mailbox providers expect all three — set them up once and your deliverability problems mostly disappear. For more email fixes, browse the KamiWeb blog.