Free SPF record generator
Tick every service that sends email as your domain and copy one record, ready for your DNS.
Free, no account needed. Runs in your browser at jasreach.com.
How to publish it
- Copy the record above.
- In your DNS settings, find any existing TXT record that starts with v=spf1. Replace it, never add a second one.
- Save it as a TXT record on @ (the root of your domain).
- Run the SPF checker to confirm it passes and stays under 10 lookups.
Rules a good SPF record follows
- Only one SPF record per domain.
- Every service that sends as you is included.
- At most 10 DNS lookups in total, including nested ones.
- Ends in ~all or -all, never +all.
Questions people ask
Where do I add an SPF record?
In your domain's DNS settings, as a TXT record on the root of the domain (often written @).
I use two email services. Do I need two SPF records?
No. Put both includes in one record, for example v=spf1 include:_spf.google.com include:sendgrid.net ~all.
What's the difference between ~all and -all?
~all asks receivers to treat unlisted senders as suspicious; -all asks them to reject. Both are safe; ~all is more forgiving if you forget a service.
Go deeper: SPF PermError: too many DNS lookups