On Sun, 2008-08-31 at 18:30 +1000, VK wrote:
Hi All, Is it possible when using Dovecot and MySQL to tell dovecot maildir:%h/MailDir -- Yes I know but please read on before you answer this one :->
We have users directories layer structured because of the filesystems 32k directory limit , eg: user foobar@example.com's home mail directory is: /mailhosts/example.com/f/fo/foo/foobar
I know Dovecot takes maildir:%d/%u/MailDir but as you see this will not work,
mail_location = maildir:%d/%1n/%2n/%3n/%n/MailDir
so I guess I'm after the defination of %h, is that home as in system users home, or home as is like our setup?
%h expands to home directory given by your userdb configuration. So if you're using mysql and you have the directory in "maildir_path" field, you can return:
user_query = select ..., maildir_path as home, ...