Who sends email for your domain?
Own servers or other senders (optional)
What happens to everyone else?
Your SPF record
v=spf1 -all
Add at least one sending source. An SPF record with no senders (v=spf1 -all) rejects all mail claiming to be from your domain.
How to publish this
Add oneTXT record at your domain root (host @) with the value above. A domain may have only one SPF record — if you already have a v=spf1 record, merge these mechanisms into it rather than adding a second.Free tool — nothing you type leaves your browser. Want to check an existing record too? Run the DNS Health Checker.
§ WHY IT MATTERS
A broken SPF record looks exactly like a working one.
10
DNS lookups is the hard cap SPF must stay under — we count them live
1
TXT record, one line — exactly what belongs at your domain root
0
logins, installs, or data sent anywhere — it all runs in your browser
§ HOW IT WORKS
Four choices, one clean record.
Pick your senders
Tick the providers that send mail for you — Google, Microsoft 365, SendGrid, Mailgun and more. Each shows its DNS-lookup cost.
Add your own servers
Drop in raw IP ranges, custom include: values, or bare a / mx mechanisms for hosts you run yourself.
Choose a policy
Pick ~all while testing or -all to reject spoofers outright. We flag the weak ?all option so you don't ship it by accident.
Copy & publish
Copy the finished record and paste it as a single TXT record at your domain root. The lookup meter warns you before you break the 10-lookup limit.
§ THE PRIMER
What SPF is really doing
SPF answers one question for every mailbox provider that receives your mail: is the server sending this message actually allowed to? You answer it by publishing a list of approved senders as a single TXT record. Get it right and receivers trust you; get it wrong — or leave it blank — and your mail slides toward the spam folder while impostors spoof your domain freely.
The trap isn't forgetting the record; it's the 10 DNS-lookup limit. Every include: you add expands into more lookups behind the scenes — Google Workspace alone eats four. Stack a few marketing tools on top of your mailbox provider and you sail past ten without noticing. When that happens, receivers return a permerror and your perfectly reasonable-looking SPF record simply stops working.
This generator counts those lookups live as you add senders, so the moment you get close to the ceiling you see it — and it keeps everything in one record, because a domain is only allowed a single SPF entry. Pick your policy ending, copy the line, and publish.
SPF is one leg of a three-legged stool. Once it's solid, add DKIM and DMARC — and verify your recipient list before each send, so a trusted domain isn't paired with dead addresses and spam traps.
§ FAQ
SPF record FAQ
What SPF does, where to publish it, and how to stay under the lookup limit.
Still have questions? Contact us§ PROTECT YOUR DELIVERABILITY
Trusted domain. Clean list.
Set up SPF here, then verify your recipients before you send. Free plan includes 50 verifications a month — no card required.
Start for free