How do I repair/rebuild all Qmail configuration files and restore settings for all mailboxes?

Article ID: 944 
Last Review: Oct,6 2008
Author: Vitaly Malakhov
Last updated by: system APPLIES TO:
  • Parallels Plesk for Linux/Unix

Resolution

This can be done with Plesk mchk utility:

# /usr/local/psa/admin/bin/mchk
Synopsis:
mchk [OPTION]
--without-spam - restore all settings except for SpamAssassin configuration
--with-spam - restore all settings
--spam-only - restore only SpamAssassin settings


This utility rebuilds in line with Plesk database Qmail control files in the /var/qmail/control, /var/qmail/users directories and mail users' settings. Also, it sets proper ownership/permissions for all mailboxes (/var/qmail/mailnames/*).

Example:
# /usr/local/psa/admin/bin/mchk --with-spam



Subscription for this article changesSubscription for this article changes

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.
* - required fields