Tag/version of Container Images
maxking/mailman-web:0.5.*
Boolean configuration parameters such as EMAIL_USE_TLS and EMAIL_USE_SSL cannot be explicitly set to False.
Since the values are read from environment variables (SMTP_USE_TLS and SMTP_USE_SSL) in settings.py, they are always of type string.
EMAIL_USE_TLS = os.environ.get('SMTP_USE_TLS', False)
This causes the parameters to be ineffective because the expression if EMAIL_USE_TLS always evaluates to True as soon as a value is assigned, even if it is the string “False”. The text is irrelevant.
This means that TLS encryption is attempted even if the parameter is set to False in your environment, which is somewhat confusing.
The problem does not occur if the configuration parameters are not set, because then the default value applies.
Tag/version of Container Images
maxking/mailman-web:0.5.*
Boolean configuration parameters such as
EMAIL_USE_TLSandEMAIL_USE_SSLcannot be explicitly set toFalse.Since the values are read from environment variables (
SMTP_USE_TLSandSMTP_USE_SSL) insettings.py, they are always of type string.EMAIL_USE_TLS = os.environ.get('SMTP_USE_TLS', False)This causes the parameters to be ineffective because the expression
if EMAIL_USE_TLSalways evaluates toTrueas soon as a value is assigned, even if it is the string“False”. The text is irrelevant.This means that TLS encryption is attempted even if the parameter is set to
Falsein your environment, which is somewhat confusing.The problem does not occur if the configuration parameters are not set, because then the default value applies.