Hi
GitLab won’t send email, here is what I’ve done:
1-Set config file
2-reconfigure
3-send test mail
FYI:
1-check admin section under Background Jobs, there is no pending or in progress jobs.
2-smtp server work correctly with other services.
Any recommendation?
Thanks
1-Config file:
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “10.10.10.10”
gitlab_rails[‘smtp_port’] = 465
gitlab_rails[‘smtp_user_name’] = “admin@mydomain.com”
gitlab_rails[‘smtp_password’] = “mypassword”
gitlab_rails[‘smtp_domain’] = “mydomail.com”
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_tls’] = false
gitlab_rails[‘smtp_openssl_verify_mode’] = ‘none’
gitlab_rails[‘smtp_enable_starttls_auto’] = false
gitlab_rails[‘smtp_ssl’] = false
gitlab_rails[‘smtp_force_ssl’] = false
2-reconfigured:
gitlab-ctl reconfigure
3-send test mail:
gitlab-rails console
Notify.test_email(‘user1@mydomain.com’, ‘Message Subject’, ‘Message Body’).deliver_now
Loading production environment (Rails 6.0.2)
irb(main):001:0> Notify.test_email(‘user1@mydomain.com’, ‘Message Subject’, ‘Message Body’).deliver_now
Notify#test_email: processed outbound mail in 1.2ms
Delivered mail 5e639b0176f62_1b193fba6a8cf9b09563b@vgit.mail (27.6ms)
Date: Sat, 07 Mar 2020 16:30:49 +0330
From: GitLab admin@mydomain.com
Reply-To: GitLab admin@mydomain.com
Message-ID: 5e639b0176f62_1b193fba6a8cf9b09563b@vgit.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
Message Body
=> #<Mail::Message:70069457461040, Multipart: false, Headers: <Date: Sat, 07 Mar 2020 16:30:49 +0330>, <From: GitLab admin@mydomain.com>, <Reply-To: GitLab admin@mydomain.com>, <To: user1@mydomain.com>, <Message-ID: 5e639b0176f62_1b193fba6a8cf9b09563b@vgit.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>>
irb(main):002:0>