Free SPF Record Generator
Generate compliant Sender Policy Framework (SPF) records to prevent email impersonation and boost deliverability.
SPF Record Generator
Sender Policy Framework (SPF) specifies which mail servers are authorized to send email on behalf of your domain. Complete the options below to generate a valid TXT record.
Generated SPF TXT Record
v=spf1 mx a ~all
DNS configuration tip: Add this as a TXT record for the hostname
@ (root) in your DNS provider control panel.How SPF Protects Your Email Domain
SPF works by allowing domain owners to declare which IP addresses and third-party services (such as Google Workspace, Salesforce, or Mailchimp) are authorized to send email on behalf of their domain.
Common SPF Qualifiers
- ~all (Soft Fail): Unlisted senders are accepted but flagged for scrutiny. (Recommended for starting).
- -all (Hard Fail): Unlisted senders should be explicitly rejected by receiving mail servers.
- ?all (Neutral): No strict policy enforced for unlisted senders.