SPF record generator
This SPF record generator builds one correct SPF record for your domain while you type. Tick the mail servers and services that send for you, add other includes or IP addresses, choose what happens to mail from other servers and copy the TXT record with its DNS lookup count.
Free, no account needed
What should my SPF record look like?
What the generator builds
- mx: the servers in your MX records may send (1 DNS lookup)
- a: the server your domain points to may send (1 DNS lookup)
- Google Workspace: adds include:_spf.google.com
- Microsoft 365: adds include:spf.protection.outlook.com
- Other senders: one include per line, for example the domain your newsletter or invoicing tool gives you
- IP addresses: added as ip4 or ip6, they use no DNS lookups
- The ending: ~all to have mail from other servers marked as suspicious, or -all to have it refused
How to read the result
Common mistakes
- Adding a second SPF record next to the old one. A domain may only have one, so replace the existing record instead.
- Forgetting a service that sends for you, such as your webshop, booking system or newsletter tool. Its mail then fails SPF.
- Keeping includes for services you stopped using. They cost lookups and still allow those servers to send for you.
- Ending with +all, which lets every server in the world send for your domain.
- Typing include= instead of include:, or adding a space or a trailing dot after the colon.
- Using ptr. The SPF standard says not to publish it; use ip4, ip6 or include instead.
What to do next
How to use the generator
-
Enter your domain
Type the domain you send email from. The generator uses it to show where the record goes.
-
Choose your senders
Tick the services you use, add other includes and IP addresses one per line, and pick ~all or -all.
-
Copy and publish
Copy the record, add it as a TXT record at your DNS provider and confirm it with the SPF and DMARC check.
Frequently asked questions
Where do I add the SPF record?
Can I have two SPF records?
What do ~all and -all mean?
How many includes can I add?
Which include do I need for my newsletter or webshop tool?
Does SitePack create the SPF record for me?
Related tools and guides
- SPF and DMARC check Check your live SPF record, its lookup count, DMARC and DKIM.
- DMARC generator Create the DMARC record that tells receivers what to do with failing mail.
- Email on your own domain Set up an address like you@yourbusiness.com in three steps.
- Business email at SitePack A 5 GB mailbox with every package, extra mailboxes from €3.25 a month.
- Free tools
Your own domain, email included
A website from €15 a month, billed yearly, with a domain, a 5 GB mailbox and SPF and DKIM set up for you. Try it free for 14 days, no payment details needed.