Free tool

SPF record generator

Build an SPF record from the services and servers that send your mail, with each term explained and a warning before you pass 10 DNS lookups.

Last updated 2026-11-11 · Verified 2026-11-11 by the Sendly team

Services that send your mail

Generate it from a script

The generator is a free HTTP endpoint too: no sign-up, no key, CORS open. OpenAPI description.

curl "https://sendly.now/api/tools/spf-generator?service=google"

# Markdown instead of JSON:
curl -H "Accept: text/markdown" "https://sendly.now/api/tools/spf-generator?service=google"

Before you publish

  • List every service that sends with your domain in the return path: mailbox provider, email platform, CRM, helpdesk, your own servers.
  • Publish one TXT record on the domain itself and remove any older v=spf1 record.
  • Check the published record with the SPF checker: it counts the includes of your includes, which a generator cannot see.

What the result means

The record is the TXT value to publish, one term per service you ticked, in the order receivers will read them, ending in the all you chose. Each term is explained under it, so you can see which service it authorises and remove it later when you stop using that service. The lookup warning counts only the terms you can see here: an include can hide includes of its own, and receivers count all of them against the limit of 10, which is why the published record still needs the checker. ~all is the right ending while you are still finding services that send for you; move to -all once the checker and your DMARC reports agree that nothing legitimate fails.

Questions people ask

Where do I publish the SPF record?
As a TXT record on the domain itself (the host is @ or blank in most DNS panels). Replace any existing v=spf1 record rather than adding a second one.
What goes in my SPF record?
Every service that sends mail with your domain in the return path: your mailbox provider, your email platform, your CRM or helpdesk, and any server you run. Each provider's setup guide gives its include.
Why does the generator warn about includes?
Each include can contain includes of its own, and receivers count all of them against the limit of 10 DNS lookups. Check the published record with the SPF checker to count the whole tree.

If a provider rejects what this page generated, paste the record and the error into an email to support@sendly.now and we will help find the term it objects to. Record syntax for sending domains is covered in the documentation.

Analytics cookies? Privacy