gitlab 腾讯企业邮箱配置

vi /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']="[email protected]"
gitlab_rails['smtp_password']="pass"
gitlab_rails['smtp_domain']="doamin.com"
gitlab_rails['smtp_authentication']="login"
gitlab_rails['smtp_enable_starttls_auto']=true
gitlab_rails['smtp_tls']=true

gitlab_rails['gitlab_email_from']="[email protected]"
重载配置

gitlab-ctl reconfigure

调用控制台

gitlab-rails console

ActionMailer::Base.delivery_method

ActionMailer::Base.smtp_settings

测试邮件

Notify.test_email('[email protected]', 'Message Subject', 'Message Body').deliver_now

最重要的一点,就是要重启gitlab-ctl restart


你可能感兴趣的:(git)