Free Tool

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.

1Select your email providers
2Add custom IP addresses (optional)
3Choose your policy
Your SPF Record
v=spf1 ~all

How to add this record:

  1. Go to your DNS provider (Cloudflare, Route 53, GoDaddy, etc.)
  2. Add a new TXT record
  3. Set the Host/Name to @ (root domain)
  4. Paste the SPF record above as the Value
  5. 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).

    SPF Record Generator — Free Tool | Stekpad