Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending Emails With GitLab not working correctly

I'm trying to troubleshoot why GitLab Omnibus is not sending automated emails using Postfix, which is already installed and configured correctly (it's being used by other applications installed on the server as well).

When I make a change to an issue, while tailing the Gitlab logs, this is what I'm noticing:

==> /var/log/gitlab/sidekiq/current <== 2015-04-03_20:06:30.79386 2015-04-03T20:06:30.793Z 8126 TID-aq3vk Sidekiq::Extensions::DelayedMailer JID-460531f571f6756908805d66 INFO: start 2015-04-03_20:06:31.53363 sendmail: recipients with -t option not supported

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

Sent mail to [email protected] (48.3ms)

==> /var/log/gitlab/sidekiq/current <== 2015-04-03_20:06:31.57039 2015-04-03T20:06:31.570Z 8126 TID-aq3vk Sidekiq::Extensions::DelayedMailer JID-460531f571f6756908805d66 INFO: done: 0.776 sec

I sanitized the email address, but it is sending to a correct address.

I'm guessing the issue is related to the " sendmail: recipients with -t option not supported"

However, I cannot find anybody else out there who has had this issue.

Thanks.

like image 325
Maumee River Avatar asked Apr 06 '15 00:04

Maumee River


1 Answers

I fixed this issue by switching GitLab to SMTP by following the guide here: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md

It seems like SMTP is documented in greater detail.

like image 89
Maumee River Avatar answered Oct 24 '22 03:10

Maumee River