SPF, DKIM and DMARC Explained: Stop Your Business Emails Going to Spam
SPF, DKIM and DMARC are three short records you add to your domain's DNS so that inboxes like Gmail and Outlook can confirm an email really came from you. SPF lists which services may send mail for your domain, DKIM adds a digital signature to each message, and DMARC tells receiving servers what to do with mail that fails those checks. Without them, quotes, invoices and enquiry replies are far more likely to land in spam or be rejected, and anyone can send fake emails that look like they came from your business.
- SPF says which services are allowed to send email from your domain; you should only ever have one SPF record.
- DKIM signs each email so the receiving server can tell it hasn't been forged or changed.
- DMARC ties the two together, tells inboxes what to do with failures and sends you reports.
- Gmail, Yahoo and Outlook have tightened their rules for senders, so missing records now cause real delivery problems.
- Every service that sends as your domain, including web forms and email marketing tools, needs to be covered.
Why good emails end up in spam
Email was designed decades ago with almost no way to prove who sent a message. That's why scammers can send an email that claims to be from your business, and why inbox providers treat unverified mail with suspicion. When your message arrives without proof it's genuine, Gmail or Outlook has to guess, and the guess is often the spam folder.
For a small business this shows up in frustrating ways. Customers say they never got your quote. Invoices go unpaid because they were filtered. Replies from your website's contact form vanish. In many of these cases the cause isn't what you wrote but missing or broken authentication records on your domain.
SPF: the list of approved senders
SPF, short for Sender Policy Framework, is a single TXT record on your domain that lists the services allowed to send email as you. It starts with v=spf1, then includes the services you use, such as Microsoft 365, Google Workspace or your email marketing platform, and ends with a rule such as ~all or -all for everything else.
The most common mistake is having two SPF records, usually because a second service was added later by someone who created a new record instead of editing the existing one. Receiving servers treat two SPF records as an error, so neither works. The other trap is the lookup limit: SPF only allows ten DNS lookups, and a long chain of includes can quietly break it.
- Only one SPF record per domain
- Include every service that sends as your domain
- Stay under the ten-lookup limit
- End with ~all while testing, -all once you're confident
DKIM: a signature on every email
DKIM, or DomainKeys Identified Mail, adds an invisible digital signature to each message you send. The matching public key sits in your DNS, so the receiving server can check that the email came from an approved system and wasn't altered on the way. Unlike SPF, the signature survives when an email is forwarded, which makes it the more dependable of the two.
You don't create DKIM keys by hand. Your email provider generates them. In Microsoft 365 you switch DKIM on in the Defender portal and add two CNAME records it gives you. In Google Workspace you generate a key in the admin console, add the TXT record, then press start authentication. Email marketing and booking tools usually have their own DKIM records to add too.
DMARC: the rulebook and the reports
DMARC sits on top of SPF and DKIM. It's a TXT record at _dmarc.yourdomain.co.uk that tells receiving servers what to do when an email claiming to be from you fails the checks, and where to send reports about it. The policy has three levels: p=none just monitors, p=quarantine sends failures to spam, and p=reject blocks them outright.
Start with p=none and a reporting address, then read the reports for a few weeks to spot any service you forgot to include, such as an old website form or an accounting package that emails invoices. Once everything legitimate passes, move to quarantine and eventually reject. That final step is what stops criminals sending convincing fake invoices in your name.
- Start: v=DMARC1; p=none; rua=mailto:your reporting address
- Fix anything legitimate that fails
- Move to p=quarantine
- Finish at p=reject once reports are clean
Why this matters more now
In 2024 Google and Yahoo began enforcing stricter rules for anyone sending to their users. Every sender is expected to have SPF or DKIM set up, and bulk senders must have SPF, DKIM and DMARC in place, plus easy unsubscribe links on marketing email. Microsoft has introduced similar requirements for high-volume senders to Outlook.com addresses.
Even if you only send a handful of emails a day, these changes raised the bar for everyone. Mail that would once have squeezed through now gets filtered. Setting the records up properly is a one-off job of an hour or two, and it protects every quote and invoice you send from then on.
Don't forget your website and other tools
Your own inbox is rarely the only thing sending as your domain. A contact form that emails enquiries, an online shop sending order confirmations, a booking system sending reminders, an accounts package sending invoices and a newsletter tool all count. Each one either needs adding to SPF and given its own DKIM record, or should send from a subdomain set up for that purpose.
Web forms are a classic blind spot. Many older sites send form emails straight from the web server with no authentication at all, so enquiries land in spam or never arrive. A properly built form sends through an authenticated email service instead. If your form has gone quiet, test it before assuming the leads have dried up.
- Website contact and quote forms
- Online shop order emails
- Booking and appointment reminders
- Invoicing and accounting software
- Newsletter and email marketing platforms
How to check where you stand
Send an email from your business address to a personal Gmail account, open it, and choose 'Show original' from the three-dot menu. Gmail shows whether SPF, DKIM and DMARC passed. Outlook offers a similar view through message details. Free online DNS lookup tools will also show your current records, which is useful before you change anything.
Make a note of where your DNS is managed, which is not always the same company as your website host or email provider. Change records carefully, keep a copy of what was there before, and remember that DNS changes can take a few hours to spread.
Getting help with it
If DNS makes you nervous, this is a sensible job to hand over, because one wrong record can stop email altogether. KB Studio checks and sets up email authentication as part of building and looking after client sites, and our Care Plan at £49/mo covers hosting, security updates and an hour of changes each month.
If you're also planning newsletters, our email marketing setup costs £249 one-off and includes getting the sending side authenticated properly, so campaigns reach inboxes rather than spam folders.
Common questions
Do I need SPF, DKIM and DMARC if I only send a few emails?
Yes. The records aren't only for big senders. Inbox providers check them on every message, and missing records make it more likely your quotes and invoices are filtered. DMARC also stops criminals sending fake emails that look like they came from your business, which matters at any size.
Can I have two SPF records if I use two email services?
No. A domain must have only one SPF record. If you use two services, combine them into one record with both include entries. Two separate SPF records cause the check to fail completely, which is a common reason for email suddenly going to spam after adding a new tool.
Will setting DMARC to reject stop my own emails?
It can, if any legitimate service isn't covered by SPF or DKIM. That's why you start at p=none, read the reports, and fix every genuine sender first. Move to quarantine and then reject only when the reports show your own email is passing cleanly.
I use Gmail with my own domain through my host. Does this still apply?
Yes. Whatever service sends your email, the records live on your domain's DNS. Your host or email provider should give you the exact SPF include and DKIM records to add. If they can't, that's a sign it may be worth moving to a proper business email service.
Want this done for you?
Websites from £995, live in 7 days, and you own everything. Free quote within 24 hours.