| View previous topic :: View next topic |
| Author |
Message |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Tue Jul 18, 2006 5:10 pm Post subject: Messages sitting in /var/qmail/queue/mess/ |
|
|
Hi All,
I have qmail (spamcontrol patched) with clam AV using the QHPSI interface to scan incoming messages. It is running on FreeBSD 6.0
It was working Ok for months and few hours ago the server stopped delivering any messages, clamd was using 90% CPU and there were a lot errors in its log:
/var/qmail/queue/mess/6/356529: Unable to open file or directory ERROR
I killed clamd, removed it from QHPSI and stoped/started qmail, even
restared the server. Now qmail seem to deliver new messages OK.
The problem is that in the queue I have ~1300 messages that qmail doesn't want to deliver - probably because the queue is broken.
They are all sitting in:
/var/qmail/queue/mess/
and I can open and read them - there is nothing wrong with the files.
Is there any way to fix this so that qmail can 'see' them as messages
for delivery?
I saw that there are some tools for fixing qmail queue, but I am not sure
which tool is appropriate for this problem.
I made a backup of the queue folder as well.
Any ideas are welcome.
Thanks,
Miro |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Tue Jul 18, 2006 5:11 pm Post subject: |
|
|
Just to add some more info:
qmail-qstat returns:
messages in queue: 1449
messages in queue but not yet preprocessed: 0
each of these messages has an empty file in intd/ folder (with the same filename
as in mess/)
Accoring to: http://www.cyberis.net/support/qmail/misc/INTERNALS.phtml
the messages are stuck in the middle of stage S3.
I guess instead of an empty file in intd/ , there should be the envelope
information of the message in the file... |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Tue Jul 18, 2006 5:12 pm Post subject: |
|
|
Have you tried any of the queue-repair tools?
~Kyle |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Tue Jul 18, 2006 5:38 pm Post subject: |
|
|
Yes, I tried queue-fix and queue-repair against a backup copy, but they didn't
detect the actual issue.
Although they seem to be good tools, IMHO they are tools to repair the directory
structure and permissions, not exactly for problems like this one. The structure
is OK.
If I am not wrong, to fix this is actually more complicated as qmail wasn't able
to create the envelope info (who is the message coming from, and where it is
suppose to go).
So the 'fix' will have to parse the messages and manually recreate that info.
If you know a tool that can do that, let me know and I will try it.
It would probably be easier to qmail-inject these messages, than to parse them
and fix the envelopes for the queue.
Thanks,
Miro |
|
| Back to top |
|
 |
|