SPF record generator

SPF record generator

Tick where your domain's mail is sent from and copy the SPF record to add as a TXT record in your DNS.

Your mail provider's setup page gives this value.
v=spf1 mx ~all

How this is worked out

An SPF record is one DNS TXT record on the domain that starts with v=spf1, lists the servers allowed to send the domain's mail, and ends with what receivers should do with mail from anywhere else. The builder joins the mechanisms you select in that order. A domain must have only one SPF record.

Worked example

A domain whose mail is sent by its own mail servers and by Google Workspace, with other senders soft-failed, gets: v=spf1 mx include:_spf.google.com ~all

Figures this tool relies on

  • SPF records are published as a DNS TXT record that begins with the version section v=spf1. Source: RFC 7208, Sender Policy Framework
  • Evaluating a record may cause at most 10 DNS lookups (include, a, mx and similar mechanisms); more than that is a permanent error. Source: RFC 7208, section 4.6.4

What it does not cover: It does not look up your current DNS, check the record after you publish it, or count DNS lookups.

Review Hosting BureauPlain-English guides to choosing a web host

© 2025–2026 Review Hosting Bureau

Scroll to Top