SPF change checker
Compare two SPF records before editing DNS. Review added terms, removed terms and their order. Evaluate includes at their source separately.
Your input stays in this tab
Press Try the example, or paste your own input and press Show result
SPF record syntax
An SPF record is one TXT record on the domain. It starts with v=spf1, lists the servers that may send mail for the domain and ends with an all rule. Publish only one SPF record per domain.
v=spf1 include:sender.example ip4:192.0.2.1 -all SPF include
include:domain asks the receiver to check that domain’s SPF record as well. One record can hold several includes. Each include, a, mx, ptr, exists and redirect term needs a DNS lookup, and SPF allows at most 10.
Softfail vs hardfail
The all rule covers every other server. -all is fail (hardfail), ~all is softfail and ?all is neutral. A common path is to start with ~all and change to -all when the record lists every sender.