• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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