Karta. Domains. Health. DMARC
(Karta v1.0.0)
The DMARC check of a domain (Karta.Domains.Health): the policy at
_dmarc.<domain>, or, when the domain has none, at its organisational
domain (Karta.PublicSuffix, RFC 7489 §6.6.3), where sp= applies
before p=.
- No record:
:fail(large mailbox providers expect one from bulk senders); several::fail(receivers ignore them); one without a validv=DMARC1andp=::fail. p=none::warn(receivers deliver mail that fails); the fix says whether Karta's mail is aligned, so whetherquarantineis safe.p=quarantineorp=reject::passwhen Karta's mail is aligned,:failwhen it is not (receivers would act on it).pctbelow 100 and a missingrua::warn.
Karta's mail is aligned when the domain has an active DKIM key whose
record is published (Karta signs with the author's domain), or, without
KARTA_RETURN_PATH_DOMAIN, when SPF authorises every sending address
(the envelope sender is then at the domain). A lookup that fails ends
the check without a result.
Summary
Functions
Runs the check. input as Karta.Domains.Health.run/2 builds it (after SPF and DKIM).
True when the outcome shows a policy of quarantine or reject for all
mail (no pct below 100), as BIMI requires.
Functions
@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()
Runs the check. input as Karta.Domains.Health.run/2 builds it (after SPF and DKIM).
@spec enforced?(Karta.Domains.Health.outcome() | nil) :: boolean()
True when the outcome shows a policy of quarantine or reject for all
mail (no pct below 100), as BIMI requires.