Skip to main content

Free SPF Record Generator

Build a valid SPF record in 60 seconds. Select your email providers, add custom IPs, choose your policy — copy the result directly into your DNS.

No signup required — runs entirely in your browser

Select your email providers

One per line. IPv4 or IPv6, CIDR ranges supported.

One per line. "include:" prefix is added automatically if missing.

Your SPF record:
v=spf1 -all
DNS Lookups: 0/ 10 limit

Lookup counts are estimates including nested includes. Actual counts may vary as providers update infrastructure. Use the SPF Checker to verify the exact count for your record after publishing.

What Happens After You Generate Your SPF Record?

1. Publish it as a TXT record at your domain apex. Log into your DNS provider (GoDaddy, Cloudflare, Namecheap, AWS Route 53, etc.), create a new TXT record with @ as the host, and paste the generated SPF string as the value.

2. Verify it with our free SPF checker. After DNS propagation (typically 5-60 minutes), run a check to confirm the record is published correctly and the lookup count is under 10.

3. Monitor it over time. As you add new email services, the SPF record needs updating. Each new include: adds DNS lookups. When you approach the 10-lookup limit, use AutoSPF to flatten or switch to macros.

DNS Lookup Cost by Provider

Provider Include mechanism Lookups
Google Workspaceinclude:_spf.google.com4
Microsoft 365include:spf.protection.outlook.com2
SendGridinclude:sendgrid.net5
Mailchimpinclude:servers.mcsv.net1
Amazon SESinclude:amazonses.com2
Salesforceinclude:_spf.salesforce.com2
HubSpotinclude:spf.hubspot.com2
Brevoinclude:spf.brevo.com2
Mailguninclude:mailgun.org5
Zoho Mailinclude:zoho.com4
Postmarkinclude:spf.mtasv.net1
SparkPostinclude:sparkpostmail.com1
Custom IP (ip4/ip6)ip4:x.x.x.x0

Lookup counts are approximate and may change when providers update their infrastructure. Use the SPF checker for live counts.

Generated a record that exceeds 10 lookups?

AutoSPF automatically flattens your includes and re-scans every 15 minutes. Enterprise SLAs, SSO/SAML, audit logs, and DNS rollback included.

Rated 5/5 on G2 · Trusted since 2018

What Our Customers Say

"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.
PJ

Peter J.

President · Small-Business (50 or fewer emp.)

"Helped us go beyond capacity"

AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.
VU

Verified User

Financial Services · Mid-Market (51-1000 emp.)