• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

QMAIL Clean

T

teknovision

Guest
Hi there!

I just ran ./qmail-clean, it has now been going on for some time +30 minutes, is it supposed to take that long??

I ran a grep on qmail with the following output:

ps ax | grep qmail
17349 ? S 0:00 /usr/bin/spamd -d -c -m2 --helper-home-dir=/var/qmail --pidfile=/var/run/spamd_full.pid --socketpath=/tmp/spamd_full.sock
22515 ? S 0:00 qmail-send
22517 ? S 0:00 splogger qmail
22518 ? S 0:00 qmail-lspawn ./Maildir/
22519 ? S 0:00 qmail-rspawn
22520 ? S 0:00 qmail-clean
26699 pts/0 S 0:00 ./qmail-clean
28812 pts/1 S 0:00 grep qmail
[root@ldu512 bin]#


Any suggestions on next steps, my terminal cursor is just hanging there waiting for something!?

Many thanks for any help on this one!

.//p
 
qmail-clean is not intended to be executed outside of the qmail server processes.

In short, It doesn't do what you think it does.

So the question I have is, what are you trying to do?
 
We had some problems whereby email was not being delivered, solved that problem by restarting qmail.

In trying to fix the problem, I found that we had some 280 mails in the queue by using using ./qmail-qstat. It was purely an attempt to clean qmail queue of any emails, haven't touched qmail since server went live 4 years ago! :)
 
Qmail will typically clean up the mail automatically after the messages have been "deferred" for 7 days. If you would like to help it along, then I would recommend using qmqtool or qmHandle to "expire" the messages. Expiring the messages will trigger qmail to call qmail-clean to clean-up the messages.
 
Thanks for your reply, will look into the tools suggested.

Now that I have run qmail-clean, should I stop it or is it ok for it to run - haven't noticed any adverse effect on sending/receiving email so far?
 
You can just kill it off, I don't believe it uses any kind of IPC other than stdin/stdout.
 
Back
Top