5 lines
281 B
Bash
Executable File
5 lines
281 B
Bash
Executable File
#! /bin/bash
|
|
|
|
[ `grep -c 'retry time not reached for any host after a long failure period' /var/log/exim4/mainlog` -gt 100 ] && grep 'retry time not reached for any host after a long failure period' /var/log/exim4/mainlog | tail | mail -s "Possible mail loop detected" root
|
|
exit 0
|