- Peter Gradwell <[EMAIL PROTECTED]>:
| Can some one help me!! I'm dropping mail left right an centre :-(
Your queue structure is clearly seriously messed up.
Stop qmail, then move /var/qmail/queue to /var/qmail/badqueue and
reinstall ("make setup check").
Then have a look at the messages in the badqueue directory. Read the
INTERNALS file, noting among other things that files under the mess
subdirectory must have an inode number equal to their name. Did you
perhaps violate this by restoring a queue from backup, for example?
If so, messages need renumbering before you can move them back in the
queue. Also, if queue files had their ownership changed, that must be
fixed. The mess/*/* files should have owner qmailq, while ones under
info/, local/, and remote/ should be owned by qmails.
You may find it easier to just reinject messages in the queue based on
what is in the info (envelope sender) and local and remote files. The
qmail-queue man page explains what is needed; what goes to file
descriptor 1 is the concatenation of the info file, then the remote
and local files, with an extra NUL byte appended.
Oh, actually, that would resend messages that were already
delivered. Try instead the output of
( cat info/$msg remote/$msg local/$msg | tr '\000' '\012'; echo ) |
grep '^[FT]' | tr '\012' '\000'
"Some assembly required." (No, not assembly *language*.)
The latter approach has the advantage that you can restart the queue
without waiting to stuff messages from the old queue into the new one.
- Harald