Stop spammers from forging email from your domain — check yours free in 10 seconds. Call (731) 315-7754
Guide · ~3 min

What is an SPF record?

SPF is the “guest list” of mail servers allowed to send for your domain. Necessary — but not the whole story.

The quick version: SPF is your “guest list” — it tells the internet which systems are actually allowed to send email in your name. It’s helpful, but on its own it doesn’t stop someone from faking the name people see. For that you also need DMARC. Check your email free →

SPF (Sender Policy Framework) is a DNS TXT record that lists the servers and services permitted to send email on behalf of your domain. When a receiving server gets a message claiming to be from you, it checks whether the sending server is on your list.

What an SPF record looks like

v=spf1 include:_spf.google.com include:servers.mailprovider.com -all

The part at the end is the policy for anything not on the list:

  • -all — hard fail. Reject anything not listed. Strictest.
  • ~all — soft fail. Treat as suspicious but usually still accept. Common and acceptable when paired with DMARC.
  • ?all — neutral. No opinion — effectively no enforcement.
  • +all — allow everything. Never use this; it lets anyone pass.
The catch: SPF only checks a hidden “envelope” sender — not the “From:” address your customers see. A spammer can pass SPF using their own domain in the envelope while showing your address in the visible From:. That’s why SPF alone doesn’t stop spoofing — you need DMARC to tie the check to the visible address.

Common SPF mistakes

  • No all mechanism at the end — the record exists but enforces nothing.
  • Too many DNS lookups (over 10) — SPF silently breaks; we flatten/clean this up.
  • Missing a real sender — your invoicing or newsletter tool isn’t listed, so its mail fails.

Check your SPF now

Reads public DNS only. Results show right here — we don’t email you anything.

0%

Related: What is DMARC? · What is DKIM?