SPF, DKIM and DMARC are three DNS records that prove an email really comes from your domain. SPF lists who may send for you, DKIM signs each message, and DMARC tells inboxes what to do with mail that fails. Gmail and Yahoo have required all three from bulk senders since February 2024.

Key facts

  • All three are free TXT records added in your domain’s DNS.
  • SPF: which servers may send email for your domain.
  • DKIM: a cryptographic signature that proves the message wasn’t changed.
  • DMARC: a policy (none, quarantine or reject) plus reports on who sends as you.
  • Bulk senders (about 5,000+ messages a day to Gmail) must have all three.

What is SPF?

SPF (Sender Policy Framework) is a DNS record that lists the mail servers allowed to send email for your domain. When an inbox receives your message, it checks whether the sending server is on that list.

A typical SPF record looks like this:

v=spf1 include:_spf.google.com include:sendinblue.com ~all

Each “include”** adds one sending service. The ending ~all means “**treat other servers as suspicious”.

What is DKIM?

DKIM (DomainKeys Identified Mail) adds a digital signature to every email you send. Your email service signs the message with a private key, and inboxes check it against a public key you publish in DNS.

If the signature checks out, the inbox knows the message came from your domain and wasn’t changed on the way. Your email tool gives you the exact DKIM record to copy.

What is DMARC?

DMARC (Domain-based Message Authentication, Reporting and Conformance) ties SPF and DKIM together. It tells inboxes what to do when a message fails both, and sends you reports about who is sending email as your domain.

A starter DMARC record looks like this:

v=DMARC1; p=none; rua=mailto:YOUR-REPORT-ADDRESS

The p= part is your policy:

PolicyWhat inboxes do with failing mailWhen to use it
p=noneDeliver as normal, send you reportsFirst weeks, while you check all senders
p=quarantineSend to spamOnce all real senders pass
p=rejectBlock itFinal step, strongest protection

Why do you need all three?

You need all three because each covers a gap in the others. SPF breaks when email is forwarded, DKIM alone sets no policy, and DMARC only works on top of the other two.

Mailbox providers now insist on them. Google and Yahoo require SPF, DKIM and DMARC from bulk senders, plus one-click unsubscribe and a spam complaint rate below 0.3%. Missing records are a common reason marketing email lands in spam. Read more in our guide to email deliverability.

How do you set up SPF, DKIM and DMARC?

You add three TXT records at your domain’s DNS host (for example Cloudflare, GoDaddy or Namecheap). The steps:

  1. List every service that sends email for you: your email marketing tool, Google Workspace or Microsoft 365, your help desk, your store.
  2. Create one SPF record that includes each service. Never publish two SPF records.
  3. Add DKIM using the record each service gives you, usually in its “domain authentication” settings.
  4. Add a DMARC record with p=none and a reporting address.
  5. Verify in each email tool that the domain shows as authenticated.
  6. Read DMARC reports for a few weeks, fix any sender that fails, then move to p=quarantine and later p=reject.

How do you check that it works?

Send an email from each service to a Gmail address, open it and choose “Show original”. Gmail shows SPF, DKIM and DMARC as PASS or FAIL.

You can also look up your records with any free DNS lookup tool. If a check fails, the usual cause is a missing include in SPF or a DKIM record copied with a typo.

What are the most common mistakes?

Most problems come from a few repeat mistakes:

  • Two SPF records on the same domain, which makes both fail.
  • Too many lookups. SPF allows at most 10 DNS lookups, and each include uses at least one.
  • Forgetting a sender, such as your invoicing or support tool.
  • Jumping straight to p=reject, which can block your own legitimate email.
  • Sending from a free address like a Gmail account through a marketing tool, which can’t pass DMARC for your brand.

Most email marketing tools walk you through these records. See which ones include domain authentication on cheaper plans in our email marketing cost guide.

FAQ

What are SPF, DKIM and DMARC?

They are three email authentication records you add to your domain’s DNS. SPF lists the servers allowed to send your email, DKIM adds a digital signature to each message, and DMARC tells inboxes what to do when a message fails those checks.

Do I need all three?

Yes, if you send marketing email. Since 2024 Gmail and Yahoo require SPF, DKIM and DMARC from anyone sending about 5,000 or more messages a day to their users, and Outlook added similar rules in 2025. Smaller senders also get better inbox placement with all three.

What DMARC policy should I start with?

Start with p=none and a reporting address, so you can see who sends email for your domain without blocking anything. Move to p=quarantine and then p=reject once every legitimate sender passes.

Can I have two SPF records?

No. A domain must have only one SPF record. If you use several sending services, combine them in one record with several include entries.

How long do DNS changes take to work?

Usually minutes to a few hours, and up to 48 hours in rare cases, depending on your DNS provider and the record’s TTL.

Sources