Safelight

SPF, DKIM and DMARC Explained: Stop Email Spoofing

Updated 2026-11-29

Email lets anyone fake the sender, so scams pretending to be "ceo@yourcompany.com" asking partners for payments are common. SPF, DKIM and DMARC are three DNS settings that stop this.

SPF: who may send mail as you

A DNS record that says "only these servers may send mail for our domain".

DKIM: a signature on every message

Outgoing mail carries a digital signature, and the public key to verify it is published in DNS, so receivers can confirm the mail really came from you unaltered. Your mail provider's admin console gives you the value when you turn DKIM on.

DMARC: what to do with fakes

A rule telling receivers what to do with mail that fails SPF/DKIM, published as a TXT record at _dmarc.yourdomain.

  1. Start with v=DMARC1; p=none; rua=mailto:reports@yourdomain and read reports for 2–4 weeks
  2. If all is well, move to p=quarantine (send to spam)
  3. Finally p=reject stops spoofed mail from being delivered at all

Google and Yahoo require SPF, DKIM and DMARC from bulk senders; having all three also keeps your mail out of spam.

Check a domain nowFree · 30 seconds · nothing stored

More guides