In this guide: SPF, DKIM and DMARC explained in plain English: what each record does, how to set them up, and how to check your email deliverability.
You send an important email — a proposal, an invoice, an order confirmation — and it lands in spam or disappears. Often, the reason is missing email authentication. Three DNS records — SPF, DKIM, and DMARC — prove to inbox providers that your emails are legitimate.
Major providers like Gmail and Yahoo now require authentication for bulk senders, and all senders benefit from proper setup.
Think of it like a letter:
SPF (Sender Policy Framework) is a DNS TXT record listing which servers are allowed to send email for your domain.
Example:
v=spf1 include:_spf.google.com include:sendgrid.net ~all
v=spf1 — this is an SPF record.include: — authorizes a service’s sending servers (here, Google Workspace and SendGrid).~all — soft fail for anything else (mark as suspicious). -all is a hard fail (reject).Rules:
include: statements can break it.DKIM (DomainKeys Identified Mail) adds a digital signature to each email. The sending server signs messages with a private key; receiving servers verify it using a public key published in your DNS.
Setup:
google._domainkey.yourdomain.com.Each sending service (Google Workspace, Microsoft 365, your transactional email provider, your newsletter platform) should have its own DKIM record.
DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receiving servers what to do if an email fails SPF and DKIM checks — and sends you reports.
DMARC also checks alignment: the domain in the visible “From” address must match the domain authenticated by SPF or DKIM.
Example DNS TXT record at _dmarc.yourdomain.com:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
Policies:
p=none — monitor only (start here).p=quarantine — send failing emails to spam.p=reject — block failing emails entirely.Recommended path:
p=none and collect reports for a few weeks.p=quarantine, then eventually p=reject for strong protection against spoofing.DMARC reports are XML files; free and paid DMARC report analyzers make them readable.
Beyond authentication:
For WordPress sites, pair these records with proper SMTP — see How to Set Up SMTP in WordPress.
Further reading: Google Search Central SEO Starter Guide
p=none, then tighten.We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.