<domain>set by the Hub
The line makes sense only with use-starttls enabled. It answers the question of what to do when encryption could not be established: the receiver did not offer it or the negotiation failed.
The default is false, that is, send in plain text. This is a reasonable default for the world at large and a wrong one for large receivers: they always have STARTTLS, and its absence means not “an old server” but something wrong with the connection.
true is a decision not to deliver. The node drops the connection, the message stays in the queue and goes out on the regular retry schedule. If the receiver has no encryption at all, the message will eventually bounce on expiry.
The difference between the values is the difference between two kinds of losses:
| Value | What you lose | For whom |
|---|---|---|
| no (default) | confidentiality of some messages | everyone except large receivers |
| yes | delivery to those without encryption | large receivers, where STARTTLS is always present |
The rule is simple: mandatory encryption is enabled where the absence of encryption is a sign of a malfunction, not a trait of the receiver.
# mandatory encryption — only where it is certain to exist <domain $mailru> use-starttls yes require-starttls yes</domain>
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.10.108.2
2 relations
pmta show queues | 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.