Files
spook/detect-mail-loop/detect-mail-loop.sh
2026-04-13 01:15:07 +09:00

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