GitLab email setup: sending via another mail server

el_quick picture el_quick · May 21, 2012 · Viewed 50.4k times · Source

By default gitlab has the next configuration in gitlab.yml :

email:
  from: [email protected]
  host: gitlabhq.com

but, I need to specify other variables (host, port, user, password, etc) to use another mail server.

How I do that?

Answer

Girish KG picture Girish KG · May 23, 2013

Now it is totally different in Gitlab 5.2+.

It is in "/home/git/gitlab/config/initializers/smtp_settings.rb.sample" and we just need to follow the instructions in that.