gitlab邮件发送配置

修改gitlab.rb

$ sudo vi /etc/gitlab/gitlab.rb

Change the external_url to the address your users will type in their browser

external_url ‘http://xxhost.com’

Sending application email via SMTP

gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.163.com”
gitlab_rails[‘smtp_port’] = 25
gitlab_rails[‘smtp_user_name’] = “[email protected]
gitlab_rails[‘smtp_password’] = “xxpassword”
gitlab_rails[‘smtp_domain’] = “163.com”
gitlab_rails[‘smtp_authentication’] = :login
gitlab_rails[‘smtp_enable_starttls_auto’] = true

修改gitlab配置的发信人

gitlab_rails[‘gitlab_email_from’] = “[email protected]
user[“git_user_email”] = “[email protected]

修改完,重新配置

$ sudo gitlab-ctl reconfigure

查看日志
$ sudo gitlab-ctl tail

你可能感兴趣的:(git)