SPF Record Generator — Email Sender TXT Builder
DeveloperAn 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.
How to use
- 1Enter the domain and include domains for sending services.
- 2Add ip4/ip6 CIDR ranges for fixed sending IPs and choose a/mx mechanisms if needed.
- 3Pick the all policy, then publish the TXT value in DNS.
Reference
| Mechanism | Meaning |
|---|---|
| include:example.com | include an external sender SPF policy |
| ip4:203.0.113.10/32 | allow an IPv4 sender address |
| mx | allow the domain MX servers to send |
| -all | fail everything else |
Sources & standards
- RFC 7208: Sender Policy Framework (SPF) - IETF
- DNS TXT resource records - IETF
- MDN Web Docs: Client-side web APIs - MDN Web Docs
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.