注册QQ企业邮箱
地址
https://exmail.qq.com/signupfree?refer=intro#signup/free
注册完成后解析
编辑/etc/gitlab/gitlab.rb文件(添加到文件后即可)
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] =
gitlab_rails['smtp_user_name'] = "QQ企业邮箱账号"
gitlab_rails['smtp_password'] = “QQ企业邮箱密码"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
gitlab_rails['gitlab_email_from'] = 'QQ企业邮箱账号'
gitlab_rails['smtp_domain'] = "exmail.qq.com"
重新配置Gitlab
gitlab-ctl reconfigure
通过命令行测试邮件是否发送成功
Notify.test_email('1213242044@qq.com', 'Message Subject', 'Message Body').deliver_now