Re: [exim] Remove "not reached" emails

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Igor Karpov
Date:  
À: exim-users
Sujet: 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 '<>'.