Free SPF Record Generator & Builder (RFC 7208 Compliant)

Free SPF Record Generator Create SPF Records & Stop Spoofing

Use our free SPF record generator and builder tool to create SPF record syntax in seconds. Authorize Google Workspace, Microsoft Office 365, and custom SMTP relays, block spoofing, and stay under the RFC 7208 10-lookup limit. 100% free with no signup needed.

RFC 7208 CompliantGoogle & Yahoo 2024-2026 Ready10-Lookup Budget ProtectorFree SPF Generator Tool
Free SPF Record Generator & Builder (RFC 7208 Compliant)
Zero Server Lag ยท Instant

1. Authorize Core Domain Records

Authorize mail sent directly from your root domain server or mail servers.

2. Select Outbound Email Providers

1-Click Presets

Click any provider you send emails or cold outreach sequences through. We automatically inject the official include string.

3. Choose SPF Enforcement Policy

Dictates how receiving mail servers (Google Workspace, Microsoft Outlook, Yahoo) treat messages that fail authentication.

RFC 7208 DNS Lookup Budget Meter:2 / 10 DNS Lookups Used
RFC 7208 limit: Exceeding 10 lookups triggers SPF PermError and breaks delivery
v=spf1 mx include:_spf.google.com ~all
Host: @ (or root)Type: TXTTTL: 3600 (1 Hour)

Step-by-Step DNS Host Setup Instructions

  1. Log in to Cloudflare and select your domain.
  2. Go to DNS > Records and click "Add Record".
  3. Select Type: TXT.
  4. Enter Name: @ (or your root domain).
  5. Paste your generated record into the Content box and click Save.
Permanent Free Forever Plan

DNS is just step one. Now get the infrastructure that guarantees primary inbox delivery.

An SPF record authorizes your server, but it doesn't warm up your accounts or prevent spam spikes. InvokeIQ provides the complete outbound deliverability engine: 3 rotating inboxes, automated smart warmup, and 500 verified monthly sends forever free without requiring a credit card.

3 Inboxes with Automatic Load Balancing
Peer-to-Peer Warmup Included Free
500 Emails/Month Free Forever
No Credit Card Required
Quick Answer: What is an SPF Record Generator & How Do You Create an SPF Record?

An SPF (Sender Policy Framework) record is a public DNS TXT record published on a domain that declares which mail servers and IP addresses are authorized to send email on behalf of that domain (defined under RFC 7208). When an email is sent, receiving servers (Google Workspace, Microsoft 365, Yahoo) check the domain's SPF record during the SMTP handshake. This free SPF record generator and SPF record builder allows you to create SPF record syntax with your chosen includes (e.g. Google Workspace, Office 365, SendGrid), apply the proper fail policy (~all or -all), and monitor DNS lookups in real time to avoid the 10-lookup limit.

Without SPF, Your Emails Are at Risk of Spoofing

Let's say you are sending an outreach pitch or customer credential email, only for it to land in spam or, worse, be impersonated by bad actors. Email providers cannot verify your authenticity without an SPF record. A missing SPF record allows anyone to impersonate your domain, and causes major ISPs like Gmail and Outlook to quarantine your outreach.

The Fix: Instantly generate your SPF, DKIM, and DMARC records to establish complete domain authority.

SPF Record Generator

Authorize legitimate sending mail servers and IP addresses. Prevents domain spoofing and stops unauthorized senders from using your brand name.

Active On This Page

DKIM Record Generator

Sign outbound emails with 2048-bit cryptographic key pairs. Guarantees that message content cannot be altered or tampered with in transit.

DMARC Record Generator

Instruct receiving mail filters on how to enforce policy (none, quarantine, or reject) when SPF or DKIM fails, and receive aggregate forensic reports.

Step-by-Step SPF Builder

How to Create an SPF Record in 4 Simple Steps

Use our free SPF record builder to generate valid SPF record syntax and publish it on your domain DNS.

1

Enter Your Sending Domain

Provide your root sending domain (e.g. yourcompany.com) or custom outbound outreach subdomain.

2

Select Outbound Providers

Toggle 1-click presets for Google Workspace, Microsoft Office 365, SendGrid, Amazon SES, or add dedicated server IPs.

3

Choose the Fail Mode

Select ~all (SoftFail) for cold email and warm-up safely, or -all (HardFail) for strict corporate blocking.

4

Publish to DNS

Copy the generated record and paste it into Cloudflare, GoDaddy, or Namecheap as a TXT record with host @.

Why SPF is Essential for Your Email Security & Deliverability

An SPF record acts as the primary security layer protecting your domain name, sender reputation, and sales revenue. Here are the 4 common scenarios where an SPF record is mandatory:

1. You Send Cold Emails or Marketing Campaigns

Since February 2024, Google and Yahoo enforce strict sender rules for bulk and cold outreach. If your sending domain lacks an SPF record or exceeds the 10-lookup limit, receiving ESPs will automatically dump your messages into spam or bounce them back. SPF establishes the baseline sender credibility required to reach primary inboxes.

2. Your Domain Has Been Spoofed or Impersonated

Have you ever noticed fake or bounced emails that you never sent? Cybercriminals routinely spoof unauthenticated domains to launch phishing scams. An SPF record explicitly tells mail servers which IPs are authorized to speak for your domain, blocking unauthorized impersonators.

3. Your Business Relies on Transactional Emails

Order receipts, password reset links, and onboarding notifications cannot afford delivery delays. When transactional emails get caught in spam folders, customers lose trust. A properly formatted SPF record ensures your transactional relays (SendGrid, Postmark, Amazon SES) are trusted by recipient filters.

4. Your Organization Uses Multiple Email & CRM Providers

Modern sales teams rarely send through a single server. You might use Google Workspace for personal communication, InvokeIQ for cold outbound, HubSpot for marketing newsletters, and Zendesk for customer support. An SPF record aggregates every service into one centralized authorization entry.

Common SPF Record Configurations for Major Providers

Ready-to-use syntax snippets and guides on how to create SPF records for Google Workspace, Office 365, and multi-service outbound stacks.

SPF Record for Google Workspace

KD: 15 (Easy to Rank)

To create an SPF record for Google Workspace, include _spf.google.com. This authorizes all Google Workspace mail delivery servers and Gmail relays.

v=spf1 include:_spf.google.com ~all

If your domain also sends through its web host, add mx: v=spf1 mx include:_spf.google.com ~all.

SPF Record for Office 365 (Microsoft 365)

KD: 24 (Moderate)

To create an SPF record for Office 365 (Exchange Online), include spf.protection.outlook.com to validate all outbound Microsoft 365 email traffic.

v=spf1 include:spf.protection.outlook.com ~all

Use ~all (SoftFail) during outbound warm-up to prevent abrupt bounces.

How to Combine Multiple SPF Records into One (Avoid SPF PermError)

A common mistake is creating two separate TXT records (e.g. one for Google Workspace and another for SendGrid or Amazon SES). This completely invalidates your SPF configuration. To combine multiple SPF records, merge all include mechanisms into a single record:

v=spf1 include:_spf.google.com include:sendgrid.net include:amazonses.com ~all

Notice: Exactly one v=spf1 at the start, and exactly one ~all at the end. Use our free SPF generator tool above to dynamically calculate and verify your total lookups!

SPF Record Syntax Guide: Mechanisms, Qualifiers & RFC 7208 Rules

An SPF (Sender Policy Framework) record is a public DNS TXT record published on your domain name. It specifies the complete list of authorized IP addresses and hostnames that are permitted to send emails on behalf of your domain.

When a mail server receives an email claiming to originate from your domain (e.g. john@yourcompany.com), it extracts the return-path envelope address during the SMTP handshake and queries your domain's DNS for an SPF TXT record. If the sending server IP matches an authorized mechanism in your SPF record, the email passes SPF authentication.

Key SPF Mechanisms & What They Mean in SPF Record Syntax

MechanismDescriptionDNS LookupsExample Syntax
includeImports the SPF record of a third-party email provider into your policy.1 per includeinclude:_spf.google.com
mxAuthorizes any server listed in your domain's MX records to send email.1 lookupmx
aAuthorizes the web server resolving to your domain's A record.1 lookupa
ip4Authorizes a specific IPv4 address or subnet range (0 DNS lookups!).0 lookupsip4:198.51.100.42
allAlways placed at the end. Defines the policy for any IP not matched above.0 lookups~all
Understanding the RFC 7208 10-DNS-Lookup Limit

The SPF protocol specification (RFC 7208) limits recursive DNS queries to 10 lookups total per evaluation to prevent denial-of-service amplification attacks. If your SPF record includes too many third-party services (e.g. Google Workspace + Microsoft 365 + SendGrid + HubSpot + Zendesk), you will exceed 10 lookups. When this happens, receiving servers return an SPF PermError, causing legitimate emails to fail authentication and bounce.

InvokeIQ's free SPF generator tool includes a live real-time lookup counter to ensure your record never exceeds this strict threshold.

Stop Paying $97/mo for Smartlead

Build Your Complete High-Deliverability Cold Email Engine

Configuring SPF is just the foundation. To scale outbound without getting blacklisted, you need automatic mailbox rotation, continuous warmup, and distributed sending. Get it all on InvokeIQ's Free Forever plan.

3 Inboxes Included
Automated rotation & load balancing
Smart Warmup
Included free on every connected mailbox
500 Sends/Month
Permanent free allocation forever
0 Credit Card
Sign up in 30 seconds and start sending

No credit card required. Connect up to 3 mailboxes and send up to 500 emails/month forever free.

Frequently Asked Questions About SPF Records

Everything you need to know about SPF syntax, lookup limits, and email deliverability.

How to create an SPF record for Google Workspace?

To create an SPF record for Google Workspace, add a DNS TXT record at host @ with value v=spf1 include:_spf.google.com ~all. If you also send from your website host, add mx.

How to create an SPF record for Office 365 (Microsoft 365)?

To create an SPF record for Office 365, add a DNS TXT record with host @ with value v=spf1 include:spf.protection.outlook.com -all (or ~all for cold email campaigns).

Can I have multiple SPF records on my domain?

No. A domain must never have more than one SPF TXT record. If you publish multiple TXT records starting with v=spf1, receiving servers (Google, Microsoft 365, Yahoo) will fail SPF evaluation with a Permanent Error (PermError). You must combine all authorized includes and IP addresses into a single string.

What is the difference between ~all (SoftFail) and -all (HardFail)?

The ~all (SoftFail) qualifier tells receiving servers to accept emails that fail authentication but mark them as suspicious or route them to spam. This is strongly recommended for cold email and outbound sending during mailbox warm-up. The -all (HardFail) qualifier commands receiving servers to reject and delete unauthenticated messages immediately.

What is the 10-DNS-lookup limit in SPF?

RFC 7208 mandates that an SPF check cannot perform more than 10 DNS queries. Mechanisms like include:, a, and mx each count as lookups. If your record requires 11 or more lookups, receiving filters trigger an SPF PermError. Our generator monitors your lookup budget in real time to prevent this mistake.

How long does it take for my new SPF record to take effect?

DNS propagation typically takes anywhere from 15 minutes to 24 hours depending on your registrar's TTL (Time to Live) settings. On modern DNS providers like Cloudflare, changes usually propagate globally within a few minutes.

Why is the ptr mechanism discouraged in modern SPF records?

RFC 7208 explicitly discourages using the ptr mechanism because it causes multiple reverse DNS lookups, places a heavy burden on DNS infrastructure, and frequently causes timeouts. Many major email providers (like Gmail) will ignore or heavily penalize SPF records containing ptr.

Does SPF replace DKIM and DMARC?

No. SPF, DKIM, and DMARC form a three-legged stool of modern email authentication. SPF verifies the sending server IP, DKIM verifies that message content was not tampered with, and DMARC tells receiving servers how to enforce policies when either check fails. You need all three properly configured for 99%+ deliverability.