18 lines
574 B
Plaintext
18 lines
574 B
Plaintext
# m h dom mon dow command
|
|
|
|
# Kick amavis every two hours in case it has died
|
|
0 */2 * * * /usr/sbin/service amavis stop ; /bin/ps aux | grep ^amavis | while read user pid rest; do sudo /bin/kill -9 $pid; done ; /usr/sbin/service amavis restart
|
|
|
|
# Kick spamassassin in case it died
|
|
1 */2 * * * kill -9 $(cat /var/run/)
|
|
|
|
# Kick postfix in case it died
|
|
5 */2 * * * /usr/sbin/service postfix restart
|
|
|
|
# Kick mailman every two hours in case it has stopped running
|
|
#7 */2 * * * /usr/sbin/service mailman restart
|
|
|
|
# Check the email log for bad IP sources
|
|
0 6 * * * /email-check
|
|
|