Cloud, security & IT

What is an SPF record?

An SPF (Sender Policy Framework) record is a DNS TXT record that lists the servers and services allowed to send email on behalf of your domain, so receiving mail servers can spot forged senders.

Writing one

A domain has one SPF record, for example v=spf1 include:_spf.google.com include:sendgrid.net ~all, listing every service that sends as you: your mailbox provider, website, CRM, booking and newsletter tools.

Common errors

Two separate SPF records (invalid), more than ten DNS lookups (fails), forgetting a sending service (its mail fails), and using +all, which allows anyone.

Questions, answered

No. Use it with DKIM and DMARC for strong protection and good deliverability.

Soft fail: mail from unlisted servers is treated as suspicious rather than rejected outright.

By the Stegnor team · Updated