SPF Record Builder
Build valid SPF records with a guided interface. Auto-collapses IP ranges and warns on DNS lookup limits.
Generated SPF Record
0 characters
Add Mechanism
Mechanisms (0)
No mechanisms added yet. Add mechanisms above to build your SPF record.
Default Policy (all)
What should happen to emails that don't match any mechanism?
Recommended: Use ~all (SoftFail) while testing, then switch to -all (Fail) once you've confirmed all legitimate senders are included.
SPF Quick Reference
Qualifiers
- + Pass (default) - Allow the email
- - Fail - Reject the email
- ~ SoftFail - Accept but mark suspicious
- ? Neutral - No policy statement
Mechanisms
- ip4/ip6 - Match IP address or range
- a - Match A record IPs
- mx - Match MX record IPs
- include - Include another domain's SPF
- all - Match everything (used at end)
About This Tool
Build SPF (Sender Policy Framework) records to specify which mail servers are authorized to send email for your domain. This tool helps you construct valid SPF records, automatically collapses IP ranges to reduce record length, and warns when you approach the 10 DNS lookup limit.
100% Client-Side Analysis
This tool runs 100% in your browser. No data is sent to any server.