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, 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? Or, is there yet another way we could have Dovecot access the users mail, we need to ove away from our current <insert_wellknown_pop3/imap> setup as it is just to slow, and I know dovecot has a 30 fold increase on speed over it from talknig to other people, but none of them do anymore then the /domain/user setup so cant help me. Regards, Vic
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: signature.asc 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-0002.bin>