Re: [exim] Remove "not reached" emails

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Igor Karpov
Data:  
Para: exim-users
Asunto: Re: [exim] Remove "not reached" emails
sam wun wrote:
> Hi,
>
> I found the following command will remove all emails with message "not
> reached" from the queue:
> exim -bp | awk '{print $3}' | xargs exim -Mrm


Have you ever tried this command? :)
Actually, it'll remove all the mail in queue.

If you want to remove all 'frozen' messages, you'd better use

exiqgrep -i -z | xargs -L 1 exim -Mrm

Or, if you don't want use exiqgrep for some reason

exim -bp | grep 'frozen' | xargs -L 1 exim -Mrm

And if you want to remove not only 'frozen' messages, but also
undelivered bounces, you may want to play with regexp to catch '<>'.