Re: [exim] how to delete emails for particular domain

Top Page
Delete this message
Reply to this message
Author: Graeme Fowler
Date:  
To: exim users
Subject: Re: [exim] how to delete emails for particular domain
On Wed, 2008-01-02 at 15:34 +0100, zbigniew szalbot wrote:
> I have a lot of mailman bounces destined for an admin address (my
> error). I would like to delete them from queue (no need to send them).
> How do I do that? I can delete a single message using -Mrm option but
> can anyone share how to do that for all messages destined for one
> recipient? We're talking about 4K emails in this instance.


Assuming a sender of the form:

mailman-admin@???

you'd do:

exipick -f "mailman-admin@???" -i |\
xargs -i exim -Mrm {}

exipick really is your friend, especially in cases like this :)