[Dovecot] /var/run/dovecot mode 750 too tight

Thomas Leuxner tlx at leuxner.net
Sun Nov 29 21:11:28 EET 2009


Am 29.11.2009 um 19:24 schrieb Frank Cusack:

> dovecot-1.2.8 creates /var/run/dovecot mode 750.
> 
> I run postfix+dovecot in a virtual user setup.  Postfix calls deliver
> as user vmail group vmail.
> 
> Nov 29 12:53:04 imap.invalid dovecot: [ID 583609 mail.error] deliver(frank): userdb lookup: connect(/var/run/dovecot/auth-master) failed: Permission denied (euid=500(vmail) egid=500(vmail) missing +x perm: /var/run/dovecot)
> 
> I will say this: dovecot's error reporting in general is head and shoulders
> above the norm.  Makes tracking down problems sooo much easier.
> 
> Something else I noticed, should the dict-server socket really be mode 777?
> At least a-x I would think.
> 
> -frank

Probably easier to tell if you would post your setup, but I guess this fixes it:

  socket listen {
        master {
                path = /var/run/dovecot/auth-master
                mode = 0600
                user= vmail
                group = vmail
                }

Regards
Thomas


More information about the dovecot mailing list