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

Created:

2016-11-16 12:45:05 UTC

Modified:

2017-04-24 12:12:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Applicable to:

  • Plesk 11.5 for Linux
  • Plesk

Resolution

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 #213925725 .

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

Attention!

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
    1. Move the current queue to another location.

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

  2. Reinstall psa-qmail RPM to recreate qmail queue structure with the command:

    # rpm -Uvh --force psa-qmail
  3. (Optional) Reinstall drweb-qmail RPM if you use the Dr. Web anti-virus feature which comes with Plesk.

    # rpm -Uvh --force drweb-qmail
  4. 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
Have more questions? Submit a request
Please sign in to leave a comment.