SPF, DKIM and DMARC in plain English

If you own a domain, these three DNS records decide whether your email lands in the inbox — and whether criminals can send email pretending to be you. Here's what each one does.

SPF: who's allowed to send

SPF is a list of servers allowed to send mail for your domain. When a message arrives, the receiving server checks whether it came from somewhere on the list.

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

DKIM: a tamper-proof signature

DKIM adds a cryptographic signature to every outgoing email. The public key lives in your DNS, so receivers can prove the message really came from you and wasn't altered on the way.

DMARC: the policy

DMARC tells receivers what to do when a message fails SPF and DKIM — nothing, send to spam, or reject — and where to send reports so you can see who's sending as your domain.

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.co.uk; fo=1

Tip: start with p=none and reporting turned on. Once the reports show all your legitimate mail passing, move to quarantine, then reject.

Check yours in two minutes

nslookup -type=txt yourdomain.co.uk
nslookup -type=txt default._domainkey.yourdomain.co.uk
nslookup -type=txt _dmarc.yourdomain.co.uk

The DKIM selector (default above) varies by provider — Microsoft 365 uses selector1 and selector2.

Common mistake: having two SPF records. You can only have one — merge them into a single line.

Need a hand? Get in touch.


← All posts · Get in touch