A
A
Andrey Sergeev2015-04-25 13:14:36
SMTP
Andrey Sergeev, 2015-04-25 13:14:36

How to properly setup smtp for gitlab?

Installed gitlab on arch according to this manual.
gitlab version

System information
System:
Current User:   gitlab
Using RVM:      no
Ruby Version:   2.2.2p95
Gem Version:    2.4.5
Bundler Version:1.9.4
Rake Version:   10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:        7.10.0
Revision:       8cddc07
Directory:      /usr/share/webapps/gitlab
DB Adapter:     mysql2
URL:            http://
HTTP Clone URL: http://
SSH Clone URL:  
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        2.6.2
Repositories:   /var/lib/gitlab/repositories/
Hooks:          /usr/share/webapps/gitlab-shell/hooks/
Git:            /usr/bin/git

mail settings
/usr/share/webapps/gitlab/config/initializers/smtp_settings.rb
if Rails.env.production?                                                         
  Gitlab::Application.config.action_mailer.delivery_method = :smtp               
                                                                                 
  ActionMailer::Base.smtp_settings = {                                           
    address: "smtp.yandex.ru",                                                   
    port: 465,                                                                   
    user_name: "username",                                                        
    password: "pass",                                                       
    domain: "domain",                                                  
    authentication: :login,                                                      
    enable_starttls_auto: true,                                                  
    # openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
  }                                                                              
end

How to set up email sending?
Where can I find error logs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2015-04-25
@beeasy

Yandex has TLS on port 587, only SSL works on port 465.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question