[Dovecot] many users maildir access

Timo Sirainen tss at iki.fi
Sun Aug 31 11:54:36 EEST 2008


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 at 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, ...

-------------- 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/20080831/e0642bdd/attachment.bin 


More information about the dovecot mailing list