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-sts TXT record: :missing; an invalid one: :fail.
  • The policy at https://mta-sts.<domain>/.well-known/mta-sts.txt, fetched with Karta.MTASTS.Fetcher (not cached, never used for delivery) and parsed with Karta.MTASTS.Policy: one that cannot be fetched or is invalid is :fail; mode enforce :pass, testing and none :warn.
  • Each MX host of the domain must match the policy's mx lines, 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

check(input, dns)

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

Runs the check. input as Karta.Domains.Health.run/2 builds it.