gitlab 163邮箱设置

版本是8.13

修改 /etc/gitlab/gitlab.rb 文件

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'] = "xx"  密码为获取到的一个随机码,设置smtp时网易会给,不是邮箱密码

gitlab_rails['smtp_domain'] = "163.com"

gitlab_rails['smtp_authentication'] = "login"

gitlab_rails['smtp_enable_starttls_auto'] = true

gitlab_rails['smtp_tls'] = false

# gitlab_rails['smtp_openssl_verify_mode'] = 'none' # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html

# gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"

# gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"

##修改gitlab配置的发信人

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

user["git_user_email"] = "[email protected]"

你可能感兴趣的:(gitlab 163邮箱设置)