check process dovecot with pidfile /var/run/dovecot/master.pid start program = "/etc/init.d/dovecot start" stop program = "/etc/init.d/dovecot stop" if failed port 143 protocol imap then restart if failed port 993 type tcpssl then restart group services