qmail queue problems

Started by donavan, March 17, 2004, 11:14:08 PM

Previous topic - Next topic

donavan

Ive got a basic install up and running. smtp, squirrelmail/imap, etc all seem to be working. I can send mail both to/from this box to outside domains and internally to local users and virtual domains/users.

Only odd parts of the install were that I created the MySQL tables by hand (already had it and Apache2 installed), not running isoqlog or rrd. Followed directions pretty closely and dont remember any big errors besides MySQL not being setup at first.

The problem im having is that this is showing up in /var/log/mail/send/current (ran through tai64nlocal for readability):

2004-03-17 21:40:35.748886500 status: local 0/10 remote 0/255
2004-03-17 21:40:35.749214500 end msg 221978
2004-03-17 22:05:36.773906500 warning: unable to stat mess/0/0
2004-03-17 22:05:36.774074500 warning: unable to stat mess/1/1
2004-03-17 22:05:36.774198500 warning: unable to stat mess/2/2
2004-03-17 22:05:36.774325500 warning: unable to stat mess/3/3
2004-03-17 22:05:36.774449500 warning: unable to stat mess/4/4
2004-03-17 22:05:36.774573500 warning: unable to stat mess/5/5
2004-03-17 22:05:36.774698500 warning: unable to stat mess/6/6
and so forth through  the whole queue

stopped all the daemons and used queue-repair, no problems found there. Since things *seem* to be going throug the queue properly anyways im kind of perplexed. The only two mentions of this problem Ive seen are a corrupt queue (queue-repair says its fine) or a possible permissions problem. Queue permissions, at a guess, look ok:

/var/qmail/queue smack# ls -l
total 18
drwx------   2 qmails  qmail  512 Mar 17 20:50 bounce
drwx------  25 qmails  qmail  512 Mar  8 19:14 info
drwx------  25 qmailq  qmail  512 Mar 17 21:40 intd
.....

/var/qmail/queue/mess smack# ls -la [edit: added ls of ./mess]
total 46
drwxr-x---   2 qmailq  qmail  512 Mar 17 20:50 0
drwxr-x---   2 qmailq  qmail  512 Mar 17 20:49 1
drwxr-x---   2 qmailq  qmail  512 Mar 16 16:26 10
drwxr-x---   2 qmailq  qmail  512 Mar 17 09:59 11
.....

So im pretty stumped. Any suggestions on correctly killing/rebuilding the queue and see if a new one helps? OR where to look for whats generating my "status: local 0/10 remote 0/255" multilog entry. Possible that that program cant read due to funny permissions?

matt

I'm going to guess that you had qmail installed before you installed your toaster. Try this:

 services stop
 rm -rf /var/qmail/queue
 toaster_setup.pl -s qmail
 services start

Matt

donavan

Yay!. That fixed it. Thanks for the awseome setup matt.