On Wed, May 05, 2004 at 01:09:06PM +0100, John P. Looney wrote:
> I've a big fat qmail queue, mostly full of double bounces, waiting to
> timeout. I've a wee script that'll work out the messages I want to remove
> from the queue.
>> If I have a message /var/qmail/queue/mess/8/29381283, can I just remove
> it, and the other two files associated with it:
> /var/qmail/queue/remote/8/29381283 and /var/qmail/queue/info/8/29381283 ?
No, can't remember exactly why but a running qmail will get confused,
although this should work when qmail is stopped.
> Will it break qmail ? I've seen programs like qmHandle, which removes
> messages...but it shuts down qmail to do it. I really don't want to shut
> down qmail while I'm doing this.
The safest way to do this is to "touch" the info/ file corresponding to
the message you want, and set it to a date long in the past. At the next
failed delivery attempt it will (triple?) bounce and go away. Any other
modification will mean stopping qmail.
The only (tiny) possibility of a problem is if between choosing the
messages and touching the info file, the e-mail disappears and is
replaced by another one with the same number - then you'll expire the
wrong one. Chances are pretty slim, though.
Andrew
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!