SPF Record Generator
Generate a correct SPF record for your domain. Select your email providers, add custom IPs, choose your policy, and copy the result.
v=spf1 ~all
How to add this record:
- Go to your DNS provider (Cloudflare, Route 53, GoDaddy, etc.)
- Add a new TXT record
- Set the Host/Name to
@(root domain) - Paste the SPF record above as the Value
- Save and wait for DNS propagation (usually 5-60 minutes)
How SPF records work
An SPF record is a DNS TXT record that lists the mail servers authorized to send email for your domain. When a receiving server gets an email from your domain, it checks your SPF record to verify the sender is authorized.
The record starts with v=spf1, followed by mechanisms (include, ip4, ip6, mx, a) that define authorized senders, and ends with a policy (all) that defines what to do with unauthorized senders.
The 10 DNS lookup limit
SPF has a hard limit of 10 DNS lookups. Each include:,a,mx, andredirect mechanism counts as one or more lookups. Nested includes count too. If you exceed 10, SPF will permanently fail for all recipients (permerror).