Search for:

Available article translations:

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

  • Parallels Plesk Panel


These instructions are written for RPM-based systems (RedHat, Fedora, CentOS, etc.). Instructions for DEB-based systems (Debian, Ubuntu) can be found in KB article #115980.

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


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

1. Stop Qmail and xinetd.

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


2. Move the 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:

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

4. (Optional) Reinstall "drweb-qmail" RPM if you use the Dr. Web anti-virus 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 both the "psa-qmail" and "drweb-qmail" RPMs from the same Plesk version distributive which is installed on the server.
You can obtain the current "psa-qmail" RPM, "drweb-qmail" RPM, and Plesk build version by running the following commands on Linux systems:

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

49af2da0f2dd4c81e962790bbbd0c2b4 56797cefb1efc9130f7c48a7d1db0f0c

Was this article helpful?
Tell us how we may improve it.
Yes No
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification