Mechanism
An SPF directive that matches email senders, like ip4:, include:, mx:, or a:.
Mechanisms define who can send. ip4:/ip6: match IP addresses. include: references another SPF record. mx: matches the domain's mail servers. a: matches the domain's A record. Each mechanism can have a qualifier prefix (+, -, ~, ?).
Exampleinclude:_spf.google.com, ip4:192.0.2.0/24, mx
Qualifier
A prefix on SPF mechanisms indicating how to handle matches: + (pass), - (fail), ~ (softfail), ? (neutral).
+ means pass (this is the default if no qualifier). - means hard fail (reject). ~ means soft fail (suspicious but accept). ? means neutral (no opinion). The final "all" mechanism determines behavior for unmatched senders.
Example-all (reject), ~all (softfail), +ip4:... (allow)
Include
SPF mechanism that references another domain's SPF record.
Include recursively checks another domain's SPF. This is how you authorize third-party services—include their SPF domain. Each include counts toward the 10 lookup limit. Nested includes (the included record also has includes) can quickly exhaust the limit.
Exampleinclude:_spf.google.com, include:spf.protection.outlook.com