2015-05-06 14:39:18 +00:00
|
|
|
# To enable smtp email delivery for your GitLab instance do the following:
|
|
|
|
# 1. Rename this file to smtp_settings.rb
|
|
|
|
# 2. Edit settings inside this file
|
|
|
|
# 3. Restart GitLab instance
|
|
|
|
#
|
|
|
|
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
|
|
|
|
#
|
2015-06-11 13:11:37 +00:00
|
|
|
# If you change this file in a Merge Request, please also create a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
|
2015-05-06 14:39:18 +00:00
|
|
|
|
|
|
|
if Rails.env.production?
|
2015-11-25 16:18:44 +00:00
|
|
|
Rails.application.config.action_mailer.delivery_method = :smtp
|
2015-05-06 14:39:18 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
|
|
|
|
}
|
|
|
|
end
|