gitlab发送邮件

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登录页面忘记密码输入你的邮箱

posted @ 2018-05-22 15:20  你很棒  阅读(5128)  评论(0编辑  收藏  举报