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 valid v=DMARC1 and p=: :fail.
  • p=none: :warn (receivers deliver mail that fails); the fix says whether Karta's mail is aligned, so whether quarantine is safe.
  • p=quarantine or p=reject: :pass when Karta's mail is aligned, :fail when it is not (receivers would act on it).
  • pct below 100 and a missing rua: :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

check(input, dns)

@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()

Runs the check. input as Karta.Domains.Health.run/2 builds it (after SPF and DKIM).

enforced?(arg1)

@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.