SPF record builder
Select every service that sends email on your behalf. We build the record and count its lookups as you go.
How to build a correct SPF record
- Start from your current record if you have one, so nothing already listed is lost.
- Pick your email provider (Microsoft 365, Google Workspace, Zoho and so on).
- Add every other service that sends email using your domain: newsletters, invoicing and accounting tools, help desks, CRMs and website forms. Ask finance, sales and marketing; they often use services IT doesn’t know about.
- Watch the lookup counter. SPF allows 10 DNS lookups. The builder counts them live, including the lookups hidden inside each service’s include.
- Choose the ending.
~allmarks unlisted senders as suspicious and is the safe choice while you set up DMARC;-allrejects them. - Publish one record only, replacing the old one, then confirm it with the SPF checker.
When you hit the 10-lookup limit
Remove services you no longer use, drop a and mx if all your email goes through a provider, or move bulk email to a subdomain with its own SPF record. Our guide to fixing “too many DNS lookups” explains each option. Remember that many sending services pass DMARC through DKIM rather than SPF, so check whether a service needs an SPF include at all before adding one.
Common mistakes the builder avoids
- Adding a second record instead of editing the first. The builder always produces one record to replace the old one.
- Including services you no longer use, which waste lookups and widen who can send on your behalf.
- Ending with
+all, which authorises every server on the internet. The builder only offers safe endings. - Mistyped IP addresses. Anything that isn’t a valid address or range is flagged and left out.
Related tools and guides
Questions
Where do I publish my SPF record?
At your DNS host, as a TXT record on the domain itself (often shown as @ or left blank). Replace any existing record that starts with v=spf1 rather than adding a second one.
Do I need an SPF include for every service?
Only for services that send with your domain in the hidden return address. Many newsletter and CRM tools use their own return address and pass DMARC through DKIM instead, so check their setup guide first.
Should I use ~all or -all?
~all is the safe choice while you set up DMARC. Once DMARC is enforcing and you’re sure every sender is listed, either works.