📬 Email Security

SPF Record Generator

Generate Sender Policy Framework (SPF) DNS TXT records to authorize email senders and prevent spoofing of your domain.

Mail Server Options

Allow domain's MX records
Allow domain's A record

Third-Party Email Services

Google Workspace
Microsoft 365
Mailchimp
SendGrid
Zoho
Amazon SES

Generated SPF Record


                
            

DNS Configuration

Type Host/Name Value
TXT @ -

What Is SPF?

SPF (Sender Policy Framework) is an email authentication protocol that prevents email spoofing. It lets domain owners specify which mail servers are authorized to send email on behalf of their domain. Receiving servers check the SPF record to verify incoming emails.

SPF Mechanisms

Mechanism Purpose
a Allow domain's A record IP
mx Allow domain's MX server IPs
include: Include another domain's SPF
ip4: Allow specific IPv4 address/range
~all Soft fail — accept but mark suspicious
-all Hard fail — reject unauthorized senders

FAQ

Should I use ~all or -all?

Start with ~all (soft fail) while testing. Once you've confirmed all legitimate senders are included, switch to -all (hard fail) for maximum protection against spoofing.