# dovecot monit-cn template check process dovecot with pidfile "/var/run/dovecot/master.pid" group mail start program = "/etc/init.d/dovecot start" stop program = "/etc/init.d/dovecot stop" if failed host 127.0.0.1 port 143 protocol imap then restart if failed host 127.0.0.1 port 110 type tcp then restart