Skip to content

Email deliverability

SPF, DKIM and DMARC explained: record examples and how to check them

Last reviewed: By Cluesfinders Editorial Team

SPF, DKIM and DMARC are three DNS records that prove an email really comes from your domain. SPF lists the servers allowed to send for you, DKIM adds a signature that shows the message was not changed, and DMARC tells inboxes what to do when a message fails those checks. Without them, your email is far more likely to land in spam, and anyone can pretend to be you. This guide explains each record in plain words, shows record examples you can copy, and gives a safe order to set them up.

How we compare: Based on the SPF, DKIM and DMARC standards and Google’s published rules for senders; the ESTAGE part comes from the ESTAGE Knowledge Base.

Official sources checked

Plans and prices change often. Confirm details on each vendor’s site before you buy.

Disclosure: Cluesfinders is an independent affiliate of ESTAGE and may earn a commission if you sign up through our links, at no extra cost to you. That relationship does not change the facts we report about other platforms.

SPF, DKIM and DMARC at a glance

RecordWhat it provesWhere it livesExample
SPFWhich servers may send email for your domainTXT on yourdomain.comv=spf1 include:_spf.google.com ~all
DKIMThe message was signed by your domain and not changedTXT on selector._domainkey.yourdomain.comv=DKIM1; k=rsa; p=MIIBIjANBg…
DMARCWhat to do when SPF or DKIM fail, and where to send reportsTXT on _dmarc.yourdomain.comv=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

Values are examples. Always copy the exact SPF include and DKIM key from the service that sends your email.

SPF: who is allowed to send

SPF (Sender Policy Framework) is one TXT record on your domain that lists the services allowed to send email as you. A receiving inbox checks it and sees whether the server that delivered the message is on your list.

Example: v=spf1 include:_spf.google.com include:sendgrid.net ~all. Each include adds one sending service. The ending decides what happens to everyone else: ~all marks other senders as suspicious (soft fail), -all rejects them (hard fail).

  • Your domain should have only one SPF record. If you use two services, put both includes in the same record.
  • SPF allows at most 10 DNS lookups. Too many includes break it, so remove services you no longer use.

DKIM: a signature on every message

DKIM (DomainKeys Identified Mail) signs each email with a private key kept by the service that sends it. You publish the matching public key in your DNS, so inboxes can check the signature and confirm the message was not altered on the way.

The record lives on a name like selector._domainkey.yourdomain.com, where the selector is a word the sending service chooses. Each service gives you its own DKIM record, so you can have several at once without conflict.

DMARC: the policy and the reports

DMARC (Domain-based Message Authentication, Reporting and Conformance) ties SPF and DKIM to the address people see in the From line, then tells inboxes what to do when a message fails: deliver it anyway, send it to spam, or reject it. It also asks inboxes to send you reports, so you can see who is sending email with your domain.

  • v=DMARC1 starts the record.
  • p=none only monitors, p=quarantine sends failures to spam, p=reject blocks them.
  • rua=mailto:… is the address that receives daily summary reports.
  • pct=100 applies the policy to all mail (100 is the default).
  • adkim and aspf set alignment: r (relaxed, the default) allows subdomains, s (strict) requires an exact match.

DMARC record examples

  • Start (monitor only): v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
  • Next step (spam folder): v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc@yourdomain.com
  • Full protection: v=DMARC1; p=reject; rua=mailto:dmarc@yourdomain.com
  • All three go in a TXT record with the name _dmarc (your DNS provider adds your domain after it).

How to set them up, in a safe order

  • List every service that sends email for you: your mailbox host, your email marketing tool, your store, your booking tool.
  • Publish one SPF record that includes all of them.
  • Turn on DKIM in each service and add the DNS record each one gives you.
  • Publish DMARC with p=none and a report address, and read the reports for a couple of weeks.
  • When the reports show only your own services passing, move to p=quarantine, then to p=reject.
  • Check your records with a free SPF, DKIM and DMARC checker after every change.

How to check SPF, DKIM and DMARC

There are three quick ways to check your records, from easiest to most technical:

  • Send a test email to a Gmail account, open it, click the three dots and choose Show original. The top of the page shows SPF, DKIM and DMARC with PASS or FAIL next to each.
  • Use a free online checker, such as MXToolbox, and type your domain. It looks up the SPF and DMARC records; for DKIM it also needs the selector your email service uses.
  • On a computer, run nslookup -type=txt yourdomain.com to see SPF, and nslookup -type=txt _dmarc.yourdomain.com to see DMARC. On a Mac or Linux, dig txt _dmarc.yourdomain.com does the same.

What the check results mean

  • Pass: the record exists and the message matched it.
  • Softfail (SPF): the sending server is not on your list, and your record ends in ~all, so inboxes treat it as suspicious rather than rejecting it.
  • Fail: the message did not match. For SPF, add the missing service to your record; for DKIM, check that the key in DNS matches the one in your email service.
  • None or “no record found”: the record is missing or published on the wrong name.
  • DMARC fail with SPF pass: SPF passed for a different domain than your From address. Turn on DKIM in that service so the signature uses your domain.

SPF includes for common email providers

  • Google Workspace: include:_spf.google.com
  • Microsoft 365: include:spf.protection.outlook.com
  • Other services, such as your email marketing tool or store, publish their own include in their help pages; add each one to the same SPF record.
  • In both Google Workspace and Microsoft 365, DKIM is turned on in the admin center, which then shows the DNS record to add.

What Gmail requires

Since February 2024, Google requires senders of more than 5,000 messages a day to Gmail accounts to have SPF, DKIM and DMARC set up for their domain, to offer one-click unsubscribe on marketing email, and to keep their spam rate in Postmaster Tools below 0.3%. Even a small sender lands in the inbox more often with all three in place.

SPF, DKIM and DMARC in ESTAGE

When you authenticate your domain in ESTAGE (Settings → Email sending → Domain authentication), ESTAGE adds a DKIM record and MX and TXT records on a mail. subdomain that align your return path with your domain. If ESTAGE manages your DNS, the records are written for you; otherwise it shows the exact type, name and value to copy.

DMARC is not needed to start sending in ESTAGE, but it becomes required above 5,000 emails a day and for a brand logo in the inbox. For those, publish p=quarantine or p=reject as a TXT record on _dmarc.yourdomain.com.

Send email from your own domain, authenticated

ESTAGE writes the DKIM and return-path records for domains it manages, and shows you exactly what to copy for the rest.

See business email and domain

Cluesfinders is an independent affiliate of ESTAGE and may earn a commission from links on this page, at no extra cost to you.

Frequently asked questions

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send for your domain. DKIM signs each message so it cannot be changed or faked. DMARC checks that SPF or DKIM match your From address and tells inboxes what to do when they do not.

Do I need all three?

Yes, for reliable delivery. Google requires all three for senders of more than 5,000 messages a day to Gmail, and they also help smaller senders reach the inbox.

How do I create a DMARC record?

Add a TXT record named _dmarc with a value like v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. Start with p=none, read the reports, then move to quarantine and reject.

Why does my email fail DMARC when SPF passes?

DMARC needs SPF or DKIM to pass for the same domain as your From address. Often SPF passes for the sending service’s own domain instead. Turning on DKIM with your domain in that service usually fixes it.

Can I have two SPF records?

No. Two SPF records make SPF fail. Combine all your services in one record, for example v=spf1 include:first.com include:second.com ~all.

What does “no DMARC record found” mean?

Your domain has no TXT record on _dmarc.yourdomain.com. Add one with at least p=none to start receiving reports.

How do I check my SPF, DKIM and DMARC?

Use a free online checker with your domain name, or send a test email to a Gmail account and open Show original, which shows PASS or FAIL for each one.

Mission 1000

Build a hub with 1,000 members

Your tools are set. Now give your people one place to belong. One clear path, from launch to 10, 100, 250 and 1,000 members.

Keep exploring · CRM, email and business tools

Where to go next