SPF Record Generator
Build an SPF TXT suggestion from approved IPs, includes and optional A or MX mechanisms. Validate and copy the draft locally.
How to use it
- Add only approved sender addresses, CIDR ranges and includes supplied by your mail provider.
- Review the unmatched-sender qualifier. Confirm your source inventory before choosing Fail or enabling A or MX.
- Compare the suggestion with the existing SPF policy and publish one reviewed policy at your DNS provider.
Example: adding 192.0.2.10 and leaving Softfail selected produces v=spf1 ip4:192.0.2.10 ~all. Documentation IPs are examples only.
Before copying the result into DNS, inventory all services that send for the domain. Merge their authorized sources with your existing policy and check lookup terms, including nested includes. This generator uses the values you enter. Verify the published record with your DNS provider after saving it.
Related guides
- How to Review SPF When Multiple Services Send Mail
- How to Diagnose an SPF DNS Lookup Limit Error
- SMTP Ports 25, 465 and 587 Explained
Related tools
Frequently asked questions
Should I turn on A or MX?
Use either only if those public records describe mail systems authorized to send for this domain.
What if I already have SPF?
Reconcile the new sources with the current record. Publishing two SPF records can cause permerror.