[Dovecot] Mailbox directory permissions (LDA, 0600 -> 0660, virtual users)
Timo Sirainen
tss at iki.fi
Mon Sep 17 16:30:59 EEST 2012
On 17.9.2012, at 16.25, Marcin Hłybin wrote:
> On 2012-09-17 14:46, Timo Sirainen wrote:
>> Yeah, although since they're already sharing UIDs I don't see much
>> point? http://wiki2.dovecot.org/SharedMailboxes/Permissions anyway
>> describes how it all works.
>
> Already tested and it does not work.
> Directory structure is /home/mail/<uid>/<domain>/<user>
>
> drwxr-xr-x 8 root root 4096 Sep 14 10:28 /home
> drwx--x--x 565 vmail vmail 53248 Sep 17 10:46 /home/mail
> drwxrwx--- 3 vmail vmail 4096 Sep 17 15:17 /home/mail/1234
> drwx------ 3 vmail vmail 4096 Sep 17 15:17 /home/mail/1234/maildomain.com
> drwx------ 3 vmail vmail 4096 Sep 17 15:17 /home/mail/1234/maildomain.com/support
>
> Two last directories for mailbox support at maildomain.com are created automatically
> after first e-mail comes to this address.
>
> As you can see root directory has 0770 permissions (or 0711 if /home/mail is the root directory).
> Maybe additional configuration is needed to make it work?
What's your mail_location setting? Note the "Permissions to new user directories" in the wiki, especially the last paragraph. When Dovecot doesn't know what permissions it should use, it defaults to 0700 to be safe.
More information about the dovecot
mailing list