gitlab 邮件服务器配置
一、修改 /etc/gitlab/gitlab.rb 文件,添加邮件服务器信息
SMTP settings
例如163 邮件服务器
external_url 'http://你的IP地址或域名'
################################
# GitLab email server settings #
################################gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.163.com”
gitlab_rails[‘smtp_port’] = 25
gitlab_rails[‘smtp_user_name’] = “xxx@163.com”
gitlab_rails[‘smtp_password’] = “xxx”
gitlab_rails[‘smtp_domain’] = “163.com”
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = truegitlab_rails[‘gitlab_email_from’] = “xxx@163.com”
user[“git_user_email”] = “xxx@163.com”
二、运行 gitlab-ctl reconfigure 命令使配置生效
gitlab-ctl reconfigure
注意新机子需要先安装sendmail