SPF, DKIM and DMARC explained
Setup for 5 providers
By the wpdailylive editorial team · Part of Email marketing, step by step
Key takeaways
- SPF: Lists which services may send email for your domain.
- DKIM: Signs messages to prove they weren’t altered.
- DMARC: Tells inboxes what to do when checks fail; start at p=none.
- Required for bulk senders: Gmail and Yahoo require all three above 5,000 emails a day.
- One SPF record: Multiple SPF records break authentication.
These three DNS records prove to inbox providers that your emails really come from you. Gmail and Yahoo now require them for bulk senders, and without them more of your email lands in spam.
| RECORD | WHAT IT DOES | IN PLAIN ENGLISH |
|---|---|---|
| SPF | Lists the servers allowed to send for your domain | "These services can send as us" |
| DKIM | Adds a digital signature to each email | "This email wasn't changed on the way" |
| DMARC | Tells inboxes what to do if SPF or DKIM fail | "If it fails, here's how to handle it" |
How to set them up
- 01Find your platform's authentication pageUsually under Settings → Domains or Sender authentication.
- 02Add your domainThe platform generates the exact records you need.
- 03Copy the records into your DNSAt your domain registrar or host, such as Cloudflare, GoDaddy or Namecheap.
- 04VerifyReturn to your email platform and click verify. DNS changes can take up to 48 hours.
- 05Add a DMARC recordStart with a monitoring policy (p=none), then tighten it once reports look clean.
| TXT | @ | v=spf1 include:spf.yourplatform.com ~all |
| CNAME | mail._domainkey | mail._domainkey.yourplatform.com |
| TXT | _dmarc | v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com |
Where to find the setup page
| PLATFORM | WHERE TO LOOK |
|---|---|
| Brevo | Senders, domains and dedicated IPs → Domains |
| MailerLite | Account settings → Domains |
| Klaviyo | Settings → Domains |
| Kit | Settings → Email → Sending domain |
| Mailchimp | Website → Domains |
Roll out DMARC safely
| STAGE | DMARC POLICY | HOW LONG | WHAT TO DO |
|---|---|---|---|
| 1. Monitor | p=none | 2–4 weeks | Read reports; find every service sending as your domain |
| 2. Fix | p=none | Until reports are clean | Add missing services to SPF and set up DKIM for each |
| 3. Quarantine | p=quarantine | 2–4 weeks | Failing mail goes to spam; watch for problems |
| 4. Reject | p=reject | Ongoing | Failing mail is blocked; your domain is protected from spoofing |
Common mistakes and fixes
| PROBLEM | FIX |
|---|---|
| Two SPF records | Merge them into one record with several include: entries |
| SPF “too many lookups” (over 10) | Remove services you no longer use; avoid nested includes |
| DKIM missing for your email platform | Turn on custom domain authentication in the platform and add its CNAME records |
| DMARC fails for a forwarding service | Check reports; DKIM usually survives forwarding when SPF doesn’t |
| Changes not showing | DNS can take up to 48 hours; check with a free lookup tool |
Check your setup in five minutes
- 01Send yourself a test email to GmailOpen it, choose “Show original”.
- 02Look for three passesSPF: PASS, DKIM: PASS, DMARC: PASS.
- 03Fix any failUse the table above, then test again.
What each record does, in one line
| RECORD | PROVES | ANALOGY |
|---|---|---|
| SPF | Which servers may send email for your domain | The guest list at the door |
| DKIM | The email wasn’t changed and really came from your domain | A tamper-proof wax seal |
| DMARC | What receivers should do if SPF/DKIM fail, and sends you reports | The house rules, plus a CCTV report |
Example records
| RECORD | HOST | EXAMPLE VALUE |
|---|---|---|
| SPF (TXT) | @ | v=spf1 include:_spf.google.com include:servers.mcsv.net ~all |
| DKIM (TXT or CNAME) | selector._domainkey | Provided by each sending service (Google, Microsoft, your email platform) |
| DMARC (TXT), start | _dmarc | v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com |
| DMARC (TXT), enforce | _dmarc | v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc@yourbusiness.com |
DMARC alignment: the part most people miss
DMARC passes only if SPF or DKIM passes and the domain it checks matches (aligns with) the domain in your visible From address. If your newsletter platform signs with its own domain, DKIM passes but doesn’t align, and DMARC fails. Fix it by setting up the platform’s custom domain authentication so it signs with yourbusiness.com.
Mailbox provider rules you now have to meet
| REQUIREMENT | WHO ASKS FOR IT |
|---|---|
| SPF and DKIM for all senders | Gmail, Yahoo and Outlook.com |
| DMARC (at least p=none) for bulk senders | Gmail and Yahoo (since February 2024) and Outlook.com (since 2025) |
| One-click unsubscribe in marketing emails | Gmail and Yahoo for bulk senders |
| Spam complaint rate under 0.3% (aim under 0.1%) | Gmail and Yahoo |
Bulk senders are those sending around 5,000 or more messages a day to Gmail; smaller businesses are increasingly held to the same standards in practice, so set all three records up whatever your volume.
Fix common errors
| ERROR | CAUSE | FIX |
|---|---|---|
| SPF permerror: too many DNS lookups | More than 10 lookups across includes | Remove unused services; flatten includes |
| Two SPF records | Added a new record instead of editing | Merge into one v=spf1 record |
| DKIM fails after DNS change | Record copied with a typo or split badly | Copy again; check with a DKIM checker |
| DMARC fails but SPF and DKIM pass | No alignment | Authenticate your domain in each sending platform |
Email authentication checklist
Tools to check your setup
- •Send an email to Gmail and use “Show original” to see SPF, DKIM and DMARC results
- •MXToolbox or similar free lookup tools for each record
- •Google Postmaster Tools for spam rate and reputation (needs volume to show data)
- •A DMARC report service to read aggregate reports
Common mistakes to avoid
What are SPF, DKIM and DMARC?
DNS records that authenticate your email: SPF lists allowed senders, DKIM adds a digital signature and DMARC sets the policy for failures and sends reports.
How do I set up SPF, DKIM and DMARC?
List every service that sends as your domain, create one SPF record including them, enable DKIM in each service, then add a DMARC record starting at p=none.
What is a DMARC record example?
v=DMARC1; p=none; rua=mailto:dmarc@yourbusiness.com — then move to p=quarantine once reports look clean.
What is DMARC alignment?
The domain checked by SPF or DKIM must match the domain in the From address for DMARC to pass.
Do small businesses need DMARC?
Yes. Gmail, Yahoo and Outlook expect it from bulk senders, and it protects your domain from spoofing.
Why are my emails going to spam even with SPF and DKIM?
Check DMARC alignment, spam complaints, list quality, sending volume spikes and whether you have one-click unsubscribe.















