LEARN · EMAIL-AUTHENTICATION
Email authentication: SPF, DKIM & DMARC
What SPF, DKIM and DMARC are, why they stop others impersonating you and how to set them up step by step.
WHAT IT IS
SPF states which servers may send email as your domain; DKIM signs your emails; DMARC tells Gmail, Outlook and others what to do with those that do not match and sends you reports.
WHY IT MATTERS
Without them, anyone can send emails that look like yours (fake invoices, phishing your customers) and your legitimate emails land in spam more often.
COMMON MISTAKES
- Two different SPF records (they invalidate each other).
- Ending SPF with +all or ?all.
- Staying forever at DMARC p=none without reading the reports.
- Domains that send no email without "v=spf1 -all" and DMARC p=reject.
EXAMPLE
example.com. TXT "v=spf1 include:_spf.google.com -all" _dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"
HOW WE CHECK IT
- MAIL_SPF v1.0.0 — That there is a single SPF record, ending in ~all or -all (not +all or ?all) and within 10 DNS lookups.
- MAIL_DMARC v1.0.0 — That a DMARC record exists at _dmarc and which policy it applies (none only monitors; quarantine/reject protect).
- MAIL_DKIM v1.0.0 — Whether DKIM keys are published under the most common selectors (Google, Microsoft, sending services…).
- MAIL_MX v1.0.0 — Which servers receive the domain’s email (MX records). A null MX means the domain receives no email.