1 # arg 1: the new package version
3 getent group exim >/dev/null 2>&1 || groupadd -g 79 exim
4 if getent passwd exim > /dev/null 2>&1; then
5 usr/sbin/usermod -d /var/spool/exim -c 'Exim MTA' -s /sbin/nologin exim > /dev/null 2>&1
7 usr/sbin/useradd -c 'Exim MTA' -u 79 -g exim -d /var/spool/exim -s /sbin/nologin exim
9 passwd -l exim > /dev/null
10 chown root.exim /var/spool/exim /var/log/exim
11 chown exim.exim /var/spool/exim/db
12 chmod u+s /usr/sbin/exim
15 # arg 1: the new package version
16 # arg 2: the old package version
21 # arg 1: the old package version
23 getent passwd exim >/dev/null 2>&1 && userdel exim