Which file/process does qmail check the files in queue/info/* against?
How about files under queue/mess/* queue/remote/* queue/local/* ?

Can I do this (touch -t) while qmail is up?

-a

-----Original Message-----
From: 'Chris Johnson' [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 03, 2000 3:53 PM
To: DeChavez , Andrew
Cc: [EMAIL PROTECTED]
Subject: Re: qmail-clean does not work


On Thu, Feb 03, 2000 at 03:32:20PM -0800, DeChavez , Andrew wrote:
> I need to clean out obsoleted emails that are spooled, because, for some
> non-qmail reason, didn't get sent right away.

Why do you need to remove them from the queue? qmail will do that itself
once
they're in there for longer than the queue lifetime. If you'd like the queue
lifetime to be shorter, see the qmail-send man page and read about
queuelifetime.

> Right now, here's what I do to clean it up....
> 
> /etc/init.d/qmail stop
> cd /tmp/queue/remote
> for i in `ls`
> do
> rm ${i}/2*    # cause they usually start with 2
> done
> 
> I do the same thing with mess, locals...
> Is there another way to do it?

If you're really anxious for these messages to be out of the queue before
they've expired on their own, find the message in the queue/info/* directory
and touch -t it to some early date (touch -t 01010000 should work).
qmail-send
will try to send it one more time, and then it'll decide it's too old and
bounce it.

Chris

Reply via email to