SPF Record Generator

Select your email providers and instantly generate the correct SPF TXT record to protect your domain and improve deliverability.

SPF Record Generator

Select your email provider and/or the tools you use to send emails


e.g. your mail server IP: 203.0.113.5
e.g. _spf.yourcustomprovider.com


About SPF: SPF (Sender Policy Framework) is an email authentication method that specifies which mail servers are authorized to send email on behalf of your domain. A properly configured SPF record reduces spoofing and improves inbox deliverability.

Your SPF Record

Select your email providers on the left and click Generate to build your SPF TXT record.

How to Use the SPF Record Generator

Follow these simple steps to generate your SPF record and protect your domain from email spoofing.

  1. Select Email Providers

    Choose all the email services and tools you use to send emails — Gmail, Outlook, SendGrid, Mailchimp, and more are supported out of the box.

  2. Add Custom IPs or Domains

    Optionally add your own mail server IP address or a custom include domain if you send from infrastructure not listed in the presets.

  3. Choose a Fail Policy

    Select your enforcement level — Hard Fail (-all) rejects unauthorized senders, Soft Fail (~all) marks them, and Neutral (?all) applies no action.

  4. Copy & Add to DNS

    Click Generate, then copy your SPF record and paste it into your domain's DNS settings as a TXT record with host "@" and TTL 3600.

Frequently Asked Questions

Everything you need to know about SPF records, email authentication, and how to protect your domain.

SPF (Sender Policy Framework) is an email authentication protocol that helps prevent email spoofing and phishing attacks. An SPF record is a type of DNS TXT record that specifies which mail servers are authorized to send emails on behalf of your domain. It helps receiving mail servers verify that incoming emails claiming to be from your domain are actually sent from authorized servers, improving email deliverability and protecting your domain reputation.
An SPF record is essential for protecting your domain from being used in email spoofing and phishing attacks. Without an SPF record, spammers can easily forge emails that appear to come from your domain, damaging your brand reputation. Additionally, many email providers like Gmail and Outlook check for SPF records and may mark emails without proper authentication as spam. Having a valid SPF record significantly improves your email deliverability rates.
These are SPF fail policies that tell receiving mail servers what to do with emails from unauthorized senders. -all (Hard Fail) instructs servers to reject the email outright — this is the strictest and most recommended option once you are confident all senders are included. ~all (Soft Fail) marks the email as suspicious but still delivers it, making it a safe starting point. ?all (Neutral) applies no policy and is rarely used in production.
After generating your SPF record, log in to your domain registrar or DNS hosting provider (such as GoDaddy, Namecheap, or Cloudflare), navigate to the DNS management section, and create a new TXT record. Set the host/name field to "@" (representing your root domain), paste the generated SPF record as the value, and set the TTL to 3600. Changes typically propagate within a few hours, though full propagation can take up to 48 hours.
No. Having more than one SPF TXT record on your domain will cause SPF authentication to fail entirely. You must combine all your authorized senders into a single SPF record using "include:" mechanisms. This generator handles that automatically — simply select all the providers you use and it will produce one valid, combined record ready to paste into your DNS.
No. The SPF Record Generator is completely free to use with no signup, registration, or credit card required. Simply select your providers, choose your fail policy, and generate your record instantly. We believe in providing valuable tools to help businesses improve their email deliverability without any barriers or hidden costs.