SPF (Shortest Path First)
Cheat sheet · https://pcornel.dk/topic.php?topic=4780
Answer
SPF lists which servers may send mail for a domain in a DNS TXT record, like v=spf1 include:_spf.google.com -all. Receivers check the envelope sender's domain against it.
Remember
- Only one SPF record per domain.
- Stay under 10 DNS lookups.
- End with -all (fail) or ~all (softfail).
First checks
dig TXT <domain> +short | grep v=spf1— SPF record- SPF lookup count (≤ 10) — limit
- SPF result in message headers (Received-SPF) — evaluation
Verify in this order
receiving server → SPF record → sender IP allowed?
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4780