SPF Record Missing
DownBad’s Hardening checklist found no SPF record on one or more of your domains. This page checks whether the record is really missing, helps you add it, and takes you to a checklist that counts it as done.
What you’re seeing
Section titled “What you’re seeing”On Now, while no incident is open, the Hardening checklist lists SPF under NEEDS, with a pill for each domain DownBad found without an SPF record.
Your domain is the name your website and email use, such as example.com.
DNS (the Domain Name System) is the internet’s directory: it turns names
into addresses, and it holds other facts about each domain in records. A
TXT record is a DNS record that holds a line of text.
SPF (Sender Policy Framework) is a TXT record on your domain that lists the
mail servers (the computers that send email) allowed to send mail that
claims to come from your domain. A mail service such as Gmail or Outlook reads
it when a message arrives, to judge whether the message really is from you.
DownBad looked for a TXT record on the domain itself whose text begins with
v=spf1, and found none. It checks this only on a domain that has an MX
record (a DNS record naming the mail servers that accept the domain’s email).
Why DownBad ranks it NEEDS. Without SPF, a receiving mail service has less to go on when it decides whether mail from your domain is real, and it can’t tell a message from you apart from one someone else sent in your name. Gmail’s sender guidelines require everyone who sends to Gmail accounts to set up SPF or DKIM (a signature on each message, explained on DKIM Record Missing). A domain that sends no email at all still benefits from a record that says so: see The domain sends no email.
Is it you or us?
Section titled “Is it you or us?”The checklist shows what DownBad’s last lookup of the domain found. It can miss a record that is there now, for one of these reasons:
- The record was added after DownBad last looked. checked, beside the checklist, says when that was. Follow Confirm DownBad sees the fix to look again.
- The record is on another name. SPF belongs on the domain itself, such as
example.com, not on a subdomain (a name under it, such aswww.example.com). - The record doesn’t begin with exactly
v=spf1. DownBad counts a record only when those six characters, in lower case, come first. A record with anything before them, or writtenV=SPF1, isn’t counted.
If the command in Check it yourself shows a record that
begins v=spf1, and checked is later than when you added it, the fault may
be ours: go to Still stuck.
Check it yourself
Section titled “Check it yourself”This command asks DNS for your domain’s TXT records, which is where SPF lives.
Run it in a terminal (the window where you type commands: Terminal on a
Mac, PowerShell on Windows). It only reads, and changes nothing. Put your
domain in place of example.com: only the name, without www. or https://.
dig +short TXT example.comdig is a tool that asks DNS one question and prints the answer.
+short prints only the records.
dig +short TXT example.comdig is a tool that asks DNS one question and prints the answer.
+short prints only the records. If dig isn’t installed, install the
dnsutils package on Ubuntu or Debian, or bind-utils on Fedora or Red
Hat, with your system’s package manager.
nslookup -type=TXT example.comnslookup is the tool Windows includes for asking DNS a question; its
options are in
Microsoft’s nslookup reference.
When the record is there, it prints each TXT record in quotes below your
domain’s name, and one of them begins v=spf1. When it isn’t, none of the
quoted records begins v=spf1, or none is printed at all.
"v=spf1 -all""_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9"A domain can have several TXT records, used for different things. The one that
begins v=spf1 is the SPF record.
If it fails, no line begins "v=spf1. You may still see other TXT records,
or the command may print nothing at all.
Without a terminal: open Google Public DNS,
Google’s free lookup page. Enter your domain under DNS Name, choose TXT
under RR Type, and press Resolve. When the record is there, the result
has an Answer section, and one of its data lines begins v=spf1. When it
isn’t, no data line begins v=spf1.
In DownBad, the domain’s page (open Watching, then the domain) shows an SPF chip under Email Security. It shows what DownBad’s last lookup found, not what DNS says now.
Fix it
Section titled “Fix it”The causes below run from most to least likely, so start with the first.
The domain sends email, but has no SPF record
Section titled “The domain sends email, but has no SPF record”This is the cause when people or services send email from addresses at this domain: a mailbox service such as Google Workspace or Microsoft 365, a newsletter tool, or your website’s contact form.
-
List every service that sends email as this domain. Each one’s help pages say what it needs in your SPF record, usually an entry that begins
include:. For example, Google Workspace’s SPF guide givesv=spf1 include:_spf.google.com ~allfor a domain that sends only through Google, and Microsoft 365’s SPF guide gives the entry for Microsoft’s servers. -
Put them into one record. It begins
v=spf1, then lists each service’s entry separated by spaces, and ends with~allor-all.~allasks receivers to treat mail from any other server as suspicious;-allasks them to reject it. -
Add the record at your DNS host (the company whose servers answer DNS questions for your domain, often the company you registered the domain with, or a service such as Cloudflare). Add a record of type
TXT, on the domain itself, which many DNS hosts write as@in the name or host field, with the record as its value. Your DNS host’s own guide shows where: for example Cloudflare, DigitalOcean or Amazon Route 53. -
Keep one SPF record per domain. If the domain already has a TXT record that begins
v=spf1, add the new entries to it rather than adding a second one: the SPF standard says a domain must not have more than one, and receivers treat SPF as broken when it does.
The domain sends no email
Section titled “The domain sends no email”This is the cause when nobody sends email from addresses at this domain, such as a domain that only points to a website.
-
At your DNS host, add a record of type
TXTon the domain itself (often written@), with the valuev=spf1 -all. It says no server may send mail as this domain, so receivers can reject anyone who tries.example.compublishes exactly this record, as the output in Check it yourself shows. Your DNS host’s own guide shows where: for example Cloudflare, DigitalOcean or Amazon Route 53. -
If you’d rather not add a record, dismiss the item instead, as You’ve decided it doesn’t apply explains.
You’ve decided it doesn’t apply
Section titled “You’ve decided it doesn’t apply”This is the cause when you’ve chosen not to add SPF to this domain and want the checklist to stop asking.
-
On Now, open the SPF item in the Hardening checklist and press Dismiss. That dismisses it for every domain it lists, and each one counts as done in the checklist’s percentage.
-
To bring a domain back, press Show N dismissed items under the checklist, where N is how many are dismissed, and press Restore beside the domain.
Confirm DownBad sees the fix
Section titled “Confirm DownBad sees the fix”DownBad doesn’t look at your domain again by itself for the Hardening checklist. The checklist reads the newest discovery report for the domain: the lookup DownBad makes when you add a domain, and again each time you rediscover it. checked, beside the checklist, says how long ago the newest report was made.
-
Run the command in Check it yourself again, and wait until it shows the record you added. A DNS server that already looked for the record and found nothing can keep giving that answer for a while after you add it, and DownBad’s lookup can get the same old answer.
-
In DownBad, open Watching and then the domain, to reach the domain’s page. Press Rediscover. DownBad looks the domain up again and lists what differs from the saved report. Nothing is saved yet.
-
Press Save. The new lookup becomes the domain’s newest discovery report.
-
Open Now and reload it. The domain’s pill on this item now counts as done, and checked shows the time of the new lookup. Now shows the checklist only while no incident is open.
If the item is still there after you saved, the new lookup didn’t find the record either. Go back to Is it you or us?, which lists the reasons DownBad can miss a record that is there.
Still stuck
Section titled “Still stuck”Before you ask for help, collect:
- the domain’s name, and when checked says DownBad last looked
- the output of the command in Check it yourself, and when you ran it
- the record exactly as you entered it at your DNS host
Then send all of it to us through Contact Us.