Find

How to restart service sendmail. (Sun, Linux, AIX)

How to restart service sendmail. (Sun, Linux, AIX)

use single line command for stop and start (restart):

Sun Solaris
/etc/init.d/sendmail stop;sleep 10;/etc/init.d/sendmail start;

Linux
/etc/rc.d/sendmail stop;sleep 10;/etc/init.d/sendmail start;
--or postfix
service postfix restart;
 
AIX
stopsrc -s sendmail;sleep 10;startsrc -s sendmail -a "-bd -q30m";