SPF, DKIM and DMARC
Three DNS records help mail servers decide whether an email really came from you.
- SPF lists the servers that may send mail as your domain.
- DKIM signs your mail, so others can check it hasn't been faked.
- DMARC says what to do with mail that fails.
Why it matters
When these are wrong, your emails can land in spam, and other people can send email that looks like it's from you.
What we tell you about
| Warning | Danger | |
|---|---|---|
| SPF record | There isn't one, or it doesn't end in -all or ~all | There's more than one, or it ends in +all, which lets anyone send as you |
| DMARC policy | There isn't one, or it isn't enforced | There's more than one, or the policy can't be read |
| DKIM | Never alerts | Never alerts |
If the domain has no MX records, we don't mind that SPF or DMARC is missing.
We mention a DMARC policy of p=none when we first see it, and not again, because it's a sensible first step.
We can only look for DKIM keys under common names, so not finding one doesn't mean you haven't got one. We keep a record of the ones we find.
How to fix them
- No SPF record: add a TXT record listing the servers that send your mail, ending
-all. Your email provider will tell you what to include. - Two SPF records: merge them into one.
- No DMARC record: add a TXT record at
_dmarc.yourdomain.com, startingv=DMARC1; p=nonewith anruaaddress for reports. - DMARC not enforced: once your reports show your own mail passing, move from
p=nonetop=quarantine, thenp=reject.
See also MX records.
Where it runs
Once for the whole site, on its home page.
To change any of this, open the site, then Settings, then Checks and rules. How rules work. Pages added before 3.0 can have older defaults, which alert more often.
See also SPF, DKIM and DMARC monitoring on our website.