SPF generator

Compose an SPF record from the sources you declare: IPs, networks, includes, a, mx and the final policy, with each part explained.

0 B / 1.00 MiB

One per line, optionally with /CIDR.

0 B / 1.00 MiB
0 B / 1.00 MiB

Domains documented by your sending providers, one per line.

What receivers should do with servers not listed above.

Record to publish

v=spf1 mx ~all

Publish it as a TXT record on the domain itself (not on a subdomain) and keep only one v=spf1 record.

  • mxthe hosts listed as MX
  • ~allevery other server
  • Info: DNS lookups in this recordEach include, a, mx and exists costs one lookup, and includes may add their own.1

Scope and limits

  • No provider presets: add the include values your providers document. Nothing is flattened or published.
  • A hard-fail policy is only safe once every legitimate source is listed.

Related tools and resources

Parse an SPF record from DNS or pasted text: mechanisms, qualifiers, syntax errors and the DNS lookups needed to evaluate it.

Domain and authentication

Build a DMARC record from explicit options, starting with a monitoring policy, with each tag explained.

Domain and authentication
Mailiqo

Set up your sending domain in Mailiqo

Mailiqo verifies your domain from the panel and guides you through the SPF, DKIM and DMARC records you need to send under your own identity. Free plan, no card required.

Create a free account