<domain>set by the Hub
The line allows the node to use the STARTTLS extension when the receiver offers it. The default is true, that is, encryption already works, and this line usually needs to be touched not to turn it on but to understand why it is off.
This is a permission, not a requirement. The receiver may not offer STARTTLS, or the negotiation may fail — and then the message will go out in plain text. Insisting on encryption is the job of the neighboring line require-starttls.
Almost all other TLS settings of this block depend on it: protocol versions, cipher sets, certificate verification, DANE and MTA-STS. By turning it off, you turn them all off at once.
The default is already right. The meaningful cases for turning it off are few:
| Value | When |
|---|---|
| yes (default) | always |
| no | the receiver advertises STARTTLS and then fails on it — a rare but real behavior of old servers |
Turn it off only for a specific receiver, in its block, not in <domain *>. And only after the log shows that negotiation really fails.
# encryption on and mandatory — this is how the Hub's policy template writes it <domain $mailru> use-starttls yes require-starttls yes </domain>
what people get wrong and how it ends2 mistakes▶
§ 3.3.10.108.2
our experience
2 relations
use-mta-sts<domain>The receiver’s policy requires an encrypted connection: without one the verification is bound to fail. § 3.3.10.108.4smtp-tls-max-version<domain>Version settings make sense only with encryption enabled. § 3.3.10.108.12smtp-client-certificate<domain>The client certificate is presented during the encrypted negotiation and plays no part without it. § 3.3.10.108.13smtp-tls-ca-file<domain>A certificate chain can be verified only on an encrypted connection. § 3.3.10.108.14smtp-tls-ciphers<domain>The cipher set is negotiated during encryption and does not apply without it. § 3.3.10.108.15smtp-tls-v1.3-ciphersuites<domain>The version 1.3 cipher set is negotiated during encryption and does not apply without it. § 3.3.10.108.16
pmtaacctfind --output csv[rcpt,dsnStatus,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.