actionabletools

· 3 min read

SPF, DKIM and DMARC Explained in Plain English

SPF lists who may send your email, DKIM signs each message, and DMARC says what to do when both fail. What each record looks like, how they fit together, and how to check yours.

Open the DMARC CheckerFree, no sign-up

Email was designed with no way to prove who sent it. Anyone can type any address in the From line. SPF, DKIM and DMARC are three records in your domain’s DNS that fix this. Each one answers a different question, and they only protect you properly together.

Check your three records in one minute

  1. Open the DMARC checker.
  2. Type your domain. It shows your DMARC record and your SPF record, with what’s wrong in plain words.
  3. For DKIM, send yourself an email and paste its headers into the email header analyzer. It shows whether DKIM passed and which domain signed it. DKIM can’t be checked from the domain alone, because the record’s name depends on the sending service.

SPF: who is allowed to send

SPF is a list of the servers allowed to send email for your domain. It’s a single TXT record on the domain itself:

v=spf1 include:_spf.google.com include:servers.mcsv.net ~all

Each include: adds one service’s servers. The ending says what to think of everything else: ~all means “probably not us” and -all means “definitely not us”.

Its weak spots: SPF checks the hidden bounce address (the Return-Path), not the From address people see. It breaks when email is forwarded, because the forwarder’s server isn’t on your list. And it’s capped at 10 DNS lookups, which a business with many tools can run past.

DKIM: a signature on every email

DKIM adds a signature to each email when it leaves. The receiving server looks up your public key in DNS and checks the signature. If it matches, two things are proven: the email was sent with your domain’s key, and nobody changed it on the way.

The signature header names the signing domain (d=yourbusiness.com) and a selector (s=google). The key lives at a matching DNS name:

google._domainkey.yourbusiness.com

Every sending service gets its own selector and key, which is why you add DKIM records separately for your mailbox, your newsletter tool and your shop.

Its weak spot: a service you haven’t set up signs with its own domain instead of yours. That passes DKIM, but proves nothing about you.

DMARC: what to do when the proof is missing

DMARC is the rule on top. It’s a TXT record at _dmarc.yourbusiness.com:

v=DMARC1; p=quarantine; rua=mailto:[email protected]

It does three jobs:

  1. Alignment. It requires that SPF or DKIM passes for the same domain as the visible From address. This closes the gaps in both: a forger can pass SPF with their own bounce domain, or DKIM with their own key, but not for your domain.
  2. Policy. It tells receivers what to do when alignment fails: deliver anyway (p=none), send to spam (p=quarantine) or refuse (p=reject).
  3. Reports. Receivers send daily summaries to the rua address, so you can see every server sending as you.

How the three fit together

SPF DKIM DMARC
Answers Is this server allowed? Is this signature genuine? Does it match the From domain, and what if not?
DNS name the domain itself selector._domainkey _dmarc
Survives forwarding No Usually Yes, if DKIM passes
You need One record One per sending service One record

An email passes DMARC when either SPF or DKIM passes and matches the From domain. One is enough, and DKIM is the one to rely on, because it survives forwarding.

What the inboxes now require

Since February 2024, Gmail and Yahoo require every sender to pass SPF or DKIM, and senders of more than 5,000 emails a day to have SPF, DKIM and DMARC, with the From domain aligned. Outlook.com set similar rules for large senders in May 2025. Smaller senders aren’t blocked for missing records, but they’re judged more harshly without them.

The order to set them up

  1. SPF: one record listing every service that sends as you.
  2. DKIM: turn it on in each service, using your own domain.
  3. DMARC: start at p=none to get reports, then tighten. How to set up DMARC covers the steps.

MX records are a separate thing again: they decide where your incoming mail goes, and have nothing to do with whether your outgoing mail is trusted. What is an MX record explains them.

Questions people ask

Do I need all three: SPF, DKIM and DMARC?

Yes. SPF and DKIM prove an email is yours, and DMARC is what tells inboxes to act on that proof. Gmail and Yahoo require all three from bulk senders, and they help everyone else's mail too.

Which is most important?

DKIM does the most work, because it survives forwarding and ties each message to your domain. DMARC is what turns that into protection. SPF is the oldest and the most fragile.

Where do these records go?

All three are TXT records in your domain's DNS, though DKIM is often added as a CNAME that points at your provider's key. SPF sits on the domain itself, DKIM at selector._domainkey, and DMARC at _dmarc.

What is the difference between ~all and -all in SPF?

~all (soft fail) says mail from unlisted servers is suspicious. -all (fail) says it's not from you. With DMARC in place, the difference matters little, because DMARC makes the final call.

Can I have two SPF records?

No. Two SPF records make SPF fail for every email. Combine every service into one record.

Use these tools

Related guides