Samprix

SPF Record Generator

Pick the services that send your email and get a ready-to-paste SPF record, with the full DNS lookup count checked before you publish.

  • Live DNS lookup
  • Results in seconds
  • No sign-up
  • Free

Started from github.com’s current record. Change it below; publishing replaces the old one.

1. Services that send your email

Everything that sends mail from an address at your domain.

Business email

Newsletters and marketing

Sending APIs

Help desk, CRM and shop

2. Your own servers (optional)
3. Mail from anywhere else

Your SPF record

TXT value

v=spf1 ip4:192.30.252.0/22 ip4:62.253.227.114 ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:sendgrid.net include:_netblocks.google.com include:_netblocks2.google.com include:servers.mcsv.net include:mktomail.com ~all

Type
TXT
Host / name
@ (github.com)
TTL
Auto, or 1 hour
DNS lookups Counting…
  • Note:The record is 320 characters long

    One DNS text string holds 255 characters. Most DNS panels split longer records for you; if yours rejects it, split it into two quoted strings.

Published it? Check it with the SPF checker

Advertisement

How to publish your SPF record

  1. Sign in wherever your domain’s DNS is managed: your registrar, Cloudflare or your web host.
  2. Look for an existing TXT record starting with v=spf1. If there is one, edit it and replace its value. Don’t add a second one: two SPF records make SPF fail.
  3. Otherwise add a new record: type TXT, host @ (some panels want your domain name, or leave it blank), and the generated text as the value.
  4. Save, wait a few minutes, then check it with the SPF checker.

What to include

List every service that sends email with your domain in the return path: your mailbox provider, newsletter and marketing tools, transactional email APIs, help desks, CRMs and shop platforms. Forgetting one means its mail fails SPF; listing services you no longer use wastes lookups and lets them keep sending as you.

Some services, including Mailchimp, HubSpot and Klaviyo, send with their own return-path domain, so they don’t need an include at all. They need DKIM set up instead.

After SPF: DKIM and DMARC

SPF is one of three records. DKIM signs your mail, and DMARC tells receivers what to do when SPF and DKIM fail. Gmail, Yahoo and Microsoft now require all three from bulk senders. See SPF, DKIM and DMARC explained, and if you’re near the lookup limit, how to get under 10 lookups.

Did this tool do what you needed?

All tools