• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

qmail does not process queue - unless I restart it

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
 
Last edited:
update..

It seems the "preprocessing" does not happen unless I restart qmail.
I just tried doing a "qmhandle -a" which forces qmail to do a queue run apparently..
It sure woke up, but did a few messages and went back to sleep.

But the "messages in preprocess" is always increasing.. The only way to decrease it it seems to restart qmail.
 
Back
Top