SPF Record Generator
Build a valid SPF TXT DNS record for your domain using a guided form. Copy the result directly into your DNS.
Authorised sources
Generated SPF record
v=spf1 mx -all
How to add: Create a TXT record on your domain with the value above.
Frequently asked questions
Where do I add the SPF record?
Add the SPF record as a TXT record on your domain's root (@) in your DNS provider's control panel. You should only have one SPF record per domain — merge multiple senders into a single record using include: mechanisms.
What is the -all vs ~all policy?
-all (hardfail) rejects mail from unauthorised senders. ~all (softfail) marks it as suspicious. -all is the most secure. Use ~all while transitioning to avoid accidentally rejecting legitimate email.