Dovecot Dict permission error

Discussion in 'Server Operation' started by kafmil, Jun 23, 2012.

  1. kafmil

    kafmil New Member

    I found an issue that I am struggling to find an answer for. I am getting this error:
    Code:
    Jun 12 10:03:48 vds1 dovecot: imap([email protected]<mydomainname>.com.au): 
    Error: net_connect_unix(/var/run/dovecot/dict) failed: Permission denied (euid=97(dovecot) egid=89(postfix)
     missing +r perm: /var/run/dovecot/dict, euid is not dir owner)
    Jun 12 10:03:48 vds1 dovecot: imap([email protected]<mydomainname>.com.au): 
    Error: Internal quota calculation error
    I can chown the file /var/run/dovecot/dict to dovecot, however when I restart dovecot, it reverts back to root as the owner. If I don't restart dovecot, everything works well, I am guessing this is still a config issue here. I am chowning and not restarting for now, but will keep looking for a proper solution.

    Any ideas out there?
     
  2. SavageCore

    SavageCore New Member

    I know this is old but I just found it via google so posting here to help anyone else that may come across it.

    The solution is to set unix_listener in
    PHP:
    /etc/dovecot/dovecot.conf
    as follows:

    PHP:
    service dict {
      
    unix_listener dict {
        
    mode 0660
        user 
    mail
        group 
    mail
      
    }
    }
    Changing permissions to match so for example Kafmil's would be

    PHP:
    service dict {
      
    unix_listener dict {
        
    mode 0660
        user 
    dovecot
        group 
    postfix
      
    }
    }
    As the error log tells us that's who is running the dict.

    Thanks
     

Share This Page