SPF, DKIM and DMARC Explained: Stop Your Emails Going to Spam

Three DNS records decide whether your business emails reach the inbox or the spam folder. Here is what SPF, DKIM and DMARC do and how to set them up.

On this page
  1. Why this matters now
  2. SPF: who is allowed to send as you
  3. DKIM: a signature on every email
  4. DMARC: what to do when a check fails
  5. Where to start

If customers tell you your emails went to their spam folder, or an invoice you sent never arrived, the cause is very often three missing records in your domain’s settings: SPF, DKIM and DMARC.

They sound technical, but each one has a simple job. Together they prove to other email systems that a message really came from your business, and they make it much harder for anyone to send fake emails pretending to be you.

Why this matters now

Gmail, Yahoo and Outlook have all tightened their rules on incoming email over the last couple of years. Mail from a domain without these records is far more likely to be filtered as spam or rejected outright, even if you only send a handful of emails a day. If you use your own domain for email, it is worth checking all three are in place.

SPF: who is allowed to send as you

SPF (Sender Policy Framework) is a list of the services allowed to send email using your domain. When a message arrives, the receiving server checks whether it came from one of them.

  • You can only have one SPF record per domain, so every service has to go in the same record.
  • Include everything that sends as you: Microsoft 365 or Google Workspace, your website’s contact form, your invoicing software and any newsletter tool.
  • A missing service is one of the most common reasons legitimate emails fail.

DKIM: a signature on every email

DKIM (DomainKeys Identified Mail) adds a hidden digital signature to each email you send. The receiving server checks it against a public key published in your domain’s settings. If the signature matches, it knows the message came from you and was not changed on the way.

Your email provider creates the keys; you add the records it gives you to your domain. In Microsoft 365 it is a couple of records and a switch to turn signing on.

DMARC: what to do when a check fails

DMARC ties the other two together. It tells receiving servers what to do with a message that fails SPF and DKIM, and it sends you reports showing who is sending email using your domain. That is often the first time a business discovers a forgotten service, or someone trying to impersonate them.

A DMARC policy has three settings:

  • none: just watch and report. This is where everyone should start.
  • quarantine: send failing messages to spam.
  • reject: refuse failing messages completely.

Where to start

Set up SPF and DKIM first, then add DMARC in monitoring mode. Read the reports for a few weeks, fix anything legitimate that is failing, and only then move to quarantine and, eventually, reject. Jumping straight to reject is the quickest way to block your own emails.

If you would rather not touch your DNS settings yourself, this is exactly the kind of job our domain and DNS management service handles. We set up all three records, keep an eye on the reports and explain what we find in plain English.

Found this useful? Share it.

Need a Hand With This?

Tell us what you are trying to do and we will get back to you with clear advice. Real people, no jargon.