On Mon, Nov 08, 1999 at 12:06:44PM +1300, Jim Gilliver wrote:
> Is there a document somewhere that describes the structure and functionality
> of the /var/qmail/queue directory?
See the INTERNALS document that's in the qmail distribution tarball.
> I have 3 messages in the queue according to qmail-qstat, but qmail-qread
> only returns info for one message. I'd like to find out why these other two
> emails aren't 'complete'. I've noticed that there are files in the info dir
> for the message that qmail-qread knows about, but not for the other two, so
> I assume something has cocked up somewhere along the line. Unfortunately,
> the logs say nothing is wrong except in the case of the first message (the
> user sending the mail typed one of the recipient addresses wrong).
>
> What I need is info on how the queue is structured, and to know if there are
> any nice tools for:
>
> (a) rejecting a message stuck in the queue when you know the address is
> wrong (it should time out soon, but in this case, my user wanted to know
> about it immediately)
I usually locate the message in /var/qmail/queue/info, and touch -t it with
some sufficiently early date. qmail will attempt one more delivery, and then
decide that it's too old and bounce it,
> (b) cleaning out a message that's somehow gotten corrupted, or missing
> associated files in other directories (should an incoming message have a
> corresponding entry in the "info" subdirectory?)
See http://www.qmail.org. There are various queue fixers there (though I don't
have any experience with any of them).
Chris