How SPF Generator works
SPF lists the servers allowed to send mail for your domain. This generator builds the record and warns you about common mistakes.
Choose the providers you send from.
Copy the generated TXT record.
Publish it once at the root of your domain.
Troubleshooting & Remediation
How to Read & Fix Results
How to read the result
- ProblemMore than one SPF record, or an SPF record over the limit of 10 DNS lookups. Both cause SPF to fail.
- Warning~all (soft fail) left in place after you have confirmed all senders.
- PassOne SPF record, under 10 lookups, listing every service that sends as your domain, ending in -all or ~all.
How to fix issues
- List every service that sends mail as your domain (mail provider, newsletter tool, invoicing, CRM).
- Build one record with an include: for each, using the exact value each provider documents.
- Publish it as a single TXT record at the bare domain.
- Re-check. If you pass 10 lookups, remove unused includes or flatten.
Common mistakes to avoid
- Creating a second SPF TXT record instead of editing the first.
- Forgetting a sender, so its mail fails.
- Ending with +all, which allows everyone.
Example SPF Record Format
example.com. TXT "v=spf1 include:_spf.google.com include:mailer.example.net ~all"
This generator builds the text in your browser. It does not query DNS, so run the DMARC or deliverability check after publishing.
Next checks:Flatten a long SPFGenerate DKIMCheck DMARC
Specifications & Scope
About SPF Generator
- 01 / What it does
- SPF lists the servers allowed to send mail for your domain. This generator builds the record and warns you about common mistakes.
- 02 / How to use
- 1. Choose the providers you send from. 2. Copy the generated TXT record. 3. Publish it once at the root of your domain.
- 03 / Good to know
- A domain may have only one SPF record. SPF allows 10 DNS lookups in total, so too many includes will fail.
Got Questions?
Frequently Asked Questions
Knowledge Base
Technical Guides & Reference
Explore More
More in Generators (New)
Tool Details & Usage Guide
RFC specifications, input expectations, outputs, and edge limitations.
Free SPF Record Generator Guide
Sender Policy Framework (SPF, RFC 7208) lists every IP address and mail provider authorized to send email from your domain. Without a valid single v=spf1 record at your root domain, mailbox providers mark transactional and cold messages as spam or bounce them with 550 5.7.1.
Step-by-Step: Publishing Your Generated SPF Record
- Include every active sender: Select Google Workspace (
_spf.google.com), Microsoft 365 (spf.protection.outlook.com), or custom IPv4/IPv6 CIDR blocks. - Keep recursive DNS lookups <= 10: Exceeding 10 lookups breaks evaluation with an immediate
PermError. Verify after publishing with our SPF 10-Lookup Checker. - Add cleanly in your DNS panel:
- Cloudflare / GoDaddy: Create or edit the single
TXTrecord at Name / Host =@. - cPanel Zone Editor: Edit or add the single
TXTrecord at Zone Name =yourdomain.com.. - AWS Route 53: Leave Record Name blank (zone apex) and quote the
"v=spf1 ... -all"string.
- Cloudflare / GoDaddy: Create or edit the single
Common SPF Mistakes & Fixes
- Publishing two SPF records: Never create a second
v=spf1record alongside an old one. Edit the existing TXT entry and combine includes into one string. - Using
+allwildcard pass:+alltells receiving servers every IP on the internet is authorized. Always finish with~all(Softfail) or-all(Hardfail).
Next step: Verify active DKIM Keys, publish a DMARC Policy, and check Email Health.
Frequently Asked Questions
- Should I pick
~allor-all? Start with~allwhile onboarding new mailing tools so legitimate traffic isn’t dropped if an IP changes, then switch to-allonce DMARC alignment passes 100%. - What if I exceed 10 lookups? Prune retired vendors or use our SPF Flattener to compress nested includes into direct IP CIDRs.
Recommended Troubleshooting Deep Dives
Authoritative SRE implementation tutorials related to this tool.
Reading Raw Email Headers in Outlook Web App: A Step‑by‑Step Guide
When a message lands in your inbox, most of its journey is hidden from view. The raw email header is the “passport” that records every hop, verification check, ...
Read guideDetecting Email Spoofing with DMARC Reports
Email spoofing is the digital equivalent of a forged signature—attackers send messages that appear to come from a trusted domain, hoping recipients will click a...
Read guideHow to Configure DKIM for Zendesk Email
Configuring DKIM (DomainKeys Identified Mail) for your Zendesk email ensures that messages sent from support agents land in inboxes, not spam folders. Below is ...
Read guideRelated tools
View all toolsDKIM Generator
Free browser-based DKIM generator and selector checker. Generate 2048-bit RSA key pairs, test live selector DNS records, and get publish-ready TXT values.
DMARC Generator
Free DMARC record generator. Configure p=none, quarantine or reject policies, RUA/RUF reporting addresses, pct rollout and copy a valid _dmarc TXT record.
DMARC XML Report
Free DMARC XML analyzer. Upload an aggregate report and see which IPs sent mail as your domain and whether SPF and DKIM passed.
