Free Tool

SPF Record Generator

Build a valid SPF record for your domain in seconds. Select your email providers, add custom IPs, and copy the result.

Your SPF Record

v=spf1 ~all

Where to add this record

  1. Log into your DNS provider or domain registrar.
  2. Add a new TXT record.
  3. Set the host/name to @ (or leave it blank — this represents your domain root).
  4. Paste the generated SPF record as the value.
  5. Save and allow up to 48 hours for DNS propagation.

What is SPF?

SPF (Sender Policy Framework) is a DNS-based email authentication method that lets domain owners specify which mail servers are allowed to send email on their behalf. When a receiving server gets a message claiming to be from your domain, it checks your SPF record to see if the sending server is on the approved list. If it isn't, the message can be flagged as suspicious or rejected entirely.

Without an SPF record, anyone can send email that looks like it's coming from your domain. This is how most phishing and spoofing attacks work — attackers forge the "From" address to impersonate a trusted sender. Publishing an SPF record is one of the simplest things you can do to protect your domain's reputation and improve your email deliverability.

SPF works best when combined with DKIM (which signs your messages cryptographically) and DMARC (which tells receiving servers what to do when checks fail). Together, these three protocols form the foundation of modern email authentication. Most major email providers — including Google, Microsoft, and Yahoo — now require at least SPF and DKIM to be configured before they'll reliably deliver your mail to the inbox.

Frequently Asked Questions

Take your email deliverability further

MailNeo monitors your SPF, DKIM, and DMARC records around the clock and alerts you if anything breaks. Start free — no credit card required.

Get Started Free

Related Resources