Free generator

Create an SPF record

Pick the mail provider of the domain, add further senders such as a newsletter tool or CRM and your own server addresses. The generator builds the TXT record, counts the DNS lookups against the limit of ten and shows what to publish at your DNS host.

Comma separated, without include:
IPv4 or IPv6, optionally with /prefix
TXTName: @
v=spf1 ~all

Publish as a TXT record on the apex domain. Replace an existing record starting with v=spf1, never add a second one.

Estimated DNS lookups: 0 of 10.

Check the published SPF record now

How the record is built

An SPF record is a single TXT record on the apex domain that starts with v=spf1 and ends with an all mechanism. In between it lists who may send: include for providers, ip4 and ip6 for your own addresses, mx for your own mail servers. The generator keeps this order and adds each mechanism only once.

The important part is to capture every sender, not just the mail provider: newsletter tools, ticket systems, CRMs, invoicing software, website forms and printers often send with the domain as the sender. Anyone missing ends up as softfail or fail at the receiver.

Keeping the lookup limit

Receivers perform at most ten DNS queries to evaluate an SPF record. include, a, mx and redirect count, each including the queries the included record triggers itself. The generator uses the known values of the providers (Google Workspace four, Microsoft 365 two) and warns as soon as the sum exceeds ten. Then the only fix is cutting: remove unused services or list fixed addresses with ip4 instead of include.

-all or ~all

With -all (hard fail) you tell receivers to reject unlisted senders. With ~all (soft fail) they are only flagged. For a new or incomplete list ~all is the safe start; once DMARC reports show that every sender is covered, switch to -all. ?all and +all offer no protection and are not offered by the generator.

Publish and check

Publish the generated value as a TXT record on the apex domain (name @ or empty). If a record starting with v=spf1 already exists, replace it rather than adding a second one: two SPF records are a permanent error. After saving, run the SPF checker; it resolves every include and shows the actual lookup count.

Frequently asked questions

My provider is not in the list.
Enter its include value under "More includes". Providers publish the value in their help under SPF or domain authentication.
Do I need mx with Microsoft 365 or Google Workspace?
No. The provider include covers its servers. mx only makes sense when your own mail servers send and are also listed as MX.
Can I create several SPF records, one per service?
No. There must be exactly one TXT record with v=spf1 per domain. All mechanisms belong in that one record.
Check the published SPF record

Free SPF record check and lookup: syntax, includes, the 10 DNS lookup limit and the closing qualifier. Shows whether your domain blocks forged senders.

More tools

Free tool

Email Check

Check SPF, DKIM, DMARC and MX of a domain in one run, free and without sign-up. Shows whether your mail meets the Google and Yahoo sender requirements.

Open tool →
Free tool

DMARC Checker

Free DMARC record check: policy (none, quarantine, reject), pct, reporting addresses and syntax errors. With recommendations for moving to p=reject.

Open tool →
Free tool

DNS Checker

Free DNS lookup straight from the authoritative name server: A, AAAA, CNAME, MX, TXT, NS and CAA records at a glance. No sign-up, every record explained.

Open tool →
Free tool

MX Checker

Free MX lookup: which mail servers receive for a domain, do they resolve, is the priority right? Detects missing and unreachable mail servers.

Open tool →
Free tool

SSL Checker

Free SSL certificate check: expiry date, issuer, chain, host name and TLS version, mail servers too. Detects expired, self-signed and mismatched certificates.

Open tool →
Free tool

HTTP Header Checker

Free HTTP header check: HSTS, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy, with fixes.

Open tool →
Free tool

Redirect Checker

Free 301 redirect check: every hop with status code and response time, from http to https, from www to non-www. Detects redirect chains, loops and 302s.

Open tool →
Free tool

DKIM Checker

Free DKIM record check and lookup: selector, key type, key length, syntax and revoked keys. Leave the selector empty to try common selectors automatically.

Open tool →
Free tool

DNSSEC Checker

Free DNSSEC test: DS record, resolver validation and broken signature chains. Shows whether validating resolvers like Google and Cloudflare still reach you.

Open tool →
Free tool

MTA-STS Checker

Free MTA-STS check: DNS record, policy file, mode, max_age and whether your MX servers are covered. Shows whether inbound mail enforces TLS.

Open tool →
Free tool

TLS-RPT Checker

Free TLS-RPT record check: syntax, reporting addresses (rua) and common errors such as a missing record. Shows whether you get reports on TLS failures.

Open tool →
Free tool

BIMI Checker

Free BIMI record check: syntax, logo URL, SVG Tiny PS, VMC certificate and the DMARC prerequisite. Shows why your logo does not appear in Gmail.

Open tool →
Free tool

Blacklist Check

Free IP and domain blacklist check: mail server IPs, website IP and domain against Spamhaus, Spamcop, Barracuda, PSBL and SURBL. With delisting links.

Open tool →
Free tool

Domain Checker

Free domain check: WHOIS data via RDAP straight from the registry, expiry date, registrar, EPP status, transfer lock and name servers. Warns about expiry and holds.

Open tool →