Setting up Email on GitLab Server

Hi,

I’ve read the smtp setup page but still can’t get the emails to work. These are the settings I’ve been given by my email provider:

“Username: git@XXX.XXX
Password: Use the email account’s password.
Incoming Server: XXX
Encryption : SSL
IMAP Port: 993
POP3 Port: 995
Outgoing Server: XXX
Encryption : SSL
SMTP Port: 290”

So I’ve tried the following config:

gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “XXX”
gitlab_rails[‘smtp_port’] = 290
gitlab_rails[‘smtp_user_name’] = “git@XXX.XXX”
gitlab_rails[‘smtp_password’] = “XXX”
gitlab_rails[‘smtp_domain’] = “git.XXX.XXX”
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = true
gitlab_rails[‘smtp_openssl_verify_mode’] = ‘peer’

I don’t know if the above is correct, I don’t really know what some of the settings use. I logged into the email account using Mozilla Thunderbird and can send emails from that email client using the settings I have been given.

I’ve tried console and sent an email and get the following which I have no idea what it means:

irb(main):001:0> Notify.test_email(‘XXX@XXX.com’, ‘Test’, ‘Test’).deliver_now

Notify#test_email: processed outbound mail in 202.3ms

Sent mail to XXX@XXX.com (60081.9ms)
Date: Sun, 21 Jan 2018 17:03:16 +0000
From: GitLab gitlab@000.00.000.000
Reply-To: GitLab noreply@000.00.000.000
To: XXX@XXX.com
Message-ID: 5a64c7d476f18_2adc3f9646fdb0d0300be@xxx-git.mail
Subject: Test
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All

Test

Net::ReadTimeout: Net::ReadTimeout
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:176:in rbuf_fill' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:154:in readuntil’
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:164:in readline' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:955:in recv_response’
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in block in do_start' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:965:in critical’
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in do_start' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:521:in start’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:109:in start_smtp_session' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:100:in deliver!’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:2160:in do_delivery' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in block in deliver’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:543:in block in deliver_mail' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in block in instrument’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in instrument' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in instrument’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:541:in deliver_mail' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.7.0/lib/mail/message.rb:260:in deliver’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.10/lib/action_mailer/message_delivery.rb:85:in deliver_now' from (irb):1 from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in start’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in start' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in console’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in <top (required)>’
from bin/rails:9:in require' from bin/rails:9:in

Any ideas?

PS: I’ve replaced text with X’s where I can’t share info, or 0s where an IP address needs to be hidden.