Smtp setting for service "mail.ru"

Hello! I`m setting smtp on

gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “smtp.mail.ru
gitlab_rails[‘smtp_port’] = 465
gitlab_rails[‘smtp_user_name’] = “gitlab@vapeagency.pro”
gitlab_rails[‘smtp_password’] = “password”
gitlab_rails[‘smtp_domain’] = “vapeagency.pro”
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = true
gitlab_rails[‘smtp_openssl_verify_mode’] = ‘peer’
gitlab_rails[‘smtp_tls’] = true

mail.ru settings - Список серверов почты IMAP, SMTP и POP3 для настройки почтового клиента

and mail not working, and i heve error:

irb(main):002:0> Notify.test_email(‘nottrollman@ya.ru’, ‘Message Subject’, ‘Message Body’).deliver_now

Notify#test_email: processed outbound mail in 0.7ms

Sent mail to nottrollman@ya.ru (60210.2ms)
Date: Sat, 04 Feb 2017 10:55:03 +0000
From: VapeAgency Gitlab gitlab@vapeagency.pro
Reply-To: VapeAgency Gitlab gitlab@vapeagency.pro
To: nottrollman@ya.ru
Message-ID: 5895b307b2dae_7fb53fb7ef6db12c9991c@Gitlab-va.mail
Subject: Message Subject
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit

Message Body

Net::ReadTimeout: Net::ReadTimeout
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:158:in rbuf_fill' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:136:in readuntil’
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:146:in readline' from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:946: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:956: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.6.4/lib/mail/network/delivery_methods/smtp.rb:113:in deliver!' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2149:in do_delivery’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:237:in block in deliver' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.7.1/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.7.1/lib/active_support/notifications.rb:164:in block in instrument' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in instrument’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in instrument' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.7.1/lib/action_mailer/base.rb:541:in deliver_mail’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:237:in deliver' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionmailer-4.2.7.1/lib/action_mailer/message_delivery.rb:85:in deliver_now’
from (irb):2
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:110:in start' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:9:in start’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:68:in console' from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in run_command!’
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:9:in require’
from bin/rails:9:in `’
irb(main):003:0>

How i can fix this? :frowning:

I am having the same issue, have you fix it? Really thanks! @nottrollman

I am also facing the same issue after migration from onprem -AWS cloud , can you please let me know if u have any solution.

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.mail.ru"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "gitlab@your-domain.com"
gitlab_rails['smtp_password'] = "pass"
gitlab_rails['smtp_domain'] = "your-domain.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'

Thats working.

 gitlab_rails['smtp_enable'] = true
 gitlab_rails['smtp_address'] = "smtp.mail.ru"
 gitlab_rails['smtp_port'] = 465
 gitlab_rails['smtp_user_name'] = "login@domain.ru"
 gitlab_rails['smtp_password'] = "pass"
 gitlab_rails['smtp_domain'] = "domain.ru"
 gitlab_rails['smtp_authentication'] = "login"
 gitlab_rails['gitlab_email_from'] = '"login@domain.ru'
 gitlab_rails['smtp_tls'] = true
 gitlab_rails['smtp_openssl_verify_mode'] = "peer"