Checks / DNS

The domain does not have an SPF record

Check
dns.spf
Severity
low
Runs
on our side, against a domain you verified
Looks at
TXT v=spf1 on the domain
Updated 26 Nov 2026

What the check looks at

Once a day we look up the TXT records of the domain. The check fails when none starts with v=spf1. It warns when there are two or more v=spf1 records (receivers then treat SPF as an error for every message), and when the record ends in +all or all, which lets every server send mail for the domain.

Risk

SPF (RFC 7208) lists the servers allowed to send mail with the domain in the envelope sender. Receivers use it, with DKIM and DMARC, to tell your mail from forgeries. Without SPF, mail in your name is easier to forge, and your own mail lands in spam more often. A domain that does not send mail can be forged too, and nobody watches it.

How to fix it

List every service that sends mail as the domain: your mail host, the web application, newsletter and ticket tools, the invoicing system. Each provider documents the include: or the addresses to use. Then publish one TXT record at the domain:

example.com.  TXT  "v=spf1 mx include:_spf.mailprovider.example ~all"
  • mx allows the mail servers of the domain; ip4:203.0.113.10 allows one address; include: pulls in the record of a provider.
  • End with ~all (soft fail) while you check that nothing legitimate is missing, then change to -all (fail).
  • Stay within 10 DNS lookups in total (include, a, mx, ptr, exists, redirect, those inside included records counted too). More make SPF fail.
  • If you already have a record, extend it; never add a second one.

For a domain that does not send mail:

example.net.  TXT  "v=spf1 -all"

Add a DMARC record with p=reject and a null MX (MX 0 .) as well; see the e-mail DNS guide.

The record is set at your DNS provider, not on the server.

How to check the fix

dig +short TXT example.com | grep spf1

There must be one line; a change can take as long as the TTL of the old answer to reach everyone. Send a test message to a mailbox at a large provider and look for spf=pass in the Authentication-Results: header.

When a warning is fine

Subdomains used only for websites usually do not need their own SPF record; the main domain does. A DMARC record with sp=reject on the main domain covers subdomains that never send mail.

Sources