Primary use
SPF setup
Build a sender policy that is easier to review before publishing production DNS changes.
Free SPF record generator
Use this free SPF record generator to build a Sender Policy Framework TXT record for your domain. Add include domains, sender IPs, and enforcement policy, then review the generated SPF value and estimated lookup count before publishing DNS.
Generate a free SPF record
Enter the domain, sender sources, and policy mode. The generator returns the TXT record value plus a lookup estimate so you can judge whether the record is safe to publish.
Best fit
This page is strongest when a team is consolidating senders, onboarding a new ESP, or replacing a hand-written SPF record that has become hard to trust.
Upgrade path
A generator helps you draft a cleaner SPF record. Production confidence comes from validating the live record and tracking auth posture over time.
Primary use
Build a sender policy that is easier to review before publishing production DNS changes.
Guardrail
See how close the generated policy may be to SPF recursion limits before rollout.
Output
Get a record name, type, TTL, and generated value ready for your DNS provider.
Workflow
Pair generation with SPF lookup, propagation checks, and real-header verification.
What this generator does
The goal is not only to produce a syntactically valid policy. It is to make sure the domain authorizes the right senders without drifting into unreviewable complexity.
Includes
Provider support
Add upstream include domains when a sending platform manages part of the policy for you.
IPs
Direct senders
Specify direct IPv4 or IPv6 sources when mail originates from infrastructure you control.
MX / A
Optional mechanisms
Choose whether the domain should authorize its own MX or A records as senders.
Policy
Rollout mode
Select softfail, fail, or neutral based on how confident you are in sender inventory coverage.
Operational use
Treat SPF generation as part of sender change review. Generate a clean policy, publish it, then validate the live result and inspect real headers.
Rebuild the SPF policy before cutover so old providers and new senders are not mixed into a confusing transition record.
Use generation as a forcing function to remove deprecated sender paths and reduce policy bloat.
Keep a record of the generated policy and why it changed so DNS updates are easier to review and roll back safely.
Validate the published SPF record after rollout and confirm the live policy matches what you generated.
Open toolConfirm the new TXT value has propagated before relying on it in production.
Open toolInspect real message headers to confirm the published SPF policy produces the verdict you expect.
Open toolReview DKIM alongside SPF so sender auth is validated as a full stack.
Open toolThis SPF record generator builds a TXT record for the domain, includes the sender sources you specify, applies the chosen enforcement policy, and estimates DNS lookup complexity so rollout risk is easier to judge.
Use softfail while inventory is still being validated or while a migration is in progress. Move to fail when you are confident every legitimate sender is covered and you want stricter enforcement.
Nested includes can push a policy toward the SPF evaluation limit. A generator is more useful when it helps you keep the record maintainable, not just syntactically valid.
Publish the TXT value in DNS, wait for propagation, run an SPF checker, and confirm real messages show the expected SPF verdict in message headers.