lxc container and dovecot /var/run permissions

foobar73

Renowned Member
Jan 19, 2016
17
1
68
52
Hi,

I migrated a container from openvz to lxc and I have encountered an odd error:

When a client tries to connect to IMAP and authenticate it fails. Correlating log entry is this:
dovecot: imap-login: Error: auth: connect(login) in directory / failed: Permission denied (euid=498(<unknown>) egid=499(<unknown>) missing +r perm: login, euid is not dir owner)

the / refers to /var/run/dovecot/login/ and the perms on imap is 1600 root:root not 1666 root:root

I can temporarily change the perms of course, but they are reset after restart.
 
I ran into the same problem, changing the perms did the trick but restarting dovecot will undo this.

my container already migrated from openvz to lxc, i made a snapshot backup and restored the backup to another server and encounter the problem there. only difference is that the 'old' servers runs pvemanager 4.0-48 and the new one pvemanager 4.1-5