# Managed by Ansible

check process mta-sts-daemon
  matching "/usr/bin/python3 /usr/bin/mta-sts-daemon"
  group mailserver
  start program = "/usr/sbin/service postfix-mta-sts-resolver start"
  stop program = "/usr/sbin/service postfix-mta-sts-resolver stop"
  if 2 restarts within 3 cycles then timeout
  if failed host 127.0.0.1 port 8461 for 3 cycles then restart