Re: [exim] Remove from queue

Top Pagina
Delete this message
Reply to this message
Auteur: Christopher Chaduka
Datum:  
Aan: Renaud Allard
CC: Exim-Users, tower
Onderwerp: Re: [exim] Remove from queue
On Tue, Dec 8, 2009 at 1:11 PM, Renaud Allard <renaud@???> wrote:
> Hello,
>
> tower wrote:
>> Hi
>>
>> I want to remove  messages from exim queue. There is a lot of message id
>> but one sender, so use exim -Mrm <id-message> isn't a nice idea. I
>> should use some like exim -?? <sender address>.
>>
>> Thanks for Your help
>>
>
> You can do something like:
> mailq | grep <sender_address> | awk '{ print $3 }' | xargs exim -Mrm


You will need more house cleaning with this one as you are assuming
the sender address does not have an entry in the queue as one of the
recipients. I would stick with Simon's solution.