postfix: tweak {pre,post}-install scripts

This commit is contained in:
Thomas Penteker 2017-01-25 23:36:46 +01:00
parent 87af61cdf5
commit 4a8e75d95e
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -1,3 +1,3 @@
#!/bin/sh
/usr/sbin/groupadd postdrop
getent group postdrop || /usr/sbin/groupadd postdrop