SPF Record Generator

Generate an SPF (Sender Policy Framework) record for your domain. SPF helps prevent email spoofing by specifying which servers are authorized to send email from your domain.

Other tools: SPF Record Lookup | SPF Record Verification | DKIM Record Verification | DMARC Record Generator | DKIM Record Generator | DKIM Record Lookup | DMARC Record Lookup | DMARC Record Verification

SPF Record Generator

Configure your SPF record settings to specify authorized email senders for your domain.

All Mechanism

Mechanisms

Generated SPF Record
v=spf1 ~all

Prevent Spoofing

Define which servers can send email from your domain.

Improve Deliverability

Help ensure your legitimate emails reach the inbox.

Email Authentication

Part of a complete email authentication strategy with DKIM and DMARC.

Understanding SPF Records

Common Mechanisms

a

Authorize the A records of a domain

mx

Authorize the MX records of a domain

ip4/ip6

Authorize specific IP addresses

include

Include another domain's SPF record

Qualifiers

+ (Pass)

Explicitly authorize the mechanism

- (Fail)

Explicitly deny the mechanism

~ (SoftFail)

Weakly deny the mechanism

? (Neutral)

Take no action on match

Best Practices

  • Start with ~all and monitor before switching to -all
  • Include all legitimate email sources
  • Keep the record under 255 characters
  • Avoid using +all as it allows anyone to send
  • Test the record before deploying

Important: Changes to SPF records can affect email delivery. Test thoroughly and implement gradually.