Re: [exim] How to delete all messages from one IP source

Top Page
Delete this message
Reply to this message
Author: Adam D. Barratt
Date:  
To: Exim-users
Subject: Re: [exim] How to delete all messages from one IP source
On Friday, June 03, 2005 6:01 AM, Daniel Bendersky <danny@???>
wrote:

> Hi, any one know a good and fast way to delete all the messages in the
> queue that comes from one IP ?

[...]
> Currently I use this command, but is nor fast and not to effective:
>
> /usr/sbin/exiqgrep -r '@' -i|awk '{print "echo -n "$1":;grep -o
> 200.74.190.225 /var/spool/exim/input/*/*"$1"*"}'|sh|awk -F: '{print
> "/usr/sbin/exim -Mrm " $1}'|sh


exipick -i 'sender_host_address eq $IP' | xargs -r exim -Mrm

If your exim distribution is sufficiently old not to include a copy of
exipick - http://jetmore.org/john/code/#exipick

Regards,

Adam