The result of an SPF check (RFC 7208).
Fields:
:result::pass,:fail,:softfail,:neutral,:none,:temperroror:permerror:reason: why, when no mechanism decided it. See the README:domain: the domain whose record was checked: theMAIL FROMdomain, or the HELO name for a bounce:mail_from: the sender checked,postmaster@<helo>for a bounce:helo: the HELO name:identity::mailfrom, or:helowhenMAIL FROMwas empty:ip: the client IP, as a string:mechanism: the term that decided the result, such as"-all"or"include:_spf.example.com":explanation: theexp=text, on a fail:trace: each{domain, record}evaluated, in order, throughincludeandredirect:warnings: such as:ptr_used
Summary
Types
@type t() :: %MailAuth.SPF.Result{ domain: String.t() | nil, explanation: String.t() | nil, helo: String.t() | nil, identity: :mailfrom | :helo | nil, ip: String.t() | nil, mail_from: String.t() | nil, mechanism: String.t() | nil, reason: atom() | nil, result: :pass | :fail | :softfail | :neutral | :none | :temperror | :permerror, trace: [{String.t(), String.t()}], warnings: [atom()] }