For migration possibilities, we're considering whether it's possible to have Dovecot run some users using standard Maildir format, while other users would be using filesystem (LAYOUT=fs) format? We could determine which one's users have, but is there a way to tell Dovecot this information, and is it even part of the Dovecot design to deal with this scenario? Thanks, Tony
On Dec 8, 2009, at 2:07 PM, Tony Rutherford wrote:> For migration possibilities, we're considering whether it's possible > to have Dovecot run some users using standard Maildir format, while > other users would be using filesystem (LAYOUT=fs) format? We could > determine which one's users have, but is there a way to tell Dovecot > this information, and is it even part of the Dovecot design to deal > with this scenario?I haven't tried 2.0, but in the 1.1 series we accomplished this by having a small C shim that ran on login and delivery, which checked a telltale sign (in our case, whether /var/mail/user was a real file or a symlink to ~/Maildir), and setting namespace environment variables based on that. -Brian
On Tue, 2009-12-08 at 15:07 -0500, Tony Rutherford wrote:> For migration possibilities, we're considering whether it's possible to > have Dovecot run some users using standard Maildir format, while other > users would be using filesystem (LAYOUT=fs) format? We could determine > which one's users have, but is there a way to tell Dovecot this > information, and is it even part of the Dovecot design to deal with this > scenario?What userdb do you use? You could have it return "mail=maildir:~/Maildir:LAYOUT=fs" field for the non-standard users. http://wiki.dovecot.org/UserDatabase -------------- 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/20091208/9ca76ae7/attachment-0002.bin>
Timo Sirainen wrote:> On Tue, 2009-12-08 at 15:07 -0500, Tony Rutherford wrote: > >> For migration possibilities, we're considering whether it's possible to >> have Dovecot run some users using standard Maildir format, while other >> users would be using filesystem (LAYOUT=fs) format? We could determine >> which one's users have, but is there a way to tell Dovecot this >> information, and is it even part of the Dovecot design to deal with this >> scenario? >> > > What userdb do you use? You could have it return > "mail=maildir:~/Maildir:LAYOUT=fs" field for the non-standard users. > http://wiki.dovecot.org/UserDatabase > >We use LDAP. Thanks for the info, I think this is an option or maybe something in post login scripting to populate the mail environment variable.