• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • 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 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