Plesk

Mail repair utility fails on a Plesk server: mailsrv_conf_init… not found

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

 

For CentOS/RHEL-based distributions

 

  1. Connect to the Plesk server via SSH.

  2. Reinstall the which package:

    2.1. Remove the package:

    # rpm -e --nodeps --noscripts which

    2.2. Install it back:

    # yum install which -y

  3. Run plesk repair mail again.

 

For Debian/Ubuntu-based distributions

 

  1. Connect to the Plesk server via SSH.

  2. Reinstall the debianutils package that includes which:

    # apt-get --reinstall install debianutils

  3. Run plesk repair mail again.

 

Exit mobile version