Free SPF Record Generator
Build a valid SPF TXT record in seconds. Add your sending sources, third-party includes and IP addresses, choose a fail policy, and copy it straight into your DNS. No signup required.
The include: domains your providers tell you to add. Comma or space separated.
v=spf1 a mx ~all@ (root domain)TXTPublish one SPF TXT record at your root domain. A domain must have only a single SPF record.
SPF in three rules
- Publish exactly one SPF record at your root domain as a TXT record.
- List every service that sends mail for you, using the include: value each provider gives you.
- Stay under 10 DNS lookups, and end with
~allor-all.
Frequently Asked Questions
What is an SPF record?
An SPF record is a TXT record on your domain that lists which mail servers are allowed to send email as you. Receiving servers check it to help decide whether a message is legitimate.
What is the SPF 10-lookup limit?
SPF allows a maximum of 10 DNS lookups when evaluating a record. Each include, a, and mx mechanism counts. Exceed it and your SPF returns permerror, which can hurt deliverability. This generator warns you when you get close.
Should I use -all or ~all?
Use ~all (soft fail) while you confirm every legitimate sender is listed, then switch to -all (hard fail) for full enforcement once you are confident nothing is missing.
Can I have more than one SPF record?
No. A domain must publish exactly one SPF record. If you need multiple providers, combine them into a single record using multiple include: mechanisms.
Related free tools
SPF Checker
Validate an existing SPF record and count its DNS lookups.
DMARC Record Generator
Build a DMARC policy to sit on top of SPF and DKIM.
DMARC Checker
Validate an existing DMARC record.
DKIM Checker
Verify your DKIM selector and public key.
Email Security Checker
Run SPF, DKIM and DMARC checks together in one report.
MX Lookup
Look up the mail servers for any domain.