gitlab发送邮件

时间:2021-07-10 22:41:04

1.修改配置文件,建议使用企业邮箱

#vim /etc/gitlab/gitlab.rb
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "wangf@test.com"
gitlab_rails['smtp_password'] = "password"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
gitlab_rails['gitlab_email_from'] = 'wangf@test.com' //gitlab发送人

2.重新加载配置

gitlab-ctl reconfigure

3.验证,gitlab登录页面忘记密码输入你的邮箱

gitlab发送邮件