Product:
Search Type:

How do I rebuild qmail`s queue if it is damaged or consists of a lot of spam messages?

Article ID: 252 
Last Review: Nov,01 2006
APPLIES TO:
  • Plesk for Linux/Unix

RESOLUTION



This instruction is written for RPM-based systems (RedHat, Fedora, CentOS, etc...).


Please perform the following steps to recreate Qmail`s queue.

Attention!

All current messages will be removed from the queue in this case and cannot be restored.

1. Stop Qmail and xinetd.

/etc/init.d/qmail stop
/etc/init.d/xinetd stop


2. Move current queue to another location.

mv /var/qmail/queue /var/qmail/queue_old

3 Reinstall 'psa-qmail' RPM to recreate qmail queue structure with the command like:

rpm -Uvh --force psa-qmail....

4.(Optional).Reinstall drweb-qmail RPM if you use DrWeb antivirus feature which comes with Plesk.

rpm -Uvh --force drweb-qmail....

5.Start Qmail and xinetd:

/etc/init.d/qmail start
/etc/init.d/xinetd start

Note: you should get the both psa-qmail and drweb-qmail RPMs from the same Plesk version distributive which is installed on the server.
You can obtain current psa-qmail, drweb-qmail RPMs and Plesk build versions by running the following commands on Linux systems:


rpm -q psa-qmail
rpm -q drweb-qmail
rpm -q psa



Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields