remember_broken_tls
Since: Version 2024.11.08-d383b033
The functionality described in this section requires version 2024.11.08-d383b033 of KumoMTA, or a more recent version.
While many destination sites on the internet advertise support for STARTTLS, a subset of them are problematic for reasons that can include:
- Running ancient crypto software with deprecated or otherwise incompatible cipher suites
- Misconfigured CN
- Expired certificates
In Opportunistic TLS mode, a broken STARTTLS handshake fails that
connection attempt, and every subsequent attempt to the same host repeats
the same failed handshake. If every candidate host for a site has broken
TLS, we end up failing to connect to any of them.
That is where this option comes into play: when it is set to a duration
string, that will cause kumod to remember that a given site has broken
TLS for up to that duration.
Subsequent connection attempts will use that information to influence how
it should proceed; for Opportunistic modes we will treat the session
as if STARTTLS was not advertised. For Required modes we will log
an error that mentions that remember_broken_tls is set.
Note
This information is cached locally in the memory of a given kumod process. It is not shared with other nodes in a cluster, and it will be forgotten when the node is restarted.