SPF Generator
Build validated SPF TXT records with IP, include, MX, and redirect mechanisms plus DNS lookup limit warnings.
Build SPF TXT records safely
Sender Policy Framework (SPF) tells receiving mail servers which hosts may send email for your domain. Add a, mx, ip4, include, and optional redirect mechanisms, then copy the TXT value into DNS.
Related DNS and SEO tools
Publish crawl rules with the Robots.txt Generator, list URLs for search engines with the Sitemap Generator, and add structured data with the Schema Markup Generator.
Frequently Asked Questions
What is the 10 DNS lookup limit?
Each include, a, mx, ptr, redirect, and exists mechanism can trigger a DNS lookup. More than ten lookups cause SPF to fail.
Should I use ~all or -all?
~all soft-fails unauthorized senders and is common during testing. -all hard-fails and is stricter once you trust the record.
Do I still need DKIM and DMARC?
Yes. SPF works best alongside DKIM signing and a DMARC policy for modern deliverability.