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.
1. Authorize Core Domain Records
Authorize mail sent directly from your root domain server or mail servers.
2. Select Outbound Email Providers
1-Click PresetsClick 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.
Step-by-Step DNS Host Setup Instructions
- Log in to Cloudflare and select your domain.
- Go to DNS > Records and click "Add Record".
- Select Type: TXT.
- Enter Name: @ (or your root domain).
- Paste your generated record into the Content box and click Save.
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.
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.
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.
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.
Enter Your Sending Domain
Provide your root sending domain (e.g. yourcompany.com) or custom outbound outreach subdomain.
Select Outbound Providers
Toggle 1-click presets for Google Workspace, Microsoft Office 365, SendGrid, Amazon SES, or add dedicated server IPs.
Choose the Fail Mode
Select ~all (SoftFail) for cold email and warm-up safely, or -all (HardFail) for strict corporate blocking.
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.
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.
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:
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
| Mechanism | Description | DNS Lookups | Example Syntax |
|---|---|---|---|
| include | Imports the SPF record of a third-party email provider into your policy. | 1 per include | include:_spf.google.com |
| mx | Authorizes any server listed in your domain's MX records to send email. | 1 lookup | mx |
| a | Authorizes the web server resolving to your domain's A record. | 1 lookup | a |
| ip4 | Authorizes a specific IPv4 address or subnet range (0 DNS lookups!). | 0 lookups | ip4:198.51.100.42 |
| all | Always placed at the end. Defines the policy for any IP not matched above. | 0 lookups | ~all |
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.
Discover More Free Deliverability & Outreach Tools
Professional infrastructure tools built for outbound teams, SDRs, and agencies.
DMARC Record Generator
Generate an official DMARC policy with quarantine/reject enforcement and aggregate RUA reporting.
Email Spam Words Checker
Audit your subject lines and copy for trigger words, excessive capitalization, and formatting penalties.
Cold Email ROI Calculator
Model leads contacted, reply rates, meetings booked, and deal value to project monthly outbound revenue.
Email Signature Generator
Create clean, high-deliverability HTML signatures formatted for Gmail, Outlook, and Apple Mail.
Sales Call Follow-Up Generator
Generate multi-touch follow-up email sequences customized from sales demo notes in under 10 seconds.
DKIM Record Generator
Generate 2048-bit RSA key pairs client-side with zero private key logging.
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.
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.