Skip to content

Instantly share code, notes, and snippets.

@hutusi
Last active December 25, 2015 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hutusi/6950294 to your computer and use it in GitHub Desktop.
Save hutusi/6950294 to your computer and use it in GitHub Desktop.
GitLab 6.1 email (smtp) configuration.
# To enable smtp email delivery for your GitLab instance do next:
# 1. Change config/environments/production.rb to use smtp
# config.action_mailer.delivery_method = :smtp
# 2. Rename this file (config/initializers/smtp_settings.rb) to smtp_settings.rb
# 3. Edit settings inside this file
# 4. Restart GitLab instance
#
if Gitlab::Application.config.action_mailer.delivery_method == :smtp
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
user_name: "yourname@gmail.com",
password: "yourpassword",
domain: "gmail.com",
authentication: :plain,
enable_starttls_auto: true
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment