Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Messages sitting in /var/qmail/queue/mess/

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Jul 18, 2006 5:10 pm    Post subject: Messages sitting in /var/qmail/queue/mess/ Reply with quote

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
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Jul 18, 2006 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Jul 18, 2006 5:12 pm    Post subject: Reply with quote

Have you tried any of the queue-repair tools?

~Kyle
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Jul 18, 2006 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Qmail Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!