It works very well.
Thanks
----- Original Message -----
From: ""Miquel van Smoorenburg" " <list-exim-users@???>
To: <exim-users@???>
Sent: Monday, August 09, 2004 2:24 PM
Subject: [Exim] Re: purge queue?
> In article <0a3401c47e48$2e3f9340$37cba1cd@???>,
> Elliot Finley <efinleywork@???> wrote:
> >Is there a simple way to purge the queue of any email that has come from
a
> >certain IP?
> >
> >This is on Exim 4.34
>
> I use a simple script like this. It's for exim3 - haven't needed it
> yet for exim4 (we upgraded just recently) so perhaps it needs
> some adjustments, but it'll probably work as-is.
>
> #! /bin/sh
>
> case "$1" in
> *.*.*.*)
> ;;
> *)
> echo "Usage: eximrmip ipadress" >&2
> exit 1
> ;;
> esac
>
> IP="$1"
>
> mailq | grep '<.*>' | cut -c10-27 |
> while read msgid
> do
> exim -Mvh $msgid | grep "^-host_address $IP\\."
> if [ $? = 0 ]
> then
> echo exim -Mrm $msgid
> exim -Mrm $msgid
> fi
> done
>
>
> Mike.
> --
> The question is, what is a "manamanap".
> The question is, who cares ?
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
>