
SPF, DKIM and DMARC: why your emails land in spam
If your emails land in junk, the content may not be the problem. Mailbox providers such as Gmail, Outlook and Hotmail check that a message really comes from you, and three DNS records prove it: SPF, DKIM and DMARC. Missing or misconfigured records are one of the most common reasons genuine business email goes to spam.
- SPF lists which servers may send email for your domain.
- DKIM signs each message so receivers can verify it was not changed.
- DMARC tells receivers what to do when checks fail, and sends you reports.
- Large mailbox providers now expect all three from bulk senders.
- Authentication is necessary, but reputation and list quality still matter.
SPF: who may send
SPF (Sender Policy Framework) is a DNS record listing the servers allowed to send email for your domain. When a message arrives, the receiving server checks whether it came from one of them. If not, it treats the message as suspicious.
Every service that sends email as your domain must be included: your mail provider, newsletter platform, website contact forms, CRM, invoicing software and helpdesk. A common mistake is having two separate SPF records; there must be only one, combining all senders, and it must stay within the limit on DNS lookups.
DKIM: a signature on every message
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each email. The public key sits in your DNS, and the receiving server uses it to confirm that the message really came from an approved sender and was not changed on the way.
Each sending service usually has its own DKIM key. Turn DKIM on in every platform that sends as your domain, and publish the records it provides.
DMARC: what to do when checks fail
DMARC (Domain-based Message Authentication, Reporting and Conformance) ties SPF and DKIM together. It tells receivers what to do with messages that fail, and asks them to send you reports.
DMARC also requires alignment: the domain in the visible From address must match the domain that passed SPF or DKIM. That is what stops someone else sending email that looks like it comes from you.
- p=none: monitor only. Collect reports without affecting delivery.
- p=quarantine: failing messages go to spam.
- p=reject: failing messages are refused.
A safe order to set up
- List every system that sends email as your domain.
- Publish one SPF record that covers all of them.
- Turn on DKIM signing in each sending platform.
- Publish DMARC with a policy of none and a reporting address.
- Read the reports for a few weeks and fix any legitimate sender that fails.
- Move to quarantine, then to reject when you are confident.
The records at a glance
| Record | What it proves | Common problem |
|---|---|---|
| SPF | The sending server is approved | Missing senders, two SPF records, too many lookups |
| DKIM | The message is signed and unchanged | Not enabled in newsletter or form tools |
| DMARC | The From domain is genuine, and what to do if not | Missing, or stuck on none forever |
| Reverse DNS (PTR) | The sending IP matches a real hostname | Missing on self-hosted mail servers |
Why Outlook and Hotmail are often stricter
Microsoft's consumer mail services are known for filtering strictly. Besides authentication, they weigh the reputation of your sending IP and domain, how recipients interact with your mail, and complaint rates. If you send from your own server, make sure reverse DNS is set, check that your IP is not on blocklists, and consider registering with Microsoft's sender programmes for reputation data.
Authentication is only the start
Large mailbox providers now expect authentication from anyone sending in bulk, along with easy unsubscribes and low complaint rates. Even with perfect records, delivery depends on:
- Reputation: the history of your domain and sending IP.
- List quality: sending only to people who asked for your emails.
- Engagement: people opening, clicking and not marking you as spam.
- Consistency: steady sending rather than sudden large blasts.
- Content: clear, honest, not stuffed with links or images.
How to check your setup
- Send a test email to a Gmail account, open it, and use "Show original" to see whether SPF, DKIM and DMARC pass.
- Use a free DNS lookup tool to view your SPF, DKIM and DMARC records.
- Read your DMARC reports, or use a service that summarises them.
Common mistakes
- Forgetting to add a newsletter or CRM tool to SPF.
- Publishing two SPF records.
- Never enabling DKIM in third-party tools.
- Jumping straight to p=reject and blocking your own legitimate email.
- Sending marketing from the same domain and IP as everyday business mail without care.
Questions people ask
How long do DNS changes take?
Often minutes, sometimes a few hours, depending on the record's TTL and how long other servers cache it.
Will this fix all junk-folder problems?
It fixes the authentication part, which is often the biggest. If problems remain, reputation, blocklists or list quality are the next places to look.
Setting it up with common providers
Google Workspace
Google provides an SPF include to add to your SPF record and a DKIM key you generate in the admin console and publish in DNS. Turn on DKIM signing after the record is live, then add DMARC.
Microsoft 365
Microsoft provides an SPF include and two DKIM CNAME records per domain. Once published, enable DKIM for the domain in the Microsoft security portal, then add DMARC.
Your own mail server
Add your server's IP address to SPF, generate DKIM keys on the server and publish them, set reverse DNS for the sending IP with your hosting provider, and add DMARC. Monitor blocklists regularly.
Newsletter and CRM tools
Each platform has a domain authentication section that gives you the records to add. Use your own domain, not the platform's shared one, for better delivery.
Do we need BIMI?
BIMI can show your logo next to emails in some inboxes, but it requires DMARC at quarantine or reject first. Get the basics right before considering it.
How we help
Our business email service sets up and checks SPF, DKIM, DMARC and reverse DNS for Google Workspace, Microsoft 365 and private mail servers, and fixes junk-folder problems. Our email marketing service makes sure your campaigns are authenticated and sent responsibly.