[Dovecot] Ownership and permissions for the index directory/filesystem

Timo Sirainen tss at iki.fi
Sat Nov 14 00:52:08 EET 2009


On Fri, 2009-11-13 at 15:27 -0500, Stewart Dean wrote:
> Nov 12 11:45:15 mercury mail:err|error dovecot: IMAP(bpyi): open(/var/spool/mail/bpyi) failed: Permission denied (euid=2586(bpyi) egid=2000(bard2) missing +w perm: /var/spool/mail)

It's trying to create bpyi user's INBOX that doesn't exist yet, but
fails because it doesn't have write access to /var/spool/mail/
directory. Probably gets fixed by the time the user gets the first mail
and your MTA creates the file.

> Questions:
> 1) Are the ownership and permissions on the /var/dcindx index root 
> directory ideal or should they be something else?

They're fine.

> 2) Ideally what should the ownership and permissions be for individual 
> user subdirs?  I create the user mail directories when creating a new 
> account, so it would be little extra trouble to create and set the 
> ownership and permissions.

0700, owned by the user.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091113/617dd605/attachment.bin 


More information about the dovecot mailing list