我已经在 docker 上安装了带有文档的 gitlab ce,一切正常,但邮件在 gitlab 中不起作用(例如,要求输入新密码)。
当我在 rail-console 中测试我的 conf 时,我收到了邮件,当 gitlab 应该发送电子邮件时,它不起作用。
对于我使用 OVH SMTP conf 的邮件,我的 smtp_settings.yml 可以自己查看:
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.
if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
authentication: :login,
address: "ssl0.ovh.net",
port: 465,
user_name: "myemail@domain.dn",
password: "mypassword",
domain: "ssl0.ovh.net",
enable_starttls_auto: true,
tls: true,
openssl_verify_mode: "peer",
ca_file: "/opt/gitlab/embedded/ssl/certs/cacert.pem",
}
end
我已经尝试过 openssl_verify_mode: "peer" 和 "none"
任何想法 ?我从大约一个月开始。