freebsd-dev/etc/periodic/daily/460.status-mail-rejects
Andrey A. Chernov 41051eb9e7 Do not run by default. Can grow your root mailbox up to 2Mb per day
since SPAMmers like to retry often
1998-01-18 12:06:40 +00:00

20 lines
403 B
Bash
Executable File

#!/bin/sh
#
# $Id: 460.status-mail-rejects,v 1.1 1997/11/22 04:02:49 brian Exp $
#
#
# Do not run by default. Can grow your root mailbox up to 2Mb per day
# since SPAMmers like to retry often
#
exit 0
if [ -d /etc/mail -a -f /var/log/maillog ]; then
echo
echo Checking for rejected mail:
start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'`
grep "^$start.*reject=" /var/log/maillog
fi