Karta. Domains. Health. SPF
(Karta v1.0.0)
The SPF check of a domain (Karta.Domains.Health): its SPF record
(RFC 7208), evaluated for each address Karta sends from with
Karta.IPPools.SPF.evaluate/3.
- No record, or more than one:
:fail(the record to publish lists the sending addresses). - Each sending address:
:passwhen the record authorises it, otherwise:fail, said separately for IPv6 addresses, whose absence from records is the usual gap. WithKARTA_RETURN_PATH_DOMAINset, receivers check that domain's record instead for Karta's mail, so a gap here is only:warn. - A record that cannot be evaluated (
permerror, more than 10 DNS lookups)::fail; 9 or 10 lookups::warn(one moreincludebreaks it). - The qualifier of
all:-alland~allpass;?all, or noalland noredirect,:warn;+all:fail(anyone may send).
A lookup that fails (temperror) ends the check without a result.
Summary
Functions
Runs the check. input as Karta.Domains.Health.run/2 builds it.
True when the outcome shows every sending address authorised (at least one, none failing): mail from Karta with an envelope sender at the domain passes SPF.
Functions
@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()
Runs the check. input as Karta.Domains.Health.run/2 builds it.
@spec passes?(Karta.Domains.Health.outcome() | nil) :: boolean()
True when the outcome shows every sending address authorised (at least one, none failing): mail from Karta with an envelope sender at the domain passes SPF.