码迷,mamicode.com
首页 > 其他好文 > 详细

gitlab smtp设置

时间:2016-08-01 10:22:05      阅读:868      评论:0      收藏:0      [点我收藏+]

标签:

QQ exmail

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.exmail.qq.com"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "xxxx@xx.com"
gitlab_rails[‘smtp_password‘] = "password"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_ssl‘] = true
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = false

yahoo

gitlab_rails[‘gitlab_email_from‘] = ‘user@yahoo.com‘
gitlab_rails[‘gitlab_email_from‘] = ‘user@yahoo.com‘

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.mail.yahoo.com"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "user@yahoo.com"
gitlab_rails[‘smtp_password‘] = "password"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = true
gitlab_rails[‘smtp_openssl_verify_mode‘] = ‘peer‘


Gmail

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.gmail.com"
gitlab_rails[‘smtp_port‘] = 587
gitlab_rails[‘smtp_user_name‘] = "my.email@gmail.com"
gitlab_rails[‘smtp_password‘] = "my-gmail-password"
gitlab_rails[‘smtp_domain‘] = "smtp.gmail.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = false
gitlab_rails[‘smtp_openssl_verify_mode‘] = ‘peer‘ # Can be: ‘none‘, ‘peer‘, ‘client_once‘, ‘fail_if_no_peer_cert‘, see http://api.rubyonrails.org/classes/ActionMailer/Base.html

Don‘t forget to change my.email@gmail.com to your email address and my-gmail-password to your own password.

Mailgun

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.mailgun.org"
gitlab_rails[‘smtp_port‘] = 587
gitlab_rails[‘smtp_authentication‘] = "plain"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_user_name‘] = "postmaster@mg.gitlab.com"
gitlab_rails[‘smtp_password‘] = "8b6ffrmle180"
gitlab_rails[‘smtp_domain‘] = "mg.gitlab.com"


https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md

gitlab smtp设置

标签:

原文地址:http://www.cnblogs.com/ruiy/p/5724659.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!