Mail archive

[alpine-devel] [PATCH] postfix: fix error in pre-install script

From: Roger Newman <>
Date: Mon, 18 Jan 2016 20:35:21 +0100

The following patch fixes the a problem using 'adduser' with two groups
at the same time, which results in not creating the user 'postfix'.
This ends up in not being able to start postfix until the user is created or
another one is set in postfix-config.

diff --git a/main/postfix/postfix.pre-install
index f004ff6..1a5afb3 100644
--- a/main/postfix/postfix.pre-install
+++ b/main/postfix/postfix.pre-install
_at_@ -2,7 +2,8 @@

 addgroup -S postfix 2>/dev/null
 addgroup -S postdrop 2>/dev/null
-adduser -S -h /var/spool/postfix -G postfix,mail postfix 2>/dev/null
+adduser -S -h /var/spool/postfix -G postfix postfix 2>/dev/null
+addgroup postfix mail
 adduser -S -H -s /sbin/nologin -h /var/mail/domains -G postdrop vmail 2>/dev/null

- Roger Newman -
Received on Mon Jan 18 2016 - 20:35:21 UTC