SPF Record Generator — Email Sender TXT Builder

Developer

An SPF record generator builds a v=spf1 DNS TXT value that declares which mail servers are allowed to send mail for a domain.

What is it

SPF (Sender Policy Framework) lets receiving mail servers check whether a sending IP is authorized by the domain owner through a DNS TXT policy. This tool combines a, mx, include, ip4, ip6 mechanisms and an all qualifier, then prints the host and TXT value to publish. It does not perform DNS lookup or guarantee deliverability, so verify the published record with an SPF checker.

SPF TXT = "v=spf1" + mechanisms(a/mx/include/ip4/ip6) + all qualifier(-all, ~all, ?all)

How to use

  1. 1Enter the domain and include domains for sending services.
  2. 2Add ip4/ip6 CIDR ranges for fixed sending IPs and choose a/mx mechanisms if needed.
  3. 3Pick the all policy, then publish the TXT value in DNS.

Reference

SPF Record Generator — Email Sender TXT Builder Reference
MechanismMeaning
include:example.cominclude an external sender SPF policy
ip4:203.0.113.10/32allow an IPv4 sender address
mxallow the domain MX servers to send
-allfail everything else

Sources & standards

FAQ

Is the generated SPF automatically safe?

No. It must match every real sending path. Missing services can break legitimate mail, so review logs and verify with an SPF checker after publishing.

Is my domain or IP sent to a server?

No. Record assembly runs entirely in your browser and does not perform DNS lookup.

Can I publish multiple SPF records?

No. A host should publish only one v=spf1 TXT record. Merge multiple policies into one record.

Related tools