• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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