Applicable to:
- Plesk for Linux
Symptoms
-
Courier-IMAP is used as IMAP/POP3 server.
-
Mail reaches the server but does not get delivered to respective mailboxes and remains in mail queue. The following records can be found in the file
/var/log/maillog
:CONFIG_TEXT: qmail-local-handlers[5609]: mailbox: /var/qmail/mailnames/example.com/john.doe
qmail: 1402945857.005486 delivery 238: deferral: /bin/sh:_/usr/bin/deliverquota:_No_such_file_or_directory/
qmail: 1402945857.005599 status: local 0/10 remote 0/20OR
CONFIG_TEXT: dmarc[64017]: DMARC: PASS message for john.doe@example.com
postfix/pipe[64012]: 49FD1181D45BDD: to=john.doe@example.com, relay=plesk_virtual, delay=50838, delays=50836/0.01/0/1.1, dsn=4.3.0, status=deferred (temporary failure. Command output: /bin/sh: /usr/bin/deliverquota: No such file or directory 4.2.1 Message can not be delivered at this time) -
The file
/usr/bin/deliverquota
is missing from the server:# ll /usr/bin/deliverquota
ls: cannot access /usr/bin/deliverquota: No such file or directory
Cause
The file /usr/bin/deliverquota
is missing from the server.
Resolution
-
Connect to the server using SSH.
-
Download the package
psa-courier-imap
in accordance to used Plesk and operating system versions.For example,
psa-courier-imap
for Plesk Onyx 17.8.11 on CentOS 7 can be downloaded from the URL https://autoinstall.plesk.com/PSA_17.8.11/dist-rpm-CentOS-7-x86_64/opt/mail/psa-courier-imap-4.18.1-0centos.7.180301.1930.x86_64.rpm:# wget https://autoinstall.plesk.com/PSA_17.8.11/dist-rpm-CentOS-7-x86_64/opt/mail/psa-courier-imap-4.18.1-0centos.7.180301.1930.x86_64.rpm
-
Extract the package without installing it:
-
For RHEL-based operating systems (CentOS, RHEL, CloudLinux):
# mkdir psa-courier-imap && cd psa-courier-imap
# rpm2cpio ../psa-courier-imap-4.18.1-0centos.7.180301.1930.x86_64.rpm | cpio -idmv -
For Debian and Ubuntu:
# mkdir psa-courier-imap && cd psa-courier-imap
# dpkg -x ../psa-courier-imap_4.18.1-ubuntu.16.04.180301.1930_amd64.deb .
-
-
Place the binary
deliverquota
to the directory/usr/bin
:# cp -a usr/bin/deliverquota /usr/bin/
-
Rebuild mail configuration:
# plesk repair mail
Comments
6 comments
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
@Linus, execution of mchk utility restarts mail server as well
Thank you for your reply @Vitaly. In My case i had to restart the services manually. (Debian 8, Plesk Onyx)
@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
centos 7
# rpm2cpio psa-courier-imap-4.16.1-centos7.17031414.x86_64.rpm |cpio -ivdm /usr/bin/deliverquota
2327 blocks
Step 4 did not work at all
ll /usr/bin/deliverquota
ls: cannot access /usr/bin/deliverquota: No such file or directory
Hello @Ops-team,
Please execute the following commands:
# mkdir psa-courier && cd psa-courier
# rpm2cpio /directory/of/package/psa-courier-imap-4.16.1-centos7.17031414.x86_64.rpm |cpio -ivdm
# cp -a usr/bin/deliverquota /usr/bin/deliverquota
Please sign in to leave a comment.