FS#52350 - [gitlab] Error sending confirmation email via postfix

Attached to Project: Community Packages
Opened by Tiago Peixoto (count0) - Tuesday, 03 January 2017, 14:38 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 19 April 2017, 19:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Gitlab (version 8.15.2-1) fails to deliver confirmation and other types of email, when using the sendmail interface with postfix. Inspecting the logs of gitlab-sidekiq reveals:

Jan 03 15:25:46 skewed.de gitlab-sidekiq[21549]: 2017-01-03T14:25:46.684Z 21549 TID-vfu40 ActionMailer::DeliveryJob JID-7eb85895aa1005e4f674fba7 INFO: start
Jan 03 15:25:46 skewed.de gitlab-sidekiq[21549]: postdrop: warning: mail_queue_enter: create file maildrop/942899.22011: Permission denied
Jan 03 15:25:46 skewed.de postfix/postdrop[22011]: warning: mail_queue_enter: create file maildrop/942899.22011: Permission denied


There seems to be nothing wrong when using sendmail/postfix with any other user, and the directory permissions in /var/spool/postfix/ seem to be in order. The command "postfix check" returns no errors.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 19 April 2017, 19:55 GMT
Reason for closing:  Fixed
Comment by Tiago Peixoto (count0) - Saturday, 14 January 2017, 06:32 GMT
This is caused by the following directive in the systemd unit file:

PrivateDevices=true

According to the documentation, this automatically implies NoNewPrivileges=true, regardless of the explicit value of this setting, which is known to brake the sendmail wrapper. Changing to

PrivateDevices=false

solves the issue.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 19 April 2017, 19:54 GMT
Very nice sherlock work. Fix is on the way.

Loading...