PREIN
/bin/sh
getent group opendkim >/dev/null || groupadd -r opendkim getent passwd opendkim >/dev/null || \ useradd -r -g opendkim -G mail -d /var/run/opendkim -s /sbin/nologin \ -c "OpenDKIM Milter" opendkim exit 0
PREUN
/bin/sh
if [ $1 -eq 0 ]; then service opendkim stop >/dev/null || : /sbin/chkconfig --del opendkim || : fi exit 0
POSTIN
/bin/sh
/sbin/chkconfig --add opendkim || :
POSTUN
/bin/sh
if [ "$1" -ge "1" ] ; then /sbin/service opendkim condrestart >/dev/null 2>&1 || : fi exit 0