diff options
Diffstat (limited to 'postfix/purge-spam-from-queue.sh')
-rwxr-xr-x | postfix/purge-spam-from-queue.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/postfix/purge-spam-from-queue.sh b/postfix/purge-spam-from-queue.sh index b03eac3..13b0a60 100755 --- a/postfix/purge-spam-from-queue.sh +++ b/postfix/purge-spam-from-queue.sh @@ -1,4 +1,14 @@ #!/bin/sh +# +# /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 $ +# +# Purge non-important mails hanging in the queue (probably because of bounce to full mailbox) +# +# TODO: Improve filter! +# badmails=`mailq | egrep -v '^( |$)' | egrep '@(earthlink\.net|yahoo\.com|excite\.com|hotmail\.com)' | sed 's/[^[:alnum:]].*//'` |