SPF Record
Generator
Create a customized SPF DNS record for your domain to prevent email spoofing and maximize deliverability. Generate your SPF record in seconds—no technical expertise required.
Your SPF Record
How to Add This Record
- 1 Log in to your DNS provider or domain registrar
- 2 Navigate to DNS settings for your domain
- 3 Add a new TXT record with host @ (or leave blank)
- 4 Paste the SPF record above as the value
- 5 Save and wait for DNS propagation (up to 48 hours)
Understanding SPF Records and Their Importance
What is an SPF Record?
SPF (Sender Policy Framework) records are DNS TXT records that specify which mail servers are authorized to send emails on behalf of your domain. By defining these authorized servers, SPF records help prevent email spoofing—where attackers send emails that appear to come from your domain—and significantly improve the deliverability of your legitimate emails.
How to Configure SPF Records
Identify Authorized Mail Servers
Determine which mail servers can send emails for your domain—including your primary mail server, backup servers, and third-party services like Google Workspace, Microsoft 365, or marketing platforms.
Create Your SPF Record
Use our SPF Record Generator above to build your record. Include the necessary IP addresses, enable A and MX records if needed, and add any third-party service domains.
Add the SPF Record to Your DNS
Log in to your DNS provider's management console and add the generated SPF record as a TXT record for your domain. Use "@" or leave the host field blank.
SPF Mechanism Reference
a Authorize your domain's A record IP address
mx Authorize your domain's MX record servers
ip4:address Authorize a specific IPv4 address or range
ip6:address Authorize a specific IPv6 address or range
include:domain Include another domain's SPF record
-all / ~all Fail or SoftFail unauthorized senders
Need Enterprise Email Infrastructure?
Octeth provides self-hosted email marketing software with built-in deliverability tools. Own your infrastructure and save on SaaS fees.