Publish an SPF record
Updated 1 Dec 2026
What it means
SPF lists the servers allowed to send email for your domain. Without it (or with +all / ?all), anyone can send mail that appears to come from you.
Why it matters
Phishing emails impersonating your company reach customers and staff; your legitimate mail is more likely to land in spam.
How to fix it
- List every service that sends email as your domain (Google Workspace, Microsoft 365, your CRM, newsletter tool, web server).
- Publish one TXT record at the domain root combining their include: mechanisms, ending in ~all (then -all once DMARC reports are clean).
- Keep the record under 10 DNS lookups.
Careful: Only one SPF record is allowed per domain; two records make SPF fail entirely. Merge them.
Configuration examples
Cloudflare
Type: TXT Name: @ Content: v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all
Any platform
YOUR_DOMAIN. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
Check your fix
dig +short TXT YOUR_DOMAIN | grep spf1nslookup -type=txt YOUR_DOMAIN
References
- https://datatracker.ietf.org/doc/html/rfc7208
- https://www.cloudflare.com/learning/dns/dns-records/dns-spf-record/