Email messages are not delivered and remain in mail queue: /usr/bin/deliverquota: No such file or directory

Created:

2016-11-16 12:56:38 UTC

Modified:

2017-08-16 17:00:48 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Email messages are not delivered and remain in mail queue: /usr/bin/deliverquota: No such file or directory

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 10.x for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Symptoms

Mail reaches the server, but does not get delivered to respective mailboxes and remains in mail queue:

Jun 16 21:10:56 lvps46-163-119-37 qmail-local-handlers[5609]: mailbox: /var/qmail/mailnames/<DOMAIN_NAME>/<MAILBOX_NAME>
Jun 16 21:10:57 lvps46-163-119-37 qmail: 1402945857.005486 delivery 238: deferral: /bin/sh:_/usr/bin/deliverquota:_No_such_file_or_directory/
Jun 16 21:10:57 lvps46-163-119-37 qmail: 1402945857.005599 status: local 0/10 remote 0/20

Cause

The issue is caused by missing /usr/bin/deliverquota file:

# ll /usr/bin/deliverquota
ls: cannot access /usr/bin/deliverquota: No such file or directory

Resolution

Restore the missing file with the following steps:

  1. Download psa-courier-imap package from autoinstall.plesk.com , regarding the installed version of operating system.

For example, psa-courier-imap for Plesk 12.5 on CenOS7 is located at /PSA_12.5.30/dist-rpm-CentOS-7-x86_64/opt/mail

  1. Extract the package without installing it:

for Debian-based operating systems:

    # dpkg -x psa-courier-imap_<downloaded_version>.deb /package_extract_directory

**for RedHat-based** operating systems:

# rpm2cpio psa-courier-imap-<downloaded_version>.rpm | cpio -ivd /usr/bin/deliverquota
  1. Place deliverquota binary to /usr/bin directory:

    # cp /package_extract_directory/usr/bin/deliverquota /usr/bin/
  2. Rebuild mail configuration:

    # /usr/local/psa/admin/sbin/mchk --with-spam
Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    Linus Holtstiege

    Maybe extend this article with a dovecot restart because the IMAP Login will not work after reconfiguration the mailserver without a restart.

    # /etc/init.d/postfix restart
    # /etc/init.d/dovecot restart

  • 0
    Avatar
    Vitaly Zhidkov

    @Linus, execution of mchk utility restarts mail server as well

  • 0
    Avatar
    Linus Holtstiege

    Thank you for your reply @Vitaly. In My case i had to restart the services manually. (Debian 8, Plesk Onyx)

  • 0
    Avatar
    Alexander Tsmokalyuk

    @Linus, I have checked this on a test server - the  services are restarted:

     

    root@test:/# /opt/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_imap_restore... ok
    ==> Checking for: mail_spam_restore... not found, skipped
    ==> 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... not found, skipped
    ==> Checking for: mail_outgoing_restore... ok
    ==> Checking for: mail_transport_restore... ok
    root@test:/#
    root@test:/#
    root@test:/#
    root@test:/# systemctl status dovecot | grep Active
    Active: active (running) since Tue 2017-03-28 12:22:02 +07; 1min 8s ago    <-------------------
    root@test:/# systemctl status postfix | grep Active
    Active: active (running) since Tue 2017-03-28 12:22:01 +07; 1min 21s ago  <-------------------
    root@test:/# plesk version
    Product version: Plesk Onyx 17.0.17 Update #18
    Update date: 2017/03/09 05:12
    Build date: 2016/11/17 16:00
    OS version: Debian 8.7

Please sign in to leave a comment.