GitLab Server SMTP Configuration

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(‘’, ‘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=[] [], dsn=2.0.0, stat=Sent (Ok: queued as 3D8B62218CC)
Oct 12 00:56:14 tcuracao1 postfix/smtpd[135498]: disconnect from localhost[]

Could you please help me to fix this issue? Thanks for your support. My end goal is to get e-mail notification during gitpush.

hi, have you been able to fix the issue I am also facing the same problem

Same here, any fix for this


are you using sendmail, postfix or exim as your local MTA? Are there any insights in the mail log on the system itself?

Also, if your MTA doesn’t use a mailserver relay which is trusted (e.g. MX record for the domain), these mails are getting rejected by the recipient’s mailserver.