Gitlab won’t send mail


GitLab won’t send email, here is what I’ve done:
1-Set config file
3-send test mail

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?

1-Config file:

gitlab_rails[‘smtp_enable’] = true

gitlab_rails[‘smtp_address’] = “”

gitlab_rails[‘smtp_port’] = 465

gitlab_rails[‘smtp_user_name’] = “

gitlab_rails[‘smtp_password’] = “mypassword”

gitlab_rails[‘smtp_domain’] = “

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


gitlab-ctl reconfigure

3-send test mail:

gitlab-rails console

Notify.test_email(‘’, ‘Message Subject’, ‘Message Body’).deliver_now

Loading production environment (Rails 6.0.2)

irb(main):001:0> Notify.test_email(‘’, ‘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

Reply-To: GitLab


Message-ID: 5e639b0176f62_1b193fba6a8cf9b09563b@vgit.mail

Subject: Message Subject

Mime-Version: 1.0

Content-Type: text/html;


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>, <Reply-To: GitLab>, <To:>, <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>>



My ideas: is there a company policy which makes the letters be sorted to junk folder? What about this “X-Auto-Response-Suppress: All” in the message body? Is it possible to change that? I heard it is possible to log out stuff by for example “sudo gitlab-ctl tail” and then send the email and see if there is any error.

1-there is no junk mail.
2-what is this “X-Auto-Response-Suppress: All”?
3-run this “sudo gitlab-ctl tail” here is the output.

==> /var/log/gitlab/gitlab-rails/production.log <==
Delivered mail 5e664a6bce3e0_35303fd316dcf98c58438@vgit.mail (54.9ms)
Started GET “/-/metrics” for at 2020-03-09 17:23:48 +0330
Processing by MetricsController#index as HTML
Completed 200 OK in 31ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 880)

==> /var/log/gitlab/gitlab-rails/production_json.log <==