SPF record checker

Your SPF record lists the servers allowed to send email for your domain. Small mistakes in it are common, and some of them quietly make it useless.

Check your domain

Create a free account and get a report on your email security (SPF, DKIM, and DMARC), website certificate, domain registration, and website, graded A to F with plain-English fixes. It takes about ten seconds once you're signed up.

First report free. No credit card. Nothing to install.

What an SPF record looks like

SPF lives in a TXT record on your domain itself (not a subdomain). It starts with v=spf1, lists who may send, and ends with an instruction for everyone else:

v=spf1 include:spf.protection.outlook.com include:_spf.google.com -all
EndingMeaning
-allAnyone not listed fails. The strictest setting.
~allAnyone not listed "soft fails". Common, and fine when DMARC is enforcing.
?allNeutral: no opinion about anyone. Offers almost no protection.
+allAnyone at all may send as you. Never use this.

What Nightkeep flags

  • No SPF record: your domain doesn't say which servers may send its email.
  • More than one SPF record: the standard allows exactly one. With two, receivers treat SPF as broken, which usually happens when a second service adds its own record instead of merging into yours.
  • +all: the record allows anyone to send as you.
  • ?all or no all at the end: the record doesn't tell receivers to reject anyone else.
  • One record ending in -all or ~all: your domain lists its approved senders.

Fixing common SPF problems

Two records: merge them into one. Keep a single v=spf1 at the start and a single all at the end, with every include: in between. Our guide on fixing SPF errors shows an example.

Missing services: every tool that sends email as you (your email provider, newsletter platform, invoicing or CRM software) needs to be in the record, or its mail can fail. Each provider publishes the exact include: to add.

Too many lookups: SPF allows at most 10 DNS lookups. Each include: counts, and so do the includes inside it. Remove services you no longer use before adding new ones.

SPF on its own doesn't stop spoofing of the From address people see. That's what DMARC adds, so check both.

Check your domain

Create a free account and get a report on your email security (SPF, DKIM, and DMARC), website certificate, domain registration, and website, graded A to F with plain-English fixes. It takes about ten seconds once you're signed up.

First report free. No credit card. Nothing to install.