Karta. Domains. Health. MTASTS
(Karta v1.0.0)
The MTA-STS check of a domain (Karta.Domains.Health): whether senders
must use TLS to deliver to its mail servers (RFC 8461).
- No
_mta-stsTXT record::missing; an invalid one::fail. - The policy at
https://mta-sts.<domain>/.well-known/mta-sts.txt, fetched withKarta.MTASTS.Fetcher(not cached, never used for delivery) and parsed withKarta.MTASTS.Policy: one that cannot be fetched or is invalid is:fail; modeenforce:pass,testingandnone:warn. - Each MX host of the domain must match the policy's
mxlines, or senders that enforce it refuse to deliver there::fail. - When Karta serves the domain's policy (
Karta.MTASTS.Hosting), the record must announce that policy's id, or senders that know an earlier policy keep it::warn, with the record to publish; without a record, the record to publish.
Options of the fetch come from input.mta_sts (:port, :cacerts,
:allowed_networks, :timeout, default 10 seconds). A DNS lookup that
fails ends the check without a result.
Summary
Functions
Runs the check. input as Karta.Domains.Health.run/2 builds it.
Functions
@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()
Runs the check. input as Karta.Domains.Health.run/2 builds it.