I'm reading the wiki et el. regarding indexes, but can't come up with a coherent answer to the setup and what will happen. I want to take the indexes and move them off of NFS (~/Maildir) and place in /var/spool/dovecot/indexes, but not have to hand create everything (user homes, mail folders) So, I create a parent folder /var/spool/dovecot/indexes that has the appropriate permissions for writing by all users/dovecot. If I then set: mail_location = maildir:~/Maildir:INDEX=/var/spool/dovecot/indexes/%1u/%u ...will the dovecot daemon(s) automagically create (A) the parent user folders (i.e. .../indexes/t/tengel/)(1), and (B) the necessary subfolders for all the child folder indexes? (i.e. .../tengel/.Lists.Dovecot/) Most of the doc info seems to revolve around moving your indexes if you use mbox, I'm a little fuzzy on what happens with Maildir when you attempt this. thanks! -te (1) in our setup, initially user's home folders are created on an admin server -> NFS that is not the mail server, so Dovecot needs to create the home & index folders on it's own at runtime. -- Troy Engel | Systems Engineer Fluid, Inc | http://www.fluid.com
On Mon, 2007-04-16 at 10:41 -0700, Troy Engel wrote:> So, I create a parent folder /var/spool/dovecot/indexes that has the > appropriate permissions for writing by all users/dovecot. If I then set: > > mail_location = maildir:~/Maildir:INDEX=/var/spool/dovecot/indexes/%1u/%u > > ...will the dovecot daemon(s) automagically create (A) the parent user > folders (i.e. .../indexes/t/tengel/)(1), and (B) the necessary > subfolders for all the child folder indexes? (i.e. > .../tengel/.Lists.Dovecot/) > > Most of the doc info seems to revolve around moving your indexes if you > use mbox, I'm a little fuzzy on what happens with Maildir when you > attempt this.How about just trying it in a test installation? :) The answer is anyway "yes, they're created". -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070416/82bd6618/attachment.bin>
Timo Sirainen wrote:> > How about just trying it in a test installation? :) The answer is anyway > "yes, they're created".Thanks, I've added a small section to the wiki clarifying this point. This *is* my test installation but I have a dozen users working on it before taking it into production. I needed to have a clue what would happen before I made a change and possibly blew things up. :) -te -- Troy Engel | Systems Engineer Fluid, Inc | http://www.fluid.com
Troy Engel wrote:> I'm reading the wiki et el. regarding indexes, but can't come up with > a coherent answer to the setup and what will happen. I want to take > the indexes and move them off of NFS (~/Maildir) and place in > /var/spool/dovecot/indexes, but not have to hand create everything > (user homes, mail folders) > > So, I create a parent folder /var/spool/dovecot/indexes that has the > appropriate permissions for writing by all users/dovecot. If I then set: > > mail_location = > maildir:~/Maildir:INDEX=/ovar/spol/dovecot/indexes/%1u/%u > > ...will the dovecot daemon(s) automagically create (A) the parent user > folders (i.e. .../indexes/t/tengel/)(1), and (B) the necessary > subfolders for all the child folder indexes? (i.e. > .../tengel/.Lists.Dovecot/) >It will, but beware... all directories will be created as the user's uid and gid. So, if you use a different uid for each user, you should manually create the /var/spool/dovecot/indexes/%1u directories first with the proper ownership and permissions. Otherwise, when /var/spool/dovecot/indexes/a gets created for user abc, it will be owned by abc and creation of /var/spool/dovecot/indexes/a/asmith by user asmith will fail. If you're using the same uid for everyone, you don't need to worry about it. On the other hand, if you're really doing just a one character hash, is there a good reason not to just create the dirs ahead of time? :) I'm doing a more complex hash, and have different uids, so I had to write a script to make the directory structure. Just wanted to save you a little possible time.> Most of the doc info seems to revolve around moving your indexes if > you use mbox, I'm a little fuzzy on what happens with Maildir when you > attempt this. > > thanks! > -te > > (1) in our setup, initially user's home folders are created on an > admin server -> NFS that is not the mail server, so Dovecot needs to > create the home & index folders on it's own at runtime. >