What SPF is and why it matters
SPF syntax and record structure
Common SPF mistakes and the 10-lookup limit
How CDA verifies your SPF record
Key Takeaways
TL;DR
SPF declares which servers can send email as your domain — publish exactly one TXT record.
Stay within the 10 DNS lookup limit or SPF will permanently fail.
Always end your SPF record with -all (hard fail) for maximum protection.
Audit all third-party services that send email as your domain and include them.
Cyber Defense Agent verifies SPF presence, syntax, lookup count, and policy strength.
Official Sources
FAQ
Frequently asked questions
How do I check my current SPF record?
You can check your SPF record using Cyber Defense Agent's scan, or use command-line tools like "dig TXT yourdomain.com" or "nslookup -type=TXT yourdomain.com". Online tools like MXToolbox SPF Lookup also work. Look for a TXT record starting with v=spf1.
What happens if I exceed the 10-lookup limit?
If your SPF record exceeds 10 DNS lookups, it returns a permanent error (permerror) and SPF fails for ALL messages — even from authorized senders. This is equivalent to having no SPF record. Use SPF flattening or consolidate includes to stay under the limit.
Should I use -all or ~all?
Use -all (hard fail) for production. The ~all (soft fail) is acceptable during initial setup to avoid blocking legitimate email while you identify all senders. Once you've confirmed all authorized senders are included, switch to -all for maximum protection.
Related Guides
Continue reading
Get your Cyber Defense Score™ in 60 seconds.
100 tools. No installation. No credit card. Real evidence.