Domain Vital Check

SPF RECORD GENERATOR

SPF record generator

Choose the servers and services that send mail for your domain and copy the exact v=spf1 TXT record to publish. The record is built in your browser.

Starting from your current record runs one public DNS lookup, the same as the SPF checker. Nothing else you type leaves your browser.

Servers named by DNS

Use the include value your provider documents; some providers use a regional or account-specific domain.

YOUR RECORD

SPF TXT record to publish

TXT

@ (the domain itself)

TXT VALUE — ONE STRING (COPY RECORD COPIES THIS)


        
        
        
        
Check it after publishing

WHAT EACH TERM DOES

ABOUT SPF RECORDS

How to publish an SPF record

An SPF record is a single TXT record on your domain that starts with v=spf1. It lists the servers allowed to send mail using the domain, and ends with an all term that sets the result for every other server.

Before you publish

  • Publish one SPF record per domain. If one exists, replace it; two v=spf1 records cause a permanent error (RFC 7208).
  • Every include, a, mx, ptr, exists and redirect costs a DNS lookup, and so does every such term inside included records. The limit is 10.
  • Subdomains that send mail need their own SPF record; the parent record does not cover them.
  • This generator does not change DNS. You publish the record at your DNS host, then confirm it with the SPF checker. For a DMARC policy, use the DMARC record generator.

FAQ

Common questions

Where do I publish the SPF record?

As one TXT record on the domain itself, often shown as @ or the bare domain in your DNS host. Replace any existing v=spf1 record instead of adding a second one.

Should I use -all or ~all?

-all asks receivers to treat mail from unlisted servers as a fail; ~all marks it as a soft fail. Which one fits depends on whether every server that sends your mail is listed. DMARC policy decides what receivers do with the result.

Why does the lookup count matter?

RFC 7208 limits SPF evaluation to 10 DNS lookups, including those inside included records. Past that, receivers return a permanent error. Use the SPF checker after publishing to see the total.