SPF record check
How do you check a domain’s SPF record, and what tends to be wrong with it?
Check it now: type a domain, such as yourcompany.com. Free and without signing up; we read public records only.
Short answer
An SPF record is a single TXT record in DNS that lists the servers allowed to send e-mail for your domain. Checking it answers three questions: does it exist, is there exactly one, and how does it end? Tegmia looks at exactly these three things — and a finding most often comes not from a missing record but from one that ends with a lenient rule, which only flags forged mail instead of rejecting it.
Part of the check DNS and e-mail protection.
What it is
SPF (Sender Policy Framework, RFC 7208) is a list of senders that you publish in DNS. When a receiving server gets an e-mail, it checks whether the IP address of the server handing it over is on that list.
What decides is the end of the record. “-all” means: reject anything else. “~all” means: accept anything else, but flag it. “?all” says nothing, and “+all” allows anyone in the world to send.
SPF on its own does not protect the address people see in their mail. It checks the envelope of the message, not the From header. That is DMARC’s job, which builds on the SPF result.
How Tegmia measures it
What the check actually does, with the thresholds at which it reports a finding.
- We read your domain’s TXT records directly from DNS and take those that start with “v=spf1”. We send nothing to your mail servers.
- When there is no such record at all, we report dns.spf_missing.
- When there are two or more, we report dns.spf_multiple_records. RFC 7208 allows only one, so in that case the receiving server does not evaluate SPF at all.
- With a single record, we read its final rule. “-all” is fine and we report nothing. “~all” and “?all” we report as dns.spf_permissive_all with medium severity, “+all” with the same code but high severity — it allows sending from any server.
- The whole record we read is part of the evidence for the finding. You do not have to take our word for it; you see the input of the measurement.
- Queries time out after 8 seconds and are retried twice. This is reading public records; nothing is changed.
- When the query for TXT records gets no answer (it times out or the DNS server returns an error), we do not assess SPF this time and leave earlier findings as they are. An answer of “no such record” is a measurement; a missing answer is not.
What this does not measure
- We do not expand “include:” or count how many DNS lookups the record needs. RFC 7208 allows ten; a record that exceeds them is invalid, and one query cannot show that.
- We do not check that the record contains every server you actually use. Only you know that.
- We check the domain you entered, not its subdomains. Subdomains have their own SPF.
The findings this can lead to
Straight from the catalogue. You will see the same text in the report.
The domain has no SPF record
Highdns.spf_missing · DNS and e-mail protection
Without SPF, anyone can send e-mail from your address. This is the most common way an attacker tricks an accountant into paying a fake invoice.
What to do: Add an SPF TXT record to DNS that lists your sending servers and ends with -all. If you do not send any e-mail from the domain, use v=spf1 -all.
Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue
The domain has more than one SPF record
Highdns.spf_multiple_records · DNS and e-mail protection
Under the standard, more than one SPF record is an error. Receiving servers treat SPF as invalid, so the protection does not work at all.
What to do: Merge all SPF records into a single TXT record v=spf1 ...
Default severity high: Plan it within a week. It makes a successful attack considerably more likely. The full rule in the catalogue
SPF does not end with the strict -all rule
Mediumdns.spf_permissive_all · DNS and e-mail protection
A lenient rule means a forged e-mail gets through and is only flagged. The protection loses most of its effect.
What to do: Once you have checked that SPF lists all your legitimate senders (including newsletter tools and your CRM), switch to -all.
Default severity medium: Plan it within a month. On its own it is not enough for an attack, but it makes one easier. The full rule in the catalogue
A typical misconfiguration
A double SPF record. It happens when the company connects a new sender — a mailing service, an online shop, an invoicing or attendance system — and the provider’s instructions say “add this TXT record to your DNS”. Whoever follows them literally ends up with two records. The result is not the sum of both but an invalid SPF.
The second configuration that lasts for years: “~all” left over from the set-up phase. A lenient rule is sensible for two weeks, until you have checked that nothing legitimate sends from outside the list. Left for good, it turns protection into a footnote.
How to fix it
Specific steps, in the order in which they make sense.
- 01List all of the domain’s TXT records in DNS and find those that start with “v=spf1”. Exactly one must remain.
- 02Write down everything that sends e-mail for you: company mail (Microsoft 365, Google Workspace, mail at your hosting provider), mailings, the online shop, the invoicing system, monitoring, forms on the website.
- 03For each of them, look up the recommended “include:” or IP range and merge them into one record. Add nothing blindly — every extra “include:” uses up one of the ten allowed DNS lookups.
- 04Keep “~all” for two weeks and check in the DMARC reports that nothing legitimate leaves from outside the list.
- 05Then switch the end to “-all” and run the check again.
- 06If you send no e-mail at all from a domain or subdomain, give it “v=spf1 -all”. An unused domain without SPF is more convenient for an attacker than your main one.
What it looks like
The values as you will write or see them.
Company mail on Microsoft 365, nothing else
v=spf1 include:spf.protection.outlook.com -all
A domain that sends no mail
v=spf1 -all
A record we report a finding for
v=spf1 include:... ~all
A lenient rule at the end. Forged mail gets through, only flagged.
Check it on your own domain
We read only what the domain has published.
The scan reads the domain’s public records and configuration and shows the result of this check for you, including the evidence we based it on.
Situations this answers
- We received spam from our own address
An e-mail from yourself usually does not mean a broken-into mailbox but a domain without protection. How to tell, and what to set in DNS.
- Our e-mails end up in customers' spam
E-mail deliverability rests on SPF, DKIM and DMARC. Which of them we can measure from outside, and what you have to check with your own mail.
- Someone is sending phishing in our name
What to do when an attacker poses as your company: how to find out whether they abuse your domain, and how to make it harder for them.
Related checks
What goes with it and is usually done together.
- DMARC record check
What DMARC does, what p=none, quarantine and reject mean, and how to reach an enforced policy without losing mail.
- DKIM, and why we do not check it from outside
Without knowing the selector, DKIM cannot be measured honestly from outside. What that means for you and how to check it yourself.
- MX record check
The MX record decides where mail is delivered. What it means when it is missing, and how to protect a domain that sends no e-mail.
Last updated 3 November 2026. We write this page by hand and correct it when what we measure changes. Found a mistake? Tell us via the contact page.