2
我知道,要在gitlab 7.1.1中使用smtp,你需要下面的配置;在:还有什么需要使用gitlab 7.1.1外部smtp电子邮件设置?
/home/git/gitlab/config/gitlab.yml
编辑下面一行
## Email settings
# Email address used in the "From" field in mails sent by GitLab
email_from: [email protected]
并将其重命名
/home/git/gitlab/config/initializers/smtp_settings.rb.sample
到
/home/git/gitlab/config/initializers/smtp_settings.rb
和编辑以下设置:
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
port: 456,
user_name: "smtp",
password: "123456",
domain: "gitlab.company.com",
authentication: :login,
enable_starttls_auto: true
}
并重新启动GitLab实例。
为了在GitLab 7.x中使用基于smtp的电子邮件,是否还有其他要点需要注意?