Domain email security: the SPF, DKIM and DMARC guide

Three DNS records decide whether a domain's email reaches the inbox or spam, and whether a stranger can send in the client's name.

The three records

  • SPF lists the servers allowed to send for the domain. Limit to know: at most 10 DNS lookups. Check SPF.
  • DKIM signs each message; the receiver checks the signature against a key published in DNS. Check DKIM.
  • DMARC says what to do with a failing message (p=none, quarantine or reject) and where to send reports. With p=none, nothing is blocked. Check DMARC.

Why it became mandatory

Gmail and Yahoo require these records from senders: see Gmail and Yahoo sender requirements. Some cyber insurers ask for them too.

Set it up at the host

DMARC: Cloudflare, OVHcloud, GoDaddy, Namecheap, Hostinger, Google Workspace. SPF: Cloudflare, GoDaddy, Namecheap.

When email goes to spam

Start with why emails go to spam, and the OVH case.

Monitor rather than check once

A record that is correct today can break tomorrow: a new sending tool, a host change, a removed include. AttackScout rereads SPF, DKIM and DMARC for each monitored domain every day and alerts you when a check fails. See pricing.

Get the free alerts