TLS-RPT: hearing about failed encrypted delivery
Updated
When a sender tries to deliver mail to your domain with encryption and it fails, you normally never find out. TLS-RPT (RFC 8460) fixes that: you publish an address, and large senders send you a daily summary of what went wrong.
The record
It is a TXT record at _smtp._tls. The rua part is where reports go: a mailto: address, an https: address, or several separated by commas.
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"
What the reports contain
- A small JSON file, usually compressed, one per sender per day
- How many connections succeeded, and how many failed
- For each failure, the reason: an expired certificate, a name that does not match, a sender that could not fetch the MTA-STS policy, or a DANE problem
Why you want it
It is the safety net for MTA-STS and DANE. In testing mode the reports show which mail servers or certificates would have broken delivery, before anything is refused. It is optional, costs nothing to publish, and needs a mailbox (or a web address) that can receive the reports.
Check a domain's TLS-RPT record
Related
- MTA-STS: making senders use encrypted deliveryWhat MTA-STS is, how its record and policy file work, and why testing mode comes before enforce.
- DANE: pinning a mail server's certificate in DNSWhat a DANE (TLSA) record says, why it only works with DNSSEC, and which record form mail senders use.
- DMARC: policy and reportsHow DMARC ties SPF and DKIM to the visible From address, tells receivers what to do with failures, and sends you reports.