2 getent group smmsp >/dev/null || /usr/sbin/groupadd -g 25 smmsp
3 getent passwd smmsp >/dev/null || /usr/sbin/useradd -c 'sendmail' -u 150 -g smmsp -d /var/spool/mail -s /bin/false smmsp
4 /usr/bin/passwd -l smmsp &> /dev/null
7 RESTART=/var/run/sendmail.restart
10 if [[ -f /var/run/sendmail.pid ]]; then
12 /etc/rc.d/sendmail stop || :
17 if [[ -f $RESTART ]]; then
19 /etc/rc.d/sendmail start || :
24 /usr/sbin/userdel smmsp &> /dev/null
25 rm -f /etc/mail/aliases.db
26 rmdir --ignore-fail-on-non-empty /var/spool/mqueue