SPF, DKIM and DMARC explained
Three settings on your domain decide whether mail services trust your email. Each does one job, and they only work properly together.
Published . Updated
SPF: who may send
Short for Sender Policy Framework. A list on your domain of the services allowed to send email for it. The receiving mail service checks that the sending server is on the list.
DKIM: proof it's genuine
Short for DomainKeys Identified Mail. A hidden signature added to each message by your email provider. It proves the message came from your domain and wasn't changed on the way.
DMARC: what to do with fakes
Short for Domain-based Message Authentication, Reporting and Conformance. A rule that ties the other two to the address your reader sees, and tells mail services whether to deliver, junk or reject an email that fails.
Why you need all three
- SPF alone breaks when email is forwarded
- DKIM alone doesn't say what to do when a signature is missing
- DMARC does nothing without at least one of the other two working
Set up together, they let mail services confirm your real email and turn away fakes.
Where they live
All three are records in your domain's DNS settings, managed wherever your domain's DNS is hosted. That is often the company you bought the domain from. They are separate from your website and your mailbox, which is why they are so often forgotten.
Real records, and what the check says about them
These are records as people really publish them, each followed by the verdict our checker gives it. The domain is a stand-in; the mistakes are not.
An SPF record that approves everyone
v=spf1 include:_spf.google.com +allThe check says: Allows anyone to send as you
Your list ends with a setting that approves every sender in the world, which makes it useless.
The ending decides what happens to senders who aren't on the list. A plus sign says to accept them all, which is usually a typo for the ending that rejects them.
The fix: Change the ending to ~all.
v=spf1 include:_spf.google.com ~allAn SPF record with no ending
v=spf1 include:_spf.google.comThe check says: Set up, but not enforced
Your list exists but doesn't say what to do with senders who aren't on it, so it gives little protection.
The list is right, but nothing says what to do with a sender who isn't on it, so mail services are left to guess.
The fix: Add ~all at the end.
v=spf1 include:_spf.google.com ~allDMARC switched on and then forgotten
v=DMARC1; p=none;The check says: Switched on, in monitoring mode
This is the right first step and meets what Gmail, Yahoo and Outlook ask for, but fake emails using your name are still delivered.
This is the right place to start and the wrong place to stay. Many domains were set to monitoring mode and never moved on.
The fix: Once SPF and DKIM have both passed for a few weeks, tell mail services to send fakes to spam.
v=DMARC1; p=quarantine;Check your own domain
Free, a few seconds, and no sign-up.
Questions people ask
Which should I set up first?
SPF and DKIM, in either order, then DMARC in monitoring mode. DMARC judges every email by the other two, so they need to be working first. Move DMARC to quarantine once the first two are working.
Does my email provider set these up for me?
Sometimes partly. Providers give you the values, but the records have to be added to your domain, and that step is usually left to you.
How do I check all three at once?
Enter your domain on the home page. It reads SPF, DKIM and DMARC together, along with your website certificate and domain expiry.