标签:rest smt use address 维护 ttl you figure add
vi /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.server"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "smtp user"
gitlab_rails[‘smtp_password‘] = "smtp password"
gitlab_rails[‘smtp_domain‘] = "example.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_openssl_verify_mode‘] = ‘peer‘
# If your SMTP server does not like the default ‘From: gitlab@localhost‘ you
# can change the ‘From‘ with this setting.
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@example.com‘
gitlab_rails[‘gitlab_email_reply_to‘] = ‘noreply@example.com‘
gitlab_rails[‘gitlab_email_enabled‘] = true
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@recloud.cc‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.ym.163.com"
gitlab_rails[‘smtp_port‘] = 25
gitlab_rails[‘smtp_user_name‘] = "gitlab@recloud.cc"
gitlab_rails[‘smtp_password‘] = "7XNcwLeQJE"
gitlab_rails[‘smtp_domain‘] = "recloud.cc"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = false
gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl status
标签:rest smt use address 维护 ttl you figure add
原文地址:https://www.cnblogs.com/nehcdahc/p/13253386.html