On 01/03/2012 06:52 AM, Timo Sirainen wrote:
On Sun, 2012-01-01 at 20:32 -0500, Ruslan Nabioullin wrote:
How would it be possible to configure dovecot (2.0.16) in such a way that it would serve several maildirs (e.g., INBOX, INBOX.Drafts, INBOX.Sent, forum_email, [Gmail].Trash, etc.) per virtual user?
I am only able to specify a single maildir, but I want all maildirs in /home/my-username/mail/account1/ to be served.
Sounds like you want LAYOUT=fs rather than the default LAYOUT=maildir++. http://wiki2.dovecot.org/MailboxFormat/Maildir#Directory_Structure
I changed /etc/dovecot/passwd to: my-username_account1:{PLAIN}password:my-username:my-group::::userdb_mail=maildir:/home/my-username/mail/account1:LAYOUT=fs
Dovecot creates {tmp,new,cur} dirs within account1 (the root), apparently not recognizing the maildirs within the root (e.g., /home/my-username/mail/account1/INBOX/{tmp,new,cur}).
-- Ruslan Nabioullin rnabioullin@gmail.com