Free tools · Set up a domain

SPF record generator

Write an SPF record for Microsoft 365, Google Workspace and your senders.

Your SPF record

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

Add it to your DNS

Type
TXT
Host / name
@ (or leave blank)
TTL
Automatic, or 1 hour

Paste the record as the value, in your domain registrar or DNS host (Cloudflare, GoDaddy, Namecheap, Squarespace and so on). Changes usually show within an hour.

  • Note1 DNS lookup here, plus any inside the includes. SPF allows 10 in all; check the finished record with the SPF checker.
  • NoteA domain can have only one SPF record. If yours already has one, replace it with this rather than adding a second.

For Microsoft 365

A domain that sends only through Microsoft 365 needs v=spf1 include:spf.protection.outlook.com -all. Pick Microsoft 365 above and add any other services that send as you.