Hello,
I’m trying to configure SMTP on standalone Omnibus Gitlab.
But when I try to send an email from the gitlab-rails console
I get the following error:
irb(main):003:0> Notify.test_email('my.email@gmail.com', 'Message Subject', 'Message Body').deliver_now
Notify#test_email: processed outbound mail in 1.1ms
Sent mail to my.email@gmail.com (73.2ms)
Date: Tue, 31 Dec 2019 08:52:16 +0000
From: Gitlab <gitlab@allcare-in.com>
Reply-To: Gitlab <noreply@allcare-in.com>
To: my.email@gmail.com
Message-ID: <5e0b0c4033b98_20263fa00edd99a4493@ubuntu-1804-srv.mail>
Subject: Message Subject
Mime-Version: 1.0
Content-Type: text/
html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p>Message Body</p></body></html>
Traceback (most recent call last):
1: from (irb):3
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: wrong version number)
I saw this issue which doesn’t help me much unfortunately but when I execute the proposed diagnostic, I get that result:
ubuntuadmin@ubuntu-1804-srv:~$ /opt/gitlab/embedded/bin/openssl s_client -connect ex3.mail.ovh.net:587 -tlsextdebug < /dev/null | grep TLS
140669293283136:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:332:
Could please help me?
regards,