NAS里 docker安装与redmine安装就不说了,比较简单,这里面主要说如何配置邮件系统其能发送邮件。
配置参数形式参照如下:
项目 | 内容 |
---|---|
SMTP_METHOD | smtp或者async_smtp (异步发送) |
SMTP_HOST | smtp.126.com |
SMTP_AUTHENTICATION | login |
SMTP_DOMAIN | smtp.126.com |
SMTP_PORT | 25 |
SMTP_USER | ****@126.com |
SMTP_PASS | login password |
SMTP_ENABLED | true |
关于email的设置:
SMTP_ENABLED: Enable mail delivery via SMTP. Defaults to
true
ifSMTP_USER
is defined, else defaults tofalse
.SMTP_DOMAIN: SMTP domain. Defaults to
www.gmail.com
SMTP_HOST: SMTP server host. Defaults to
smtp.gmail.com
SMTP_PORT: SMTP server port. Defaults to
587
.SMTP_USER: SMTP username.
SMTP_PASS: SMTP password.
SMTP_METHOD: SMTP delivery method. Possible values:
smtp
,async_smtp
. Defaults tosmtp
.SMTP_OPENSSL_VERIFY_MODE: SMTP openssl verification mode. Accepted values are
none
,peer
,client_once
andfail_if_no_peer_cert
. SSL certificate verification is performed by default.SMTP_STARTTLS: Enable STARTTLS. Defaults to
true
.SMTP_TLS: Enable SSL/TLS. Defaults to
false
.SMTP_AUTHENTICATION: Specify the SMTP authentication method. Defaults to
:login
ifSMTP_USER
is set.SMTP_CA_ENABLED: Enable custom CA certificates for SMTP email configuration. Defaults to
false
.SMTP_CA_PATH: Specify the
ca_path
parameter for SMTP email configuration. Defaults to/home/redmine/data/certs
.SMTP_CA_FILE: Specify the
ca_file
parameter for SMTP email configuration. Defaults to/home/redmine/data/certs/ca.crt
.
参考链接: