gitlab的smtp配置阿里企业邮箱

vim /etc/gitlab/gitlab.rb

添加如下配置

gitlab_rails['smtp_enable'] = true 
gitlab_rails['smtp_address'] = "smtp.mxhichina.com" 
gitlab_rails['smtp_port'] = 25 
gitlab_rails['smtp_user_name'] = "[email protected]" 
gitlab_rails['smtp_password'] = "password" 
gitlab_rails['smtp_domain'] = "smtp.mxhichina.com" 
gitlab_rails['smtp_authentication'] = "login" 
gitlab_rails['smtp_enable_starttls_auto'] = true 

发邮件返回554的错误,于是加上如下配置

gitlab_rails['gitlab_email_from'] = '[email protected]' 
user['git_user_email'] = "[email protected]"

 

转载于:https://my.oschina.net/u/2423298/blog/795396

你可能感兴趣的:(gitlab的smtp配置阿里企业邮箱)