Skip to content
// glossary

What is SPF?

also: Sender Policy Framework

// short answer

A DNS record listing the servers allowed to send email for your domain, so receiving providers can spot mail from anywhere else.

In plain English

SPF (Sender Policy Framework) is a TXT record in your DNS that starts with v=spf1. It lists the mail servers and services allowed to send email using your domain.

Example SPF record for Microsoft 365 plus a newsletter tool
example.co.za.  TXT  "v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net -all"

The ending matters. -all means "anything not listed should fail". ~all is a soft fail — suspicious, but usually still accepted. ?all is neutral and +all allows anyone, which defeats the purpose. A domain must have only one SPF record, and evaluating it may need no more than ten DNS lookups, or it breaks.

Why it matters to a small business

SPF is one of the two checks DMARC relies on. A missing, duplicated or overly long record means your genuine mail can land in spam while fake mail gets through.

What to do

Check your record with the SPF checker. Make sure every service that sends as you is included, merge duplicate records into one, end with -all or ~all, and pair it with DMARC. A domain that sends no email should publish v=spf1 -all.

Does your site get SPF right?

Find out in about 30 seconds with the free, passive check. Nothing is attacked and nothing is stored.

Talk to a human