-
- Downloads
Add email.tlsname config option (#17849)
The existing `email.smtp_host` config option is used for two distinct purposes: it is resolved into the IP address to connect to, and used to (request via SNI and) validate the server's certificate if TLS is enabled. This new option allows specifying a different name for the second purpose. This is especially helpful, if `email.smtp_host` isn't a global FQDN, but something that resolves only locally (e.g. "localhost" to connect through the loopback interface, or some other internally routed name), that one cannot get a valid certificate for. Alternatives would of course be to specify a global FQDN as `email.smtp_host`, or to disable TLS entirely, both of which might be undesirable, depending on the SMTP server configuration.
Showing
- changelog.d/17849.feature 1 addition, 0 deletionschangelog.d/17849.feature
- docs/usage/configuration/config_documentation.md 3 additions, 1 deletiondocs/usage/configuration/config_documentation.md
- synapse/config/emailconfig.py 1 addition, 0 deletionssynapse/config/emailconfig.py
- synapse/handlers/send_email.py 60 additions, 33 deletionssynapse/handlers/send_email.py
- tests/handlers/test_send_email.py 4 additions, 4 deletionstests/handlers/test_send_email.py
Loading
Please register or sign in to comment