正确的配置需要额外的参数(在Debian上测试):
ca_file: “/etc/ssl/certs/ca-certificates.crt”
</code>
要么
ca_path: “/etc/ssl/certs/“
</code>
在此更改后,Redmine正确找到CA根证书。
完全工作配置:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: mail.example.com
port: 465
authentication: :plain
domain: mail.example.com
user_name: “redmine@example.com”
password: “xxxxxxxx”
tls: true
enable_starttls_auto: false
openssl_verify_mode: ‘peer’
ca_file: “/etc/ssl/certs/ca-certificates.crt”
</code>
还要确保您有更新的ca证书:
为yum,apt-get或zypper交换“package-manager”
install ca-certificates
</code>
我想知道有多少人放弃了,只是将openssl_verify_mode设置为’none’。可怕的考虑可能的中间人攻击。
的
有关Ruby ActionMailer :: Base配置的更多信息
</强>
:
ActionMailer SMTP“证书验证失败”