On 19.10.2011 18:49, Simone Piccardi wrote:
Hi,
I'm trying to deliver some messages to a "Public" IMAP directory
(Public in the dovecot namespace meaning).
I tried to use virtual to do this, I created a virtual domain
shared.folders and then used a virtual_mailbox_maps to define a
mapping between an address like someaddress@shared.folders to a
specific shared folder.
I could deliver the messages sent to someaddress@shared.folders to a
/var/mail/public/.somefolder Maildir, but they were all created with
permission 0600, so they cannot be read by different users.
I cannot find any option to setup an umask for delivered message
creation, so I'm asking if there is a way to do this or it's just
impossible.
Regards
Simone
I'm not sure if there is an option in dovecot to change the chmod of the
mail files. But you could use virtual Users on dovecot. Then the local
user always remains the same and it's fine with chmod 0600. Have a look
here http://wiki2.dovecot.org/VirtualUsers if virtual users are an
option for you
tobi