我在同一台机器上运行 smtp 服务器和 gitlab,我确信运行 25 端口的 smtp 服务器工作正常,因为我在运行此命令后收到邮件 --echo "This is the body of the email" | mail -s "这是主题行" user@example.com. 我在 /etc/gitlab/gitlab.rb 中像这样配置 gitlab
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "localhost"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "myRootName"
gitlab_rails['smtp_password'] = "myRootPassword"
#gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = false
有人可以帮忙吗?谢谢!