SPF Record Generator

Create a properly formatted SPF DNS record to authorize mail servers for your domain.

About SPF Records

  • • SPF authorizes which mail servers can send email on behalf of your domain
  • • SPF records are published as DNS TXT records at your root domain
  • • Keep DNS lookups under 10 to avoid validation failures
  • • Use -all (hard fail) for maximum protection

IP Addresses

Add your mail server IP addresses directly. This doesn't count toward the DNS lookup limit.

Third-Party Services

Add include: mechanisms for email service providers. Each include counts as a DNS lookup.

Common Providers:

All Qualifier

Determines what happens when a sending server is not listed in your SPF record.

Your SPF Record

DNS Record:

Type: TXT

Name: @ (or your domain)

Value:

v=spf1 -all

DNS Lookups: 0 / 10

Your SPF record is within the DNS lookup limit.

Next Steps:

  1. Copy the record above
  2. Log in to your DNS provider
  3. Create a new TXT record at your root domain
  4. Paste the SPF record as the value
  5. Wait 24-48 hours for DNS propagation
  6. Test with our DMARC Checker

Don't Forget DMARC!

SPF alone isn't enough. Complete your email security with DMARC and DKIM.