tkalfaoglu
Silver Pleskian
SOLVED: qmail does not process queue - unless I restart it
It's odd.. qmail sits for a long time (I waited about 10 minutes), does not process the new mail..
Rather, it wakes up every few minutes, and the (tail -f /usr/local/psa/var/log/maillogs|grep status) shows:
Mar 20 22:21:35 lin qmail: 1363814495.278632 status: local 0/15 remote 1/150
Mar 20 22:21:35 lin qmail: 1363814495.278632 status: local 0/15 remote 0/150
at this point:
# qmhandle -s
Total messages: 31
Messages with local recipients: 0
Messages with remote recipients: 7
Messages with bounces: 0
Messages in preprocess: 24
then I do a service qmail restart
and it jumps to life..
Mar 20 22:32:32 lin qmail: 1363815152.272105 status: exiting
Mar 20 22:32:32 lin qmail: 1363815152.438548 status: local 0/15 remote 0/150
Mar 20 22:32:32 lin qmail: 1363815152.638617 status: local 0/15 remote 1/150
Mar 20 22:32:32 lin qmail: 1363815152.814740 status: local 0/15 remote 2/150
Mar 20 22:32:32 lin qmail: 1363815152.907925 status: local 1/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.006495 status: local 2/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.162826 status: local 3/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.256358 status: local 4/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.464420 status: local 5/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.647913 status: local 5/15 remote 3/150
Mar 20 22:32:33 lin qmail: 1363815153.647959 status: local 4/15 remote 3/150
Mar 20 22:32:33 lin qmail: 1363815153.786783 status: local 4/15 remote 4/150
...etc..
after a minute the status is:
# qmhandle -s
Total messages: 14
Messages with local recipients: 0
Messages with remote recipients: 7
Messages with bounces: 0
Messages in preprocess: 7
so, what causes this deep sleep? Why should I have to restart qmail it order to get it to read the new messages and deliver them?
--- SOLVED --
The owner of the qmail semaphore was wrong..
I had to set it to:
chown qmails:qmail /var/qmail/queue/lock/trigger
now it works great.. in fact, its so fast, the queue always stays empty
It needs to be:
# ls -l /var/qmail/queue/lock/trigger
prw--w--w- 1 qmails qmail 0 Mar 21 11:36 /var/qmail/queue/lock/trigger
Thanks, -t
It's odd.. qmail sits for a long time (I waited about 10 minutes), does not process the new mail..
Rather, it wakes up every few minutes, and the (tail -f /usr/local/psa/var/log/maillogs|grep status) shows:
Mar 20 22:21:35 lin qmail: 1363814495.278632 status: local 0/15 remote 1/150
Mar 20 22:21:35 lin qmail: 1363814495.278632 status: local 0/15 remote 0/150
at this point:
# qmhandle -s
Total messages: 31
Messages with local recipients: 0
Messages with remote recipients: 7
Messages with bounces: 0
Messages in preprocess: 24
then I do a service qmail restart
and it jumps to life..
Mar 20 22:32:32 lin qmail: 1363815152.272105 status: exiting
Mar 20 22:32:32 lin qmail: 1363815152.438548 status: local 0/15 remote 0/150
Mar 20 22:32:32 lin qmail: 1363815152.638617 status: local 0/15 remote 1/150
Mar 20 22:32:32 lin qmail: 1363815152.814740 status: local 0/15 remote 2/150
Mar 20 22:32:32 lin qmail: 1363815152.907925 status: local 1/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.006495 status: local 2/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.162826 status: local 3/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.256358 status: local 4/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.464420 status: local 5/15 remote 2/150
Mar 20 22:32:33 lin qmail: 1363815153.647913 status: local 5/15 remote 3/150
Mar 20 22:32:33 lin qmail: 1363815153.647959 status: local 4/15 remote 3/150
Mar 20 22:32:33 lin qmail: 1363815153.786783 status: local 4/15 remote 4/150
...etc..
after a minute the status is:
# qmhandle -s
Total messages: 14
Messages with local recipients: 0
Messages with remote recipients: 7
Messages with bounces: 0
Messages in preprocess: 7
so, what causes this deep sleep? Why should I have to restart qmail it order to get it to read the new messages and deliver them?
--- SOLVED --
The owner of the qmail semaphore was wrong..
I had to set it to:
chown qmails:qmail /var/qmail/queue/lock/trigger
now it works great.. in fact, its so fast, the queue always stays empty
It needs to be:
# ls -l /var/qmail/queue/lock/trigger
prw--w--w- 1 qmails qmail 0 Mar 21 11:36 /var/qmail/queue/lock/trigger
Thanks, -t
Last edited: