Free SPF Record Generator

Build a correct SPF record for your domain in seconds. Add every sender, keep it under the lookup limit, and get a record that passes authentication.
SPF Generator by

Never worry about DNS set up again

With Mailforge and Infraforge all of that will be done for you, no extra effort or payment required. And then you can manage all your sequences in Salesforge.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

What Is an SPF Record Generator?

An SPF record generator builds a valid SPF record from the list of senders you authorize. SPF, short for Sender Policy Framework, is a DNS record that names the mail servers allowed to send email for your domain. Writing one by hand means getting the syntax, mechanisms, and ordering exactly right, and a small mistake breaks authentication. The generator takes your senders, such as Google Workspace, Microsoft 365, or your ESP, and outputs a single correctly formatted record ready to paste into DNS.

How the SPF Record Generator Works

1. List your senders: Add every service and server that sends email for your domain.

2. Generate the record: The tool combines them into one valid SPF record with the correct syntax.

3. Check the lookup count: It keeps the record within the 10 DNS lookup limit so authentication does not fail.

4. Paste into DNS: Copy the record and add it to your domain's DNS as a TXT entry.

Why It Matters?

One Record, Every Sender

A domain can have only one SPF record. If you send through several services, they all need to live in that single record using include and ip4 mechanisms. The generator combines them correctly so you do not accidentally create a second record or leave a sender out, both of which break authentication.

Stay Under the Lookup Limit

SPF allows only 10 DNS lookups when your record is evaluated. Each include counts, and it is easy to go over without realizing it. The generator helps you build a record that stays within the limit, so you avoid the permanent error that quietly kills deliverability.

No Syntax Guesswork

SPF syntax is unforgiving. A missing mechanism or a wrong all setting can stop the record from working. The generator handles the formatting so you get a record that passes, without hand-editing includes and mechanisms yourself.

Frequently Asked Questions

If you don't find an answer to your question below, contact us via chat!

What is an SPF record?

An SPF record is a DNS TXT entry listing the mail servers allowed to send email for your domain. Providers read it to confirm your messages are authorized, which protects against spoofing and keeps your mail out of spam.

How do I create an SPF record?

List every service that sends email for you, then use the generator to combine them into one valid record. Copy the output and add it to your domain's DNS as a TXT entry. Verify it afterward with an SPF checker.

Can I have more than one SPF record?

No. A domain must have exactly one SPF record. Multiple records cause authentication to fail. If you send through several services, combine them into a single record, which is what the generator does.

Is the SPF record generator free?

Yes. Add your senders, generate the record, and copy it. No account needed.

What does an SPF record look like?

It is a single line starting with v=spf1, followed by the mechanisms that authorize your senders, and ending with an all mechanism like -all. The generator builds this line for you from the senders you provide.

What is SPF flattening?

SPF flattening replaces include mechanisms with the actual IP addresses they resolve to, which reduces the number of DNS lookups. It is used when a record would otherwise exceed the 10-lookup limit. Flattening needs maintenance, since the underlying IPs can change.

Where do I add the SPF record?

Add it to your domain's DNS as a TXT record at the root of your domain. The exact steps depend on your DNS host, but you create a new TXT record and paste the generated value. Verify it afterward with an SPF checker.