diff options
Diffstat (limited to 'monit/postfix.conf')
| -rw-r--r-- | monit/postfix.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/monit/postfix.conf b/monit/postfix.conf new file mode 100644 index 0000000..83ec467 --- /dev/null +++ b/monit/postfix.conf @@ -0,0 +1,12 @@ +check process postfix with pidfile /var/spool/postfix/pid/master.pid + GROUP mail + start program = "/etc/init.d/postfix start" + stop program = "/etc/init.d/postfix stop" + if cpu > 60% for 2 cycles then alert + if cpu > 80% for 5 cycles then restart + if totalmem > 200.0 MB for 5 cycles then restart + if children > 250 then restart + if loadavg(5min) greater than 2 for 8 cycles then stop + if failed host localhost port 25 type tcp protocol smtp + with timeout 15 seconds then alert + if 3 restarts within 5 cycles then timeout |
