In omnibus installation there is no way to set ssl option for smtp mailer (some SMTP server's are configured only for ssl - not TLS).
Putting "gitlab_rails['smtp_ssl'] = true" option in /etc/gitlab.rb shoul place corresponding "ssl: true" line to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb file while gitlab ctl reconfigure.
Please not that, putting "ssl: true" manually to /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb file makes gitlab smpt mailer work, but the change will be overwritten by next reconfigure.
# This file is managed by gitlab-ctl. Manual changes will be# erased! To change the contents below, edit /etc/gitlab/gitlab.rb# and run `sudo gitlab-ctl reconfigure`.if Rails.env.production? Gitlab::Application.config.action_mailer.delivery_method = :smtp ActionMailer::Base.smtp_settings = { authentication: :login, address: "....", port: 465, user_name: "gitlab@...", password: "....", domain: "....", enable_starttls_auto: false, tls: false, openssl_verify_mode: "none", ssl: true, ca_file: "/opt/gitlab/embedded/ssl/certs/cacert.pem", }end
omnibus-gitlab is following what is added as an example in GitLab. That setting doesn't exist in smtp_settings.sample file, can you create a MR to add it there? After that I can add the setting to make that configurable.
I have same problem, please fix this bug.
set the " gitlab_rails['smtp_ssl'] = true" in /etc/gitlab/gitlab.rb, and running gitlab-ctl reconfigure .
but no "ssl: true" in /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb file.