HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Dovecot Dict permission error (http://www.howtoforge.com/forums/showthread.php?t=57714)

kafmil 23rd June 2012 06:48

Dovecot Dict permission error
 
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(webmaster@<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(webmaster@<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?

SavageCore 24th February 2014 12:28

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 Code:

/etc/dovecot/dovecot.conf 

as follows:

PHP Code:

service dict {
  
unix_listener dict {
    
mode 0660
    user 
mail
    group 
mail
  
}


Changing permissions to match so for example Kafmil's would be

PHP Code:

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


All times are GMT +2. The time now is 05:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.