courier shared index: Permission denied

  • after an upgrade from 1.4.6 to 1.5.1 I get a Permission denied for imap and courier


    Code
    1. Mar 4 10:45:12 host2 imapd-ssl: /etc/courier/shared/index: Permission denied
    2. Mar 4 10:45:12 host2 imapd: /etc/courier/shared/index: Permission denied
    • Distro? codename?
    • /etc/courier/shared/index file exist?
    • /etc/courier/shared/index ownership and permissions?
    • /etc/courier/shared/ ownership and permissions?
    • /etc/courier/ ownership and permissions?
    • /etc/ ownership and permissions?
    • / ownership and permissions?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • thanks for reply!


    Description: Debian GNU/Linux 9.3 (stretch)
    Release: 9.3
    Codename: stretch


    /etc/courier/shared/index the index file does not exist also w/ other debian 9 (imscp 1.5.1) installations



    Code
    1. ls -la /etc/courier/sharedtotal 8drwxr-x--- 2 root courier 4096 May 8 2017 .drwxr-xr-x 6 root courier 4096 Feb 24 15:47 ..
    Code
    1. ls -la /etc/courier total 136drwxr-xr-x 6 root courier 4096 Feb 24 15:47 .drwxr-xr-x 119 root root 12288 Mar 4 11:35 ..-rw-rw---- 1 daemon daemon 3688 Mar 4 10:27 authdaemonrc-rw-rw---- 1 daemon daemon 829 Mar 4 10:27 authmysqlrc-rw------- 1 daemon daemon 3535 Jul 15 2017 dhparams.pemdrwxr-x--- 2 root courier 4096 May 8 2017 esmtpacceptmailfor.dirdrwxr-x--- 2 root courier 4096 May 8 2017 hosteddomainsdrwxr-x--- 2 root courier 4096 May 8 2017 imapaccess-rw-r--r-- 1 root root 12288 Oct 20 13:08 imapaccess.dat-rw-r--r-- 1 root root 16309 Mar 4 10:27 imapd-rw-r--r-- 1 root root 9688 Mar 4 10:27 imapd-ssl-rw-r----- 1 root courier 216 May 8 2017 imapd.cnf-rw-r----- 1 root courier 9233 Mar 4 10:32 imapd.pem-rw-r--r-- 1 root root 4487 Oct 22 11:19 pop3d-rw-r--r-- 1 root root 8907 Mar 4 10:27 pop3d-ssl-rw------- 1 root courier 216 May 8 2017 pop3d.cnf-rw-r----- 1 root courier 9233 Mar 4 10:32 pop3d.pemdrwxr-x--- 2 root courier 4096 May 8 2017 shared


    Code
    1. drwxr-xr-x 119 root root 12288 Mar 4 11:35 etc
  • strange, w/ a jessie system it looks very different ... which works

  • it seems to work now

    Code
    1. chown daemon.daemon /etc/courier/shared
    2. touch /etc/courier/shared/index
    3. chmod 0755 /etc/courier/shared
    4. service courier-authdaemon restart
    5. service courier-imap restart
    6. service courier-pop restart
    7. service courier-imap-ssl restart
    8. service courier-pop-ssl restart
  • @fulltilt


    Well, that is not really an i-MSCP issue. In fact, Ondřej Surý :cursing: has changed the historical user/group from daemon to courier.. The problem is that i-MSCP assume the daemon user in init script and some other place, not the courier user. I must have a deeper look into those changes to update our courier server implementation.

    Code
    1. courier (0.76.1-3) unstable; urgency=medium
    2. * Add critical debconf notes about courier:courier change and
    3. courier-maildrop -> maildrop change (Closes: #822071)
    4. -- Ondřej Surý <[email protected]> Tue, 24 May 2016 17:09:49 +0200

    See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822071

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @fulltilt


    This should be fixed in the hotfixes branch. The fixes will be available in i-MSCP version 1.6.0. As you will see, there was a lot of works needed...


    See changes:

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206