2015-02-06 00:49:15 -05:00
|
|
|
# To enable smtp email delivery for your GitLab instance do the following:
|
2013-10-17 09:41:02 -04:00
|
|
|
# 1. Rename this file to smtp_settings.rb
|
|
|
|
# 2. Edit settings inside this file
|
|
|
|
# 3. Restart GitLab instance
|
2013-05-05 05:48:32 -04:00
|
|
|
#
|
2013-10-22 11:38:11 -04:00
|
|
|
if Rails.env.production?
|
2013-10-17 09:41:02 -04:00
|
|
|
Gitlab::Application.config.action_mailer.delivery_method = :smtp
|
|
|
|
|
2013-05-05 05:48:32 -04:00
|
|
|
ActionMailer::Base.smtp_settings = {
|
|
|
|
address: "email.server.com",
|
|
|
|
port: 456,
|
|
|
|
user_name: "smtp",
|
|
|
|
password: "123456",
|
|
|
|
domain: "gitlab.company.com",
|
|
|
|
authentication: :login,
|
2015-02-06 00:49:15 -05:00
|
|
|
enable_starttls_auto: true,
|
|
|
|
openssl_verify_mode: 'none'
|
2013-05-05 05:48:32 -04:00
|
|
|
}
|
|
|
|
end
|