• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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