#!/bin/sh # If the smmsp user/group don't exist, add them: if ! grep -q "^smmsp:" etc/passwd ; then echo "smmsp:x:25:25:smmsp:/var/spool/clientmqueue:" >> etc/passwd fi if ! grep -q "^smmsp:" etc/group ; then echo "smmsp::25:smmsp" >> etc/group fi RESTART=/var/run/sendmail.restart if [[ -f /var/run/sendmail.pid ]]; then touch $RESTART /etc/rc.d/sendmail stop || : fi if [[ -f $RESTART ]]; then rm $RESTART /etc/rc.d/sendmail start || : fi .