What is the difference between ~all and -all in SPF?
`~all` (SoftFail) marks unauthorized mail as suspicious without immediately bouncing forwarded mail, whereas `-all` (HardFail) instructs strict receivers to reject unauthorized mail outright.
Every SPF qualifier, mechanism, modifier, and DNS lookup cost summarized on one page — plus a live interactive parser.
| Host / Name | Type | Value | TTL | Purpose |
|---|---|---|---|---|
ip4:<cidr> |
0 Lookups | ip4:192.0.2.0/24 |
Zero | Matches IPv4 address or CIDR block with zero DNS cost |
ip6:<cidr> |
0 Lookups | ip6:2001:db8::/32 |
Zero | Matches IPv6 address or CIDR block with zero DNS cost |
include:<domain> |
1+ Lookups | include:_spf.google.com |
1 + nested | Recursively evaluates another domain's SPF record |
a / mx |
1 Lookup | a / mx:mail.example.com |
1 each | Queries A/AAAA or MX records; avoid unless your web/MX server sends mail |
~all / -all |
0 Lookups | ~all (SoftFail) / -all (HardFail) |
Zero | Terminal catch-all mechanism; NEVER use +all |
| Mechanism | Type | Direct | Est. Total | Notes |
|---|
Capture clean Markdown and MCP-ready context with our Page2MCP Chrome Extension and AI Agent Production Workflow Kit on Gumroad.
`~all` (SoftFail) marks unauthorized mail as suspicious without immediately bouncing forwarded mail, whereas `-all` (HardFail) instructs strict receivers to reject unauthorized mail outright.
No. Multiple `v=spf1` TXT records on the same hostname cause an instant `PermError`. Merge them into one record: `v=spf1 include:a.com include:b.com ~all`.
No! Only `include`, `a`, `mx`, `ptr`, `exists`, and `redirect` count toward the 10-DNS-lookup limit.