aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/amavisd-new.post-install
blob: 56cad39f523e6d78169b25be453263cac2328e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

HOME=/var/amavis
QUARANTINE=$HOME/quarantine
USER=amavis
GROUP=amavis
DIRS="$HOME $HOME/tmp $HOME/var $HOME/db $HOME/home $QUARANTINE"
CONFIG=/etc/amavisd.conf

addgroup $USER
adduser -h $HOME -s /bin/false -G $GROUP -D $USER
chown -R $USER:$GROUP $HOME
chmod -R 750 $HOME
chown root:$GROUP $CONFIG