What an SPF record looks like
v=spf1 include:_spf.google.com ~all
- v=spf1 marks it as an SPF record.
- include: adds the servers of a provider, like Google Workspace or Microsoft 365.
- ~all means "treat other senders as suspicious". -all means "reject them". Both are fine. ?all and +all give no protection.
Common SPF records
| Provider | Record |
|---|---|
| Google Workspace | v=spf1 include:_spf.google.com ~all |
| Microsoft 365 | v=spf1 include:spf.protection.outlook.com -all |
| Google plus a sending tool | v=spf1 include:_spf.google.com include:the tool's domain ~all |
Common SPF mistakes
- Two SPF records. Only one is allowed. Merge them into one line.
- More than 10 DNS lookups. Each include counts. Too many and SPF fails.
- Ending in +all. That lets anyone send as you.
- Forgetting a tool. Every service that sends as your domain needs to be included.