I am using GitLab version 12.2.4-ee on CentOS 6.8. I am not getting any e-mail notification through GitLab. Currently, sendmail is running but not SMTP on CentOS 6.8
Following smtp details on /etc/gitlab/gitlab.rb configure file:
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = added smtp ip address
gitlab_rails[‘smtp_port’] = 25
gitlab_rails[‘smtp_user_name’] = nil
gitlab_rails[‘smtp_password’] = nil
gitlab_rails[‘smtp_domain’] = “localhost.localdomain”
gitlab_rails[‘smtp_authentication’] = nil
gitlab_rails[‘smtp_enable_starttls_auto’] = true
gitlab_rails[‘smtp_tls’] = false
Following test e-mail from my gitlab server
Notify.test_email(‘destination_email@address.com’, ‘Message Subject’, ‘Message Body’).deliver_now
But no luck to get the e-mail. I am getting following error log on /var/log/maillog.
Oct 12 00:56:14 tcuracao1 sendmail[135497]: x9C7uEwD135497: to=[e-mail id](mailto:e-mail id), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30553, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 3D8B62218CC)
Oct 12 00:56:14 tcuracao1 postfix/smtpd[135498]: disconnect from localhost[127.0.0.1]
Could you please help me to fix this issue? Thanks for your support. My end goal is to get e-mail notification during gitpush.