Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Execution of
plesk repair mail
fails:# plesk repair mail
Reconfiguring all domains and mailboxes ......................... [2017-09-03 11:17:31] 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 -
Symbolic link
/usr/bin/which
points not to/bin/which
# ls -al /usr/bin/which
lrwxrwxrwx 1 root root 63 Aug 24 04:04 /usr/bin/which -> ../local/share/.config/yarn/global/node_modules/which/bin/which -
Mail authorization database is empty:
# /usr/local/psa/admin/bin/mail_auth_dump
Authentication database contents:
+--------------------------------------+-----+--------------------------------------+
| address |flags| password |
+--------------------------------------+-----+--------------------------------------+
+--------------------------------------+-----+--------------------------------------+ -
In
/var/log/maillog
there are records like:CONFIG_TEXT: Sep 3 06:59:30 mail plesk_saslauthd[25101]: failed mail authenticatication attempt for user 'example' (password len=9)
Sep 3 06:59:30 mail postfix/smtpd[25099]: warning: unknown[xxx.xxx.xxx.xxx]: SASL LOGIN authentication failed: authentication failure
Cause
Incorrect location of /usr/bin/which
.
Resolution
-
Connect to the server via SSH
-
Change location of
/usr/bin/which
# unlink /usr/bin/which
# ln -s /bin/which /usr/bin/which
# ls -al /usr/bin/which
lrwxrwxrwx 1 root root 10 Sep 4 04:15 /usr/bin/which -> /bin/which -
If the issue persists, reinstall
which
package:# rpm -e --nodeps --noscripts which
# yum install which -y -
Run
plesk repair mail
again.
Comments
4 comments
Following these instructions destroyed the `which` command completely.
Any instructions on how to fix a missing /bin/which?
@Martijn
Hello!
The steps from the resolution recreate the link to /bin/which and there are not steps which may delete /bin/which.
As a solution for your case, I can suggest installing "which". As an example, for CentOS the command will be:
# yum install which
Hello,
i get an error when I run the plesk repair mail command:
ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/mchk'] with exit code [1
Checking for: mail_dk_restore ... fail
Errors occured in mail restore procedure
Some utilities have exited with errors:
/usr/lib/plesk-9.0/mail_dk_restore
But I can not find anything in the log files and can not find any instructions in the forum.
@De-velopment
To get additional details about this error, it is required to check /var/log/plesk/panel.log. This error is indeed a new one, it was not reported previously, so it may be required to investigate it on a Plesk side. Consider submitting a support request to Plesk directly or to a reseller, depending on where the license was purchased.
Please sign in to leave a comment.