When a message cannot establish a secure connection, the recipient usually never sees it: the message simply does not arrive. TLS-RPT solves this: the domain publishes an address, and sending mail servers send a daily summary of how many connections succeeded and why the others failed.
How to enable it
A single TXT record at the name _smtp._tls is enough:
_smtp._tls.example.com. IN TXT "v=TLSRPTv1; rua=mailto:tlsrpt@example.com"In rua you can give mailto: or https: addresses, several separated by commas. A report is a JSON file compressed with gzip; it covers one UTC day and arrives a few hours late.
What is inside a report
| Field | Meaning |
|---|---|
total-successful-session-count | how many sessions established TLS according to the policy |
total-failure-session-count | how many sessions ended in an error |
result-type | the cause of the failure, for example certificate-expired, certificate-not-trusted or starttls-not-supported |
sending-mta-ip | the address of the sending server that hit the failure |
Reports are especially useful when you enable MTA-STS: in testing mode, senders deliver mail and report errors at the same time, so you can fix the certificate or the MX list before switching to enforce. The format and procedure are described in RFC 8460 (September 2018).
Sources
the term is written from these pagesVerified 9 Nov