<domain>
The second bound of the range. The values are the same — tlsv1, tlsv1.1, tlsv1.2, tlsv1.3; there is no default, that is, the upper bound is unlimited and in practice equals tlsv1.3.
The line is rarely needed and almost always as a workaround for someone else’s bug. The normal case is to negotiate the newest version both sides understand; limiting from above makes sense when a receiver announces tlsv1.3 and breaks on it.
One known consequence of lowering the ceiling: reuse-ssl-session does not work on tlsv1.3. By lowering the ceiling to tlsv1.2, you enable session reuse — but that is not a reason to do it, just a side effect worth knowing about.
Set it only for a reason. There are exactly two reasons:
| Value | When |
|---|---|
| not set (default) | always |
| tlsv1.2 | the receiver announces tlsv1.3 and breaks on it |
| tlsv1.2 for reuse-ssl-session | only one such receiver is known — Gmail; the gain is small, the version is lower |
And record the reason next to it, as a comment: there will be nobody to remove the line in a year if it is unclear why it is there.
# a workaround for a specific receiver's bug, with the reason next to it <domain broken.example.com> use-starttls yes smtp-tls-max-version tlsv1.2 # announces 1.3 and breaks on it, checked 28.08</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.108.5
1 relation
pmtaacctfind --output csv[rcpt,dlvTlsProtocol] /var/log/pmta/acct-*.csv | head -20
3 articles
◇Submission over HTTPS on its own listener, modeled on SparkPostA separate entry point: its own listener with a certificate, its own keys and a reserved source name through which the usual submission settings apply to such mail.◇The receiver declares an encryption requirement on its websiteThe node fetches the recipient domain’s policy over HTTPS and, if it is in enforce mode, delivers only when the MX matches, the connection is encrypted and the certificate is verified.◇The receiver declares an encryption requirement in its DNS zoneThe node looks at the recipient domain’s DANE records and, if STARTTLS is required, sends only over an encrypted channel with a certificate verified by fingerprint.