From ba6262eab669ef792cb515525fefcaf3140ecd9f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 29 Mar 2003 10:25:31 +0000 Subject: Tighten filter, and include mails from MAILER-DAEMON (and mention spam as cause in the comment). --- postfix/purge-spam-from-queue.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'postfix') 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 # -# $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 -- cgit v1.2.3