Auteur: Dave C. Datum: Aan: Theo E. Schlossnagle CC: kend, exim-users Onderwerp: Re: [Exim] How do I delete frozen messages?
On Tue, 14 Aug 2001, Theo E. Schlossnagle wrote:
> kend@??? wrote:
> > Okay, it's a dumb question, but I've gone through the docs, and searched for
> > "delete" and "remove", and gotten nothing that seemed pertinent. The
> > messages are frozen 'cause the remote site is bogus, so I don't want to
> > bother with an "exim -qf", but I don't know where to go. Do I just delete
> > them by hand from the spool directory? That seems inelegant, but, if it's
> > the "proper" solution, no biggie... but I do want to be sure I'm doing The
> > Right Thing.
>
> I see this question all the time and people usually answer how to delete "a"
> frozen messages. I know that on one of my boxes, I have around 5k to 50k
> frozen messages on a server after a few days. I use the move frozen message
> from queue feature now, but before that I just did the following (my exim is
> /usr/exim/bin/exim, so your command will vary):
>
> /usr/exim/bin/exim -bpr | grep '\*\*\* frozen \*\*\*' | awk '{print $3;}' |
> xargs -n 1000 /usr/exim/bin/exim -Mrm
Note that this will delete *all* frozen messages, not just ones to a
particular recipient domain.
exim -bp wit carefull constructed grep argument could filter just the
message IDs that are addressed to a particular (possibly bogus) domain