---
title: "SPF record generator"
description: "Tick the services that send email for your domain, add your own servers, and copy one correct SPF record with where to put it in DNS."
url: https://onesend.email/tools/spf-generator/
---
# SPF record generator

Tick the services that send email for your domain, add your own servers, and copy one correct SPF record with where to put it in DNS.

Use it at https://onesend.email/tools/spf-generator/. It runs in your browser.

## Publishing the record

Add the record as a **TXT** record at the root of the domain (the name is `@` or left empty at most DNS hosts). A domain may have only **one** SPF record: if you already have one, replace it with the new one instead of adding a second.

## Staying under 10 lookups

Every include costs at least one DNS lookup, and the services' own records add more. After publishing, run the [SPF checker](/tools/spf-checker/) to see the real count. If it is over 10, remove services you no longer use or send some mail from a subdomain with its own SPF record.

## `~all` or `-all`

`~all` (soft fail) asks receivers to accept but mark mail from unlisted servers; `-all` (fail) asks them to refuse it. With DMARC in place, either works; `~all` is the safer start.
