On Wed, Jun 2, 2010 at 7:12 PM, Jordan Tardif <jor...@hq.newdream.net> wrote: > > So after some problems with NFS and transaction logs getting corrupted. Im > tyring out storing them localy. via.. > > mail_location: maildir:~/Maildir:INDEX=/var/dovecot/indexes/%u > > the problem is with a large amount of users.. the indexes dir becomes huge > with this setup. So a change to make this better is... > > mail_location: maildir:~/Maildir:INDEX=/var/dovecot/indexes/%d/%n > > to seperate the users dir's into domains. What seems to happen is dovecot > creates the index's folder automaticly and its owned by that user.. eg.. > > drwx------ 3 10651674 2598184 4096 2010-06-02 19:08 domain.com > > > this makes it so no other user of domain.com can get their transaction logs > created cause the dir is owned by another user at that domain. Is there > anyway around this? I see there used to be a umask option but that is gone > in 1.2.x.
Why not split it up a bit more? I use something like this: INDEX=/var/dovecot/Indexes/%2Mu/%2.2Mu/%u That keeps directories from ever getting big, though at the cost of a lot of inodes. BTW, that's an impressively large UID and GID :)