Blog โ€บ Deliverability โ€บ SPF, DKIM & DMARC: Email DNS Records Explained Simply
Deliverability

SPF, DKIM & DMARC: Email DNS Records Explained Simply

Sheikh Rasel
Sheikh RaselCEO & Email System Administrator
| 8 min read ยท Updated July 2026

Three DNS records decide whether your email reaches an inbox or evaporates into a spam folder. Most explanations either dumb them down until they’re wrong, or drown you in RFC jargon. This one does neither. By the end you’ll be able to read your own records – and spot the one mistake that quietly breaks everything.

The 60-second mental model

Imagine your domain hosts a party and receiving servers (Google, Microsoft) are the security at the door.

  • SPF is the guest list. It says which servers are allowed to send mail claiming to be from your domain. Not on the list? Suspicious.
  • DKIM is the wax seal. A cryptographic signature proving the message wasn’t forged or altered in transit. Broken seal? Suspicious.
  • DMARC is the bouncer’s instructions. It tells security what to do when the first two checks fail – let them in anyway, hold them at the door, or turn them away – and it mails you a report about who tried to get in.

Here’s the part most guides skip: passing SPF and DKIM individually is not enough. DMARC also checks that the domain that passed is the same domain the recipient sees in the From line. That check is called alignment, and it’s where competent-looking setups fail. We’ll get there.

SPF: the guest list (and its hidden limit)

SPF lives as a single TXT record on your domain. A healthy one for a Google Workspace cold email domain looks like this – and note the word single:

# TXT record on yourdomain.com
v=spf1 include:_spf.google.com ~all

Reading it: v=spf1 declares the version, include:_spf.google.com pulls in Google’s list of sending servers, and ~all says “anything else soft-fails.” That’s it. For a dedicated sending domain, shorter is stronger – every extra include is attack surface and, more importantly, a step toward the limit nobody knows about:

The 10-lookup limit. SPF validation is allowed a maximum of 10 DNS lookups. Every include:, a, mx, exists:, and redirect= costs at least one – and includes inside your includes count too (Google’s alone costs 3). Cross 10 and SPF returns permerror: your authentication is treated as broken on every email, with no warning, no bounce, no dashboard alert. This is the single most common invisible deliverability killer we find in audits – usually caused by “zombie includes” from tools cancelled years ago.

The qualifier at the end matters less than forums suggest. ~all (soft fail) is the sane default; -all (hard fail) is marginally stricter and fine once you’re sure the record is complete; +all means “anyone may send as me” and is an instant credibility zero with filters. If your record ends in +all, fix it today.

DKIM: the wax seal (size matters)

DKIM signs each outgoing message with a private key; the matching public key sits in your DNS at selector._domainkey.yourdomain.com. Receiving servers verify the signature. You never touch the keys directly – Google Workspace and Microsoft 365 generate them – but two things are on you:

  • Turn it on. Workspace does not fully authenticate with its default state – you must generate the key in Admin Console (Apps โ†’ Google Workspace โ†’ Gmail โ†’ Authenticate email) and publish the TXT record it gives you. A shocking number of “professionally set up” domains skip this.
  • Choose 2048-bit. Google offers 1024 or 2048-bit keys. 1024-bit is considered weak by modern standards and some filters score it down. There is no reason to pick it. If your key was generated years ago, rotate it.

One diagnostic trick worth knowing: a DKIM record with an empty p= value means the key was revoked. If a checker shows p=;, your signing is dead even though the record “exists.” Our free DKIM checker catches both this and weak key lengths automatically.

DMARC: the instructions (and the free surveillance)

DMARC is a TXT record at _dmarc.yourdomain.com. Minimum viable version:Copy

# TXT record on _dmarc.yourdomain.com
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com

Two jobs. First, policy (p=): what should receivers do with mail that fails authentication? none = deliver anyway, quarantine = spam folder, reject = refuse outright. Second – and this is the underrated half – reporting (rua=): major receivers will email you daily XML summaries of every server sending as your domain and whether it passed. It’s free surveillance on your own infrastructure. The agency in our zombie-SPF case study lost six weeks to a problem DMARC reports would have flagged in week one. They didn’t have rua set.

The policy ladder: start at p=none while you confirm everything passes (2-4 weeks of reports), move to p=quarantine, then p=reject. Since 2024-2025, both Google and Microsoft require at least p=none DMARC from bulk senders – it stopped being optional. Parking at p=none forever is legal but weak: it tells filters you monitor but don’t enforce.

The alignment trap (where good setups fail)

Here is the concept that separates people who understand email authentication from people who’ve read about it.

Every email has two from addresses: the one humans see (the From header) and a hidden envelope address used for bounces (the Return-Path). SPF checks the Return-Path domain. Humans and DMARC care about the From domain. Some sending tools set the Return-Path to their own domain – so SPF “passes”… for their domain, not yours. DMARC notices the mismatch, alignment fails, and your beautiful green SPF checkmark counts for nothing.

# What a misaligned message looks like in a DMARC report
From header:   you@yourdomain.com  โ† what the recipient sees
Return-Path:   bounce@sometool-mail.net  โ† what SPF actually checked

SPF result:    PASS (for sometool-mail.net)
SPF alignment: FAIL (domains don't match)
DMARC verdict: relies entirely on DKIM now

This is survivable if DKIM is signed with your domain and aligned – DMARC only needs one of the two to pass with alignment. But if your tool also signs DKIM with its own domain, you’re fully unaligned and effectively unauthenticated, while every individual check shows “pass.” When a client says “all our checks are green but we’re in spam,” alignment is the first thing we look at.

Five silent killers we find in real audits

MistakeWhy it’s deadlyFix
Two SPF recordsThe spec says merge into one; two records = permerror, same as having none. Usually happens when a new tool’s wizard adds a record instead of editing.Merge all includes into a singleย v=spf1ย record.
Zombie includesOld tools’ includes stay in DNS forever, silently eating your 10-lookup budget until something tips it over.Audit quarterly. Remove an include the day the subscription ends.
DKIM never enabledWorkspace sends fine without it, so nobody notices – but you’re running on one authentication leg instead of two.Generate 2048-bit key in Admin Console, publish, verify.
DMARC withoutย ruaYou have a policy but no eyes. Problems announce themselves in reports weeks before they show in reply rates.Addย rua=mailto:...ย and actually route it somewhere monitored.
Copying records between domainsDKIM selectors and keys are per-domain. A pasted record from another domain validates nothing and fails quietly.Generate fresh keys per domain, always.

Check all three records in 10 seconds

Our free checkers count SPF lookups, discover DKIM selectors, and grade your DMARC policy – no signup.

WhatsAppRun the free checks

The setup order that never backfires

  • 1. SPF firstย – one record, provider include only,ย ~all. Verify lookup count is under 10.
  • 2. DKIM secondย – 2048-bit, generated per domain, verified with a real send (check the message headers forย dkim=pass).
  • 3. DMARC lastย –ย p=noneย withย ruaย reporting. Watch reports for 2-4 weeks, confirm alignment on both SPF and DKIM, then climb toย quarantine.
  • 4. Wait before you send cold.ย Records propagate in hours, but reputation is built over weeks. Authentication is the entry ticket, not the seat.

Every mailbox batch we deliver ships with all three records configured, aligned, and verified against a real placement test – it’s why our setups are boring. If you’d rather check your existing setup than rebuild it, send us the domain. The look costs nothing.

Sheikh Rasel

Sheikh Rasel

CEO & Email System Administrator at ITVales

I started ITVales with a single mailbox and still review deliverability escalations myself. What I write here comes straight from the infrastructure we run for clients - real inboxes, real placement data, no theory.

WhatsApp Ask Sheikh a question
๐Ÿ“ฌ Free ยท Monthly

The Deliverability Memo

One email a month: what changed at Google & Microsoft, one real fix from our audits, and the market's pricing tricks decoded. Zero fluff - written by the engineers running 29,500+ mailboxes.

1 email/month ยท unsubscribe anytime ยท sent from authenticated infrastructure, obviously โœ”