Skip to content

Instantly share code, notes, and snippets.

@duyet
Forked from xavierjurado/gist:3138813
Last active August 29, 2015 14:20
Show Gist options
  • Save duyet/9b88654b2d196b3c131c to your computer and use it in GitHub Desktop.
Save duyet/9b88654b2d196b3c131c to your computer and use it in GitHub Desktop.

Gitlab Gmail configuration

In Gitlab 2.6 you must edit the following files in order to send messages through a Gmail account (also applicable to Google Apps accounts).

config/environments/production.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'gmail.com',
  :user_name            => '[email protected]',
  :password             => 'password',
  :authentication       =>  :plain,
  :enable_starttls_auto => true
}
…

config/gitlab.yml

# Gitlab application config file
# Email used for notification
# about new issues, comments
email:
 from: [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment