Bookmarks

TLS-RPT — SMTP TLS Reporting

A mechanism by which sending mail servers report to a domain the TLS failures they encountered when delivering mail to its servers.

Also: TLS-RPT reports, SMTP TLS reports

checked 9 Nov

All terms

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:

dns
_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

FieldMeaning
total-successful-session-counthow many sessions established TLS according to the policy
total-failure-session-counthow many sessions ended in an error
result-typethe cause of the failure, for example certificate-expired, certificate-not-trusted or starttls-not-supported
sending-mta-ipthe 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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

In depth in the references

where the topic is covered in detail