Why SPF, DKIM and DMARC all matter
SPF, DKIM and DMARC are three DNS records that let other mail systems check that email from your domain really came from you. Each covers a gap the others leave, so a domain needs all three.
Talk to an engineer Knowledge base
The problem they solve
Email has no built-in check on who the sender is. Without these records, anyone can put your domain in the From line, so a fake invoice can arrive looking like it came from your accounts team. It works the other way too: large providers distrust mail they cannot check, so your genuine replies land in spam. Google and Yahoo have required authentication from bulk senders since 2024.
What each one adds
| Record | What it checks | Its weak spot |
|---|---|---|
| SPF | The sending server is on your list of allowed senders | Fails when mail is forwarded, and does not protect the From address the reader sees |
| DKIM | The message carries a valid signature and was not changed on the way | Does not tell receivers what to do with mail that fails |
| DMARC | SPF or DKIM passed for the domain in the From address | Only works once SPF or DKIM is in place |
DMARC is the one that actually stops forgeries and sends you reports, but it leans on the other two. Since SPF breaks on forwarded mail, DKIM is the backup that keeps your mail passing.
Mistakes we see most
- Two SPF records: adding a second one for a new service makes SPF fail for all your mail.
- A forgotten sender: the marketing platform or invoicing system sends as your domain but was never added to SPF or given DKIM.
- DMARC left at none: the policy never tightens, so forged mail is still delivered.
- Jumping straight to reject: your own mail gets blocked along with the forgeries.
The order to set them up
- List every sender: your mail provider and each service that emails as your domain.
- Publish one SPF record covering them all.
- Turn on DKIM in every sending service.
- Publish DMARC at none with a report address, and read the reports.
- Move to quarantine, then reject, once only your own services appear.
All three live in your DNS. When we set up, migrate or run Microsoft 365, they are part of the job, along with the records that route mail, and a website contact form that sends mail gets added to the same records. Our guide to business email covers the rest of the setup.
Related services
Microsoft 365
Exchange Online with all three records in place.
Websites
Hosting and DNS for the same domain as your mail.
Managed IT
New sending services added to the records as they arrive.
Learn more
- Email authentication on WikipediaAn overview of the methods used to verify where email comes from.
- DMARC, DKIM and SPF at CloudflareA plain walkthrough of the three records and how a receiver uses them.
- DMARC overview at dmarc.orgHow DMARC builds on SPF and DKIM, from the standard's own site.
- Google email sender guidelinesThe authentication Gmail expects from anyone sending to its users.
- Email authentication in Microsoft 365Microsoft's guide to setting up all three for a Microsoft 365 domain.
Related guides
SPFDKIMDMARCDNSEmailWindows licensingMicrosoft 365 licensingMicrosoft Office
Find out where your domain stands
Send us your domain. We will check its three records.
Start a conversation