Free tool · no sign-up
SPF record generator
Short answerThe SPF generator builds a single SPF TXT record for every service that sends email for your domain: pick your email provider and sending tools, add any server IPs, choose ~all or -all, and copy the record.
TXT value for your domain (host @)
Replace any existing SPF record; never publish two. Then verify with the SPF checker.
Lookups run in your browser through public DNS-over-HTTPS resolvers (Cloudflare, then Google). We don't store what you check. Privacy
How to use it
Reading the result
- 1
List your senders
Pick your mailbox provider and every tool that sends as your domain: marketing, transactional and support tools.
- 2
Add fixed IPs
Add ip4: ranges for your own servers instead of extra includes, to save DNS lookups.
- 3
Choose the ending
~all is the safe default; -all is stricter once you're sure the list is complete.
- 4
Replace, don't add
Edit your existing SPF record rather than publishing a second one, then verify with the SPF checker.
- SPF record
- An SPF record is one TXT record on your domain starting with v=spf1, for example v=spf1 include:spf.protection.outlook.com ~all. It lists the services and IPs allowed to send as your domain. More about SPF record
FAQ
SPF generator questions
What if I already have an SPF record?
Replace it with the generated one, or add the new includes to it. A domain must never have two SPF records.
Do I need SPF if I have DKIM?
Yes. Large mailbox providers require both from bulk senders, and DMARC passes when either aligns, so having both makes delivery more robust.
Why does the generator warn about lookups?
Each include costs at least one DNS lookup and often several more inside it. Past 10 total, SPF fails. Check the published record with the SPF checker to see the real count.
Go deeper: Cold email infrastructure playbook. Fix it for good with email warm-up.
More free tools
Check the rest of your setup.
Domain health check
SPF, DKIM, DMARC, MX and PTR in one check
SPF checker
Validate your SPF record and lookup count
DKIM checker
Find and verify a DKIM selector
DMARC checker
Read your DMARC policy and reporting
Blacklist checker
Is your domain or IP on a blocklist?
DMARC generator
Build a DMARC record step by step
Warm-up calculator
How long to warm up, and how many emails a day