• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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