How to add SPF, DKIM and DMARC records in Cloudflare
In Cloudflare, email authentication records are ordinary DNS records under DNS → Records.
Add records in Cloudflare
- Open DNS records. Choose your domain, then DNS → Records → Add record.
- SPF. Type TXT, Name @, Content: your provider’s SPF, for example v=spf1 include:_spf.google.com ~all.
- DKIM. Use the exact type (TXT or CNAME), name (such as google._domainkey) and value your mail provider gives you.
- DMARC. Type TXT, Name _dmarc, Content v=DMARC1; p=none; rua=mailto:you@yourdomain.com.
Cloudflare’s built-in DMARC tools
Cloudflare also offers Email Security → DMARC Management, which can create a starter record and process aggregate reports. It produces the same kind of TXT record, so either route is fine. Just don’t end up with two.
Proxy status
TXT records can’t be proxied, so there’s nothing to toggle there. But MX targets (such as mail.yourdomain.com) must stay “DNS only”, because Cloudflare doesn’t proxy mail traffic.
See exactly what your domain’s SPF, DKIM and DMARC look like, free.
Check my domain