Symptoms
When repairing mail using the plesk repair mail command, the operation fails with:
# plesk repair mail
Repairing the mail server configuration
Reconfiguring all domains and mailboxes ......................... ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/mchk'] with exit code [1]
[FAILED]
- mchk failed: ==> Checking for: mailsrv_conf_init... not found,
skipped
Cause
The package /usr/bin/which is corrupted.
Resolution
-
Connect to the Plesk server via SSH.
-
Reinstall the
whichpackage:2.1. Remove the package:
# rpm -e --nodeps --noscripts which
2.2. Install it back:
# yum install which -y
-
Run
plesk repair mailagain.
-
Connect to the Plesk server via SSH.
-
Reinstall the
debianutilspackage that includeswhich:# apt-get --reinstall install debianutils
-
Run
plesk repair mailagain.