Gitlab won’t send mail

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

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

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>

Hi,

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 127.0.0.1 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 <==
{“method”:“GET”,“path”:"/-/metrics",“format”:“html”,“controller”:“MetricsController”,“action”:“index”,“status”:200,“duration”:31.02,“view”:0.47,“db”:0.0,“time”:“2020-03-09T13:53:48.353Z”,“params”:,“remote_ip”:null,“user_id”:null,“username”:null,“ua”:null,“queue_duration”:null,“correlation_id”:“047d1f07-62c2-4f5b-ba8c-9bc4e31fcb9b”,“cpu_s”:0.035136944000015546}