How do I repair/rebuild all Qmail configuration files and restore settings for all mailboxes?
Posted by Matthew Whittaker on 16 June 2006 02:25 PM
It can be done with Plesk mchk utility which is located in:
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