SPF diagnostic examples
SPF lists the servers allowed to send mail with your domain as the envelope sender. It fails quietly: a second record, an eleventh DNS lookup or a term after all, and receivers treat the record as broken or incomplete.
0 DNS lookups in this record (limit 10 in total).
| Term | What it does | Lookup |
|---|---|---|
v=spf1 | Marks this TXT record as SPF version 1. | No |
-all | Everything not matched earlier gets fail (the strictest ending). | No |
Examples published in the lab
One name, two SPF records
Specimen FX-03 publishes both of these at the same name. Each is valid on its own; together they make SPF return a permanent error, so neither authorises anything:
- TXTmalformed.fx.sendaviolabs.com
v=spf1 include:_spf.google.com ~all - TXTmalformed.fx.sendaviolabs.com
v=spf1 ip4:192.0.2.1 -all
The fix is one record that merges both: every mechanism from each, and one all at the end.
No SPF at all
Specimen FX-02 publishes only a marker TXT record. Receivers get no answer about who may send, and DMARC can then pass only through DKIM.
Three services in one record
Specimen FX-08 authorises SendGrid, Mailgun and Amazon SES. Each include costs at least one lookup and each service's own record adds more, so records like this approach the limit of ten faster than they appear to.
Rules worth remembering
- One SPF record per name. Add services to the existing record; never publish a second one.
- At most ten DNS lookups in total, counting the includes' own lookups. ip4 and ip6 cost none.
- End with -all or ~all. With DMARC enforcing, ~all is a common and safe choice.
- SPF checks the envelope sender, not the From address people see. DMARC is what ties the two together.