diff options
-rwxr-xr-x | postfix/post-install | 5 | ||||
-rwxr-xr-x | postfix/pre-install | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/postfix/post-install b/postfix/post-install index b388358b1..2ed3486a7 100755 --- a/postfix/post-install +++ b/postfix/post-install @@ -20,4 +20,7 @@ cd /usr/lib/postfix create-missing /usr/sbin/postalias /etc/postfix/aliases -/usr/sbin/postmap hash:/etc/postfix/{virtual,relocated,access,transport} + +for hashfile in virtual relocated access transport; do + /usr/sbin/postmap hash:/etc/postfix/"$hashfile" +done diff --git a/postfix/pre-install b/postfix/pre-install index b804819be..201c6025e 100755 --- a/postfix/pre-install +++ b/postfix/pre-install @@ -1,3 +1,3 @@ #!/bin/sh -/usr/sbin/groupadd postdrop +getent group postdrop || /usr/sbin/groupadd postdrop |