SPF Record Generator

Generate SPF records to prevent email spoofing and improve email deliverability

SPF Configuration:

SPF Mechanisms

Failure Policy

About SPF Records

What is SPF?

SPF (Sender Policy Framework) is an email authentication method designed to prevent spoofing. It allows domain owners to specify which mail servers are permitted to send email on behalf of their domain.

Common SPF Mechanisms:

  • a - Matches if the domain has an A record
  • mx - Matches if the domain has an MX record
  • include - Include another domain's SPF record
  • ip4 - Specify IPv4 addresses
  • ip6 - Specify IPv6 addresses

Failure Policies:

  • -all - Hard fail (recommended for most cases)
  • ~all - Soft fail (good for testing)
  • ?all - Neutral (not recommended)
  • +all - Pass all (dangerous - avoid)