Failed to create a new domain: No such file or directory mailmng: Unable to update /var/qmail/control/rejectnonexist file

Created:

2016-11-16 13:20:15 UTC

Modified:

2017-04-24 11:32:39 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Failed to create a new domain: No such file or directory mailmng: Unable to update /var/qmail/control/rejectnonexist file

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

Failed to create a new domain or mail account, it fails with error:

    Error: Unable to open file "/var/lock/files/fe62a04da3d34705ecf91a44f538edf6": No such file or directory. 
System error 2: No such file or directory Error occurred while locking the file /var/qmail/control/rejectnonexist: No such file or directory
System error 2: No such file or directory mailmng[14272]: set_reject: Unable to update /var/qmail/control/rejectnonexist file.

Cause

Some mail directory does not exist. From error above directories /var/lock/files and /var/qmail/control/rejectnonexist are absent.

Resolution

1) Make sure that directories: /var/lock/files and /var/qmail/control/rejectnonexist exist.

2) Create directory /var/lock/files if it is absent:

    # ls -ld /var/lock/files
drwxr-xr-x 2 root root 4096 Apr 8 08:37 /var/lock/files

3) To restore /var/qmail/control/rejectnonexist , execute /usr/local/psa/admin/sbin/mchk command:

    root@vps-test:~# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... ok
Have more questions? Submit a request
Please sign in to leave a comment.