File: http://svn.grimore.org/configuration-templates/monit/debian/templates/postfix -

###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process postfix with pidfile /var/spool/postfix/pid/master.pid
   group mail
   depends on postfix_rc
   start program = "/etc/init.d/postfix start"
   stop  program = "/etc/init.d/postfix stop"
   if failed port 25 protocol smtp then restart
   # if 5 restarts within 5 cycles then timeout
 
check file postfix_rc with path /etc/init.d/postfix
   group mail
   if failed checksum then alert
   if failed permission 755 then alert
   if failed uid root then alert
   if failed gid root then alert