Security guides

SPF, DKIM and DMARC: stop others sending email as you

Three DNS records decide whether the world believes an email really came from your domain. What each one does, and the order to set them up in.

Written by
Sentio Langley
Published
Reading time
2 min
A parchment envelope resting on slate-blue sheets of paper
AI-generated illustration.

Email was designed without a way to prove who sent a message. Anyone can send an email that claims to come from [email protected]. Invoice fraud often starts right there: a message that looks like yours, asking a customer to pay into a new bank account.

Three records in your domain's DNS close most of that gap. They also help your real email land in inboxes instead of spam folders.

SPF: who may send for you

SPF lists the servers allowed to send email for your domain. A receiving mail server checks the list, and mail from anywhere else looks suspect.

v=spf1 include:spf.protection.outlook.com -all

That example allows Microsoft 365 and nothing else. List every service that sends as you: your email host, and also your accounting system, newsletter tool and website forms.

DKIM: a signature on every message

DKIM signs each outgoing message with a private key, and the matching public key sits in your DNS. A receiver checks the signature and knows the message came from a server you trust and was not changed on the way.

Your email provider creates the keys. You publish the records it gives you, then switch signing on.

DMARC: what to do with failures

DMARC tells receivers what to do when a message claiming to be from your domain fails both checks, and where to send reports about it.

v=DMARC1; p=none; rua=mailto:[email protected]

Start with p=none, which changes nothing and only collects reports. Read them for a few weeks, fix any real service that fails, then move to p=quarantine and finally p=reject.

The order that works

  1. List every system that sends email as your domain.
  2. Publish SPF with all of them in it.
  3. Turn on DKIM at each one that supports it.
  4. Publish DMARC at p=none and read the reports.
  5. Tighten DMARC step by step once the reports are clean.

Where we can help

We set up and document these records, and help you read the DMARC reports before you enforce them. See our cybersecurity services, or ask about email services.

Table Mountain in silhouette across the bay at sunset

Let's talk about what you need built.

Describe the problem in plain words. We reply with questions, not a sales script.