SPF Record Generator

Build a valid SPF record for your domain

Generated SPF Record

v=spf1 include:_spf.google.com -all

Add this as a TXT record at the root of your domain.

Recommended next steps

What is an SPF record?

SPF (Sender Policy Framework) is a DNS TXT record that declares which mail servers are authorized to send email for your domain. When an email claims to be from your domain, the receiving server checks your SPF record and compares the sending IP against your authorized list. A well-constructed SPF record prevents spammers from impersonating your domain. The ~all (softfail) policy is recommended during testing, while -all (hardfail) should be used once you are confident all legitimate sources are listed.