check process master with pidfile /var/spool/postfix/pid/master.pid
	group mail
	group postfix
	start program = "/sbin/service postfix start"
	stop  program = "/sbin/service postfix stop"
# this validity check depends on "control postfix" status
#	if failed host localhost port 25 with proto smtp then restart
	if 5 restarts with 5 cycles then timeout
	depend on master_bin
	depend on postdrop_bin
	depend on postqueue_bin
	depend on master_cf
	depend on main_cf

check file master_bin with path /usr/libexec/postfix/master
	group postfix
	include /etc/monitrc.d/templates/rootbin

check file postdrop_bin with path /usr/sbin/postdrop
	group postfix
	if failed checksum        then unmonitor
	if failed permission 2711 then unmonitor
	if failed uid root        then unmonitor
	if failed gid postdrop    then unmonitor

check file postqueue_bin with path /usr/libexec/postfix/postqueue/postqueue
	group postfix
	if failed checksum        then unmonitor
	if failed permission 2711 then unmonitor
	if failed uid root        then unmonitor
	if failed gid postdrop    then unmonitor

check file master_cf with path /etc/postfix/master.cf
	group postfix
	if failed checksum        then unmonitor
	if failed permission 0640 then unmonitor
	if failed uid root        then unmonitor
	if failed gid mailadm     then unmonitor

check file main_cf with path /etc/postfix/main.cf
	group postfix
	include /etc/monitrc.d/templates/rootrc
