Before you build a record
List every system that sends email using your domain: your mailbox provider, your sending service, and anything else that sends on your behalf, such as a CRM, billing system or helpdesk. Marketing tools and website forms are the ones people forget. If a system is missing from the record, its mail can fail SPF.
Check whether your domain already has a record. Publishing a second one does not add to the first; a domain with two SPF records gets an error. Use the checker on your domain first and build the new record to replace the old one.
Choosing the senders
The generator offers the common cases and lets you add the rest.
- Mailbox providers: tick Google Workspace or Microsoft 365 if your staff send from them.
- Your sending service: paste the SPF include value that your provider tells you to use. Providers publish this in their setup instructions; we do not guess it for you.
- Other services: one include domain per line, again exactly as the provider documents it.
- Your own servers: IPv4 or IPv6 addresses or ranges. These cost no DNS lookups, so prefer them when a provider offers fixed addresses.
- MX and A: add mx or a only if mail really leaves from the servers your domain's MX or website records point to.
Pick the ending carefully
The last term tells receivers what to do with mail from servers you did not list.
| Ending | Meaning | When to use it |
|---|
| ~all | Soft fail: not authorised, but do not reject on SPF alone. | A sensible default while you confirm your list of senders. |
| -all | Hard fail: not authorised. | When you are sure the list is complete. |
| ?all | Neutral: no opinion. | Rarely useful. It gives receivers nothing to act on. |
Publish it
Create a TXT record at the root of your domain (the host is usually shown as @). Paste the record exactly as generated, without extra quotation marks unless your DNS panel asks for them. If your panel splits long values for you, let it. Keep the time-to-live low, such as 300 seconds, while you test.
Changes are not instant. Resolvers cache the old answer until its time-to-live runs out, so allow time, then check the live record with our SPF checker. The "Test this record" button opens the checker with your generated record already loaded, before you publish it.
The generator keeps count of DNS lookups as you add services. If you go over ten, remove something or move a sender to its own subdomain. A record that is over the limit looks fine and still fails.
After you publish
SPF is one of three checks. Add DKIM signing for your sending service, then a DMARC record so receivers know what to do when a message fails. Start DMARC at p=none, read the reports for a few weeks, and only then tighten it. Our DMARC generator builds the record and shows a safe rollout.