Karta. Domains. TLSReporting
(Karta v1.0.0)
Where a sending domain asks to receive TLS reports (RFC 8460): senders
that support TLS-RPT report the TLS connections to the domain's mail
servers that failed (and those that succeeded) once a day, to the
address in the domain's _smtp._tls TXT record.
Owners and admins set the address (update/2, the domain's
tls_rpt_rua): a mailbox (tls-reports@example.com or
mailto:tls-reports@example.com) or an https: URL that accepts the
reports. Karta gives the record to publish (record/1); it does not
receive or read the reports.
Summary
Functions
A changeset for the address form.
The TLS-RPT record to publish, %{type, name, value}, or nil without an address.
Sets or clears (an empty address) the domain's address for TLS reports.
Functions
@spec change(Karta.Domains.Domain.t(), map()) :: Ecto.Changeset.t()
A changeset for the address form.
@spec record(Karta.Domains.Domain.t()) :: %{type: String.t(), name: String.t(), value: String.t()} | nil
The TLS-RPT record to publish, %{type, name, value}, or nil without an address.
@spec update(Karta.Domains.Domain.t(), map()) :: {:ok, Karta.Domains.Domain.t()} | {:error, Ecto.Changeset.t()}
Sets or clears (an empty address) the domain's address for TLS reports.