SPF Record Generator
- Runs in your browser
- No DNS lookups
Build your SPF record
Names the record and links to the checker. Leave it empty to build the record only.
One domain per line, as your mail provider documents it. Each include costs at least one DNS lookup.
One per line, such as 192.0.2.10 or 192.0.2.0/24. No DNS lookup.
One per line, such as 2001:db8::1 or 2001:db8::/32. No DNS lookup.
- DNS lookups in this record
- 0/10
Your record
- Host
@- Type
TXT- Value
v=spf1 ~all
Checks
Note
~all (softfail) asks receivers to accept mail from unlisted servers but treat it as suspicious. Move to -all once every sender is listed.
Note
No senders are listed, so this record says the domain sends no mail. That suits parked domains; add your mail services if the domain sends email.
What is an SPF record generator?
An SPF record generator writes the DNS TXT record that lists the servers allowed to send mail for your domain. Choose your senders and a result for everyone else, and the generator writes a record that follows RFC 7208, counts its DNS lookups and flags syntax errors.
It builds the record in your browser and makes no DNS lookups, so it cannot count the lookups inside included records. Publish the result as one TXT record at your domain, then run the SPF checker to confirm what receivers see.
How to publish an SPF record
- 1
List every service that sends as your domain
Your mailbox provider, marketing and transactional email services, CRM and helpdesk, and any servers that send alerts. Each provider documents the include or IP ranges to use.
- 2
Replace the existing record, don't add a second one
If the domain already has an SPF record, edit it. Two records starting with v=spf1 cause permerror (RFC 7208, section 3.2).
- 3
Publish it at the domain
Create a TXT record at the domain itself, often written as @, with the generated value.
- 4
Check it
Once DNS has propagated, run the SPF checker, then the DMARC checker.
The parts of an SPF record
v=spf1- The version. Every SPF record starts with it; TXT records that don't are ignored.
ip4: / ip6:- An IPv4 or IPv6 address or range, such as 192.0.2.0/24. No DNS lookup.
a / mx- The domain's own addresses, or the addresses of its MX hosts. One DNS lookup each.
include:- Checks another domain's SPF record, usually a mail provider's. One lookup, plus the lookups inside that record.
redirect=- Uses another domain's SPF record when nothing else matches. It is ignored when the record has an all mechanism.
-all / ~all / ?all / +all- The result for every other server: fail, softfail, neutral or pass. A mechanism without a qualifier means pass.
Example record
v=spf1 ip4:192.0.2.0/24 include:_spf.example.net -all
Sources
More email authentication tools
- SPF CheckerLook up a domain's SPF record and its DNS lookup count.
- DMARC CheckerCheck a domain's DMARC policy and reporting address.
- DKIM CheckerFind DKIM public keys under common selectors.
- BIMI CheckerCheck a BIMI record and its DMARC requirement.
- MTA-STS CheckerCheck the MTA-STS policy, its mode and TLS-RPT.
- DMARC Record GeneratorBuild a DMARC record with the right tags.
- Email Security AnalyzerGrade every email authentication record at once.
Beyond DNS records
These records stop other people sending mail as your exact domain. They do not stop phishing from lookalike domains or from compromised accounts, which send authenticated mail. Vigilbase OS connects the security tools you already pay for, including Microsoft 365, Google Workspace, Proofpoint and Mimecast. The Vigil agent investigates high-severity incidents and Vigilbase analysts handle exceptions.