diff options
-rwxr-xr-x | postfix/purge-spam-from-queue.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/postfix/purge-spam-from-queue.sh b/postfix/purge-spam-from-queue.sh index 13b0a60..97053ad 100755 --- a/postfix/purge-spam-from-queue.sh +++ b/postfix/purge-spam-from-queue.sh @@ -3,14 +3,14 @@ # /etc/local-COMMON/postfix/purge-spam-from-queue.sh # Copyright 2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: purge-spam-from-queue.sh,v 1.2 2002-12-31 13:38:42 jonas Exp $ +# $Id: purge-spam-from-queue.sh,v 1.3 2003-03-29 10:25:31 jonas Exp $ # -# Purge non-important mails hanging in the queue (probably because of bounce to full mailbox) +# Purge non-important mails hanging in the queue (probably because of bounce to full mailbox or spam rejections) # # TODO: Improve filter! # -badmails=`mailq | egrep -v '^( |$)' | egrep '@(earthlink\.net|yahoo\.com|excite\.com|hotmail\.com)' | sed 's/[^[:alnum:]].*//'` +badmails=`mailq | egrep -v '^( |$|\(|-)' | egrep '(MAILER-DAEMON|@earthlink\.net|@yahoo\.com|@excite\.com|@hotmail\.com)$' | sed 's/[^[:alnum:]].*//'` for x in $badmails; do postsuper -d $x |