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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John Burnham
Datum:  
To: exim-users
Betreff: Re: [exim] Recommended way to clear the frozen/retry queue
>
> 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?


Well, you could try a delivery with debugging turned on:
exim -d -M {message-id}

>
> 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
>


You're kidding, right ? Read
http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch05.html

There's all the command line options. The one for deleting is
exim -Mrm (and then a list of message-ids)
You can combine
exim -bpu (which lists the messages in the queue) with grep and awk and whatever
to get a list of the message-ids you want and then use xargs to feed them to
exim -Mrm.
J