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
| Ending | Meaning |
|---|---|
-all | Anyone not listed fails. The strictest setting. |
~all | Anyone not listed "soft fails". Common, and fine when DMARC is enforcing. |
?all | Neutral: no opinion about anyone. Offers almost no protection. |
+all | Anyone 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.?allor noallat the end: the record doesn't tell receivers to reject anyone else.- One record ending in
-allor~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.