SMTP_TLS=true cause msmtp config error
terryzwt opened this issue · 0 comments
terryzwt commented
Here is the example env for smtp config.
- SMTP_AUTHENTICATION=login
- SMTP_HOST=xx
- SMTP_PORT=465
#- SMTP_DOMAIN=
- SMTP_MAILDOMAIN=examle.com
- SMTP_USER=no-reply@example.com
- SMTP_PASS=password
- SMTP_TLS=true
- SMTP_STARTTLS=FALSE
This will generated config like this:
### Automatically generated on container start. See documentation on how to set!
account default
host example.com
port 465
domain docker
maildomain example.com
auth login
user no-reply@example.com
password password
tls ON
tls_starttls off
tls_certcheck off
And ERROR:
said into stderr: "msmtp: /etc/msmtprc: line 10: invalid argument ON for command tls"
If I manually change the tls ON
to tls on
, it works fine.