Skip to content
NewA free test that shows whether your emails will reach the inbox.
Get started

SPF record generator

Pick who sends your mail, add your own servers or paste the records you have. You get one record and its DNS lookups out of 10.

Who sends your mailPick every service

The number is each sender's cost in DNS lookups, nested includes counted, measured on 2026-11-19.

Your own servers and other services

v=spf1 ~all
0/10lookups
Your SPF recordTXT
v=spf1 ~all

Publish as a TXT record at @ (the root of the domain), replacing any SPF record already there: a domain may have only one.

DNS lookups

0 / 10

Nothing picked yet: as it stands, this record lets no server send for the domain.

Check your domain with the SPF checker once published: it expands every include live.

Next, a DKIM key and a DMARC record.

Built in this tab. Nothing you pick or paste is sent.

Google Workspace is a trademark of Google LLC. Microsoft 365 is a trademark of the Microsoft group of companies. Zoho is a trademark of Zoho Corporation Pvt. Ltd. Fastmail is a trademark of Fastmail Pty Ltd. Proton Mail is a trademark of Proton AG. iCloud is a trademark of Apple Inc. Resend is a trademark of Plus Five Five, Inc. Amazon SES is a trademark of Amazon.com, Inc. or its affiliates. SendGrid is a trademark of Twilio Inc. Mailgun is a trademark of Mailgun Technologies, Inc. Postmark is a trademark of ActiveCampaign, LLC. SparkPost is a trademark of MessageBird B.V. Mailjet is a trademark of Mailjet SAS. Brevo is a trademark of Sendinblue SAS. Mailchimp is a trademark of The Rocket Science Group LLC. Salesforce is a trademark of Salesforce, Inc. Shopify is a trademark of Shopify Inc. Zendesk is a trademark of Zendesk, Inc. Help Scout is a trademark of Help Scout PBC. Shown only to say which provider or client a result refers to; Runearc is not affiliated with, sponsored or endorsed by any of them.

Sending from your own domain? Runearc sets it up free, with SPF, DKIM and DMARC checked for you.

What the generator does.

Pick the services that send mail for your domain, add your own servers, or paste the records you have. You get one SPF record and how many of its 10 DNS lookups it uses.

  • One record

    Merged

    Every sender goes into a single record. Paste the two records your domain has today and they become one.

  • Lookup count

    Live

    Each sender's cost in DNS lookups, nested includes counted, measured against its live record on 2026-11-19. Over 10 and you get a warning with the costliest senders.

  • Your own servers

    ip4 / ip6

    IP addresses and ranges cost no lookups, so they are the way to add a server without using your budget.

  • Senders that need nothing

    0 lookups

    Services that use their own return path subdomain, such as Runearc and Resend, are marked: they cost the root record nothing.

  • Soft or hard fail

    ~all / -all

    ~all lets DMARC decide; -all rejects anything not listed. The record never ends in +all or ?all.

  • In your browser

    Private

    The record is built on this page. Nothing you pick or paste is sent to us.

How to publish your SPF record.

Publish the record as a TXT record at the root of your domain (shown as @ at most DNS hosts), and delete any other TXT record that starts with v=spf1. Changes reach most receivers within the record's TTL, usually an hour. Then run the SPF checker on your domain to confirm one record and the real lookup count.

SPF is one of three. Publish a DKIM key for each sender and a DMARC record so receivers know what to do with mail that fails, then check the whole domain with the domain check or send a real message to the email deliverability test.

Questions.

How do I create an SPF record?
List every service that sends mail with your domain in the envelope (your mailbox provider, your app's email API, your newsletter and support tools), add the include each one documents, add the IP ranges of your own servers, and end with ~all or -all. Publish it as one TXT record at the root of the domain.
How do I merge two SPF records?
Take one v=spf1, then every include, ip4, ip6, a and mx term from both records without duplicates, then one all at the end. Paste both records into this generator under Merge existing records and it does that for you.
What if my SPF record is over 10 lookups?
Remove includes for services you no longer send with first. Services that support a custom return path or bounce subdomain (most email APIs do) can move their SPF off the root record. As a last resort, replace an include with the provider's IP ranges, which cost nothing but need updating when the provider changes them.
Do I need an SPF record for Google Workspace or Microsoft 365?
Yes, if your users send mail from that domain. Google Workspace uses include:_spf.google.com and Microsoft 365 uses include:spf.protection.outlook.com; each costs one lookup today.
Where do I put the SPF record?
At the root of the domain, as a TXT record. Most DNS hosts call the root @ or leave the name empty. A subdomain that sends mail, such as a bounce or mail subdomain, needs its own SPF record at that subdomain.
Is anything I enter sent to Runearc?
No. The generator runs in your browser and makes no requests with what you pick or paste. Only the SPF checker, which you run separately, reads DNS on our side.

More free tools

All free tools