Search for:

Available article translations:

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

Article ID: 252, created on Oct 6, 2008, last review on Dec 29, 2014

  • Parallels Plesk 11.5 for Linux


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. All necessary packages you may find here.

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

c81e59b61af9dca603ba03b14aabe968 56797cefb1efc9130f7c48a7d1db0f0c 9f8baf78266b4e54525d1c6bf06305a5 1bb40a2897c5fbbe5c9bd20451105ddc 824237ce663843af86f93897fbd8e2f8

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- 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