Re: [exim] Recommended way to clear the frozen/retry queue

Top Page

Reply to this message
Author: Adrian Chapela
CC: exim-users
Subject: Re: [exim] Recommended way to clear the frozen/retry queue
Matt Sealey escribió:
> I have a need to clean up the retry queue.. when I start exim or view the queue we have hundreds
> of messages in there that just seem to sit for weeks. I'd like to manually get rid of them just
> for cleanliness' sake.
> However what I would really like is to see the mails first; they're all incoming and waiting for
> DNS/smtp verification or some other stalled check. Just the
> 2007-03-05 16:47:22 1HN9a6-000C8q-05 == jb57bg56gv3e5e4w53@??? routing defer (-51): retry time not reached
> 2007-03-05 16:47:22 1HNx7n-000MRL-CK Message is frozen
> 2007-03-05 16:47:22 1HNYT8-000H50-B3 Message is frozen
> 2007-03-05 16:47:22 1HNZnR-000IhT-Qf Message is frozen
> Something like this. Is there an option I can pass to exim or some other program to get more
> data on these frozen or retrying messages?
> Then.. once I have that data and am comfortable nuking a message (or all of them) what exactly
> is the command for it? I read through the manual for an hour and it isn't very "instructive"
> even if it is informative as to queue options and handling.. I'd really just rather be told what
> the exact specific option is and what it needs to be paired with :D

if you want to clear all the spool:

exim4 -Mrm `ls /var/spool/exim4/input/ | grep -- -H$ | cut -c 1-16`

This command delete all the messages in the spool directory