Sender Policy Framework (SPF) is a DNS TXT record listing the mail servers authorised to send email for your domain. Receiving servers check it to decide whether a message claiming to be from you is legitimate.
Anatomy of an SPF record
v=spf1 include:_spf.google.com include:sendgrid.net -all
include:authorises a provider's servers (Google Workspace, SendGrid, etc.).-all(hard fail) means "reject anything not listed" โ the strong choice.~all(soft fail) is weaker.
Common mistakes
- More than one SPF record on the domain โ only one is allowed.
- Exceeding the 10 DNS-lookup limit, which causes SPF to fail silently.
- Ending in
+all, which authorises the entire internet.
SPF is one leg of email authentication; pair it with DKIM and DMARC for full protection. Check yours with the MX & email analyser.