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. -- Jordan Tardif DreamHost
On Wed, Jun 2, 2010 at 7:12 PM, Jordan Tardif <jordan at 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 :)
On ke, 2010-06-02 at 19:12 -0700, Jordan Tardif wrote:> 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.Here's a fix for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/0dfd28b930b3 But for v1.2 you'd just have to create those directories manually or maybe with a postlogin script http://wiki.dovecot.org/PostLoginScripting (but that doesn't work if you use deliver).