Menu
Free tool

SPF Record Generator

Add the mail services and IP addresses that send for your domain, then copy a ready-to-publish SPF TXT record.

Mail from unlisted servers is marked as a soft fail but still accepted. A safe default while testing.

0 DNS lookups

Record

v=spf1 ~all

What is SPF?

SPF (Sender Policy Framework) is a DNS-based email authentication method. It lets domain owners specify which mail servers are authorized to send email on behalf of their domain.

This generator builds a single v=spf1 TXT record from the mechanisms you add. Combine include: entries for your providers with ip4:/ip6: ranges, then end with ~all (soft fail) or -all (hard fail). Already have a record? Check it first to see what is published.

SPF Record Syntax

An SPF record is a TXT record published in DNS. It always starts with v=spf1 followed by mechanisms and modifiers.

v=spf1 include:_spf.google.com include:sendgrid.net mx ~all