-
Notifications
You must be signed in to change notification settings - Fork 19
/
postfix
28 lines (25 loc) · 991 Bytes
/
postfix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- mode: conf; mode: flyspell-prog; mode: autopair; ispell-current-dictionary: american -*-
### Monitoring postfix.
check process postfix with pidfile /var/spool/postfix/pid/master.pid
group mailserver
start program = "/etc/init.d/postfix start"
stop program = "/etc/init.d/postfix stop"
if failed port 25 protocol smtp then restart
if 3 restarts within 5 cycles then timeout
depends on postfixd
depends on postfix_init
alert root@localhost only on {timeout}
check file postfixd with path /usr/sbin/postfix
group mailserver
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert root@localhost
check file postfix_init with path /etc/init.d/postfix
group mailserver
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert root@localhost