Karta.MTASTS.Probe (Karta v1.0.0)

Checks that an MX host accepts mail over TLS the way an MTA-STS policy in enforce mode requires (RFC 8461 §4.2): Karta connects to it on port 25, says EHLO, and asks for STARTTLS; the server must offer it and present a certificate that chains to a trusted root (the operating system's, or :cacerts) and is valid for the host's name (RFC 6125, wildcards allowed). Then Karta says QUIT: no mail is sent.

The host is resolved by Karta.NetGuard (no private or special addresses); its addresses are tried in order until one accepts the connection. Each step must answer within :timeout (default 15 seconds).

Options: :port (default 25), :helo (the name in EHLO, by default Karta's outbound host name), :cacerts, :timeout, and :dns, :allowed_networks for Karta.NetGuard.

Summary

Functions

:ok, or {:error, reason} in words. See the module doc.

Functions

check(host, opts \\ [])

@spec check(String.t(), keyword()) :: :ok | {:error, String.t()}

:ok, or {:error, reason} in words. See the module doc.