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