ansible-role-postfix/files/monit/postfix

8 lines
300 B
Text
Raw Normal View History

2023-03-20 20:01:04 +01:00
# Managed by Ansible
check process postfix with pidfile /var/spool/postfix/pid/master.pid
group mailserver
start program = "/usr/sbin/service postfix@- start"
stop program = "/usr/sbin/service postfix@- stop"
if failed port 25 protocol smtp with timeout 15 seconds for 3 cycles then restart