41051eb9e7
since SPAMmers like to retry often
20 lines
403 B
Bash
Executable File
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
|