Re: [Exim] How do I delete frozen messages?

Top Page
Delete this message
Reply to this message
Author: Theo E. Schlossnagle
Date:  
To: kend
CC: exim-users
Subject: Re: [Exim] How do I delete frozen messages?
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

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7