Is it possible to have folders on read-only partitions in Dovecot 1.0-stable? We have a NetApp fileserver which would probably be accessed via NFS (though iSCSI is possible) and which stores readonly "snapshots" of every directory accessible as .snapshot (but usually hidden from the operating system). It would be very nice to set up a "snapshot" namespace something like :- namespace public { separator = / prefix = "#snapshot/" location = maildir:%h/Maildir/.snapshot/nightly.0 hidden = yes } so that users could recover messages from say yesterday's version of their mailbox. Unfortunately, Dovecot always seems to want to write to the directory, even when indexes are stored elsewhere (as recommended with NFS anyway, I think) using INDEX=whatever in the location line. Best Wishes, Chris --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-- Christopher Wakelin, c.d.wakelin at reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Of course, I meant "namespace private" (I'd just tried "public" in case it made any difference, but I think Dovecot doesn't really support shared folders yet). Something like the following seems to work using the (undocumented?) CONTROL= option. namespace private { separator = / prefix = "#snapshot/" location = maildir:%h/Maildir/.snapshot/nightly.0: \ INDEX=/var/indexes/%u:CONTROL=/var/indexes/%u hidden = yes } dovecot-uidlist and temporary files seem to be created in the "CONTROL" directory. Is it a good idea to use "CONTROL=" for NFS-mounted maildirs anyway (read-write ones as well) to store these files on the local filesystem? Best Wishes, Chris On Tue, 15 Mar 2005 09:11:37 +0000 (GMT Standard Time) Chris Wakelin <c.d.wakelin at reading.ac.uk> wrote:> Is it possible to have folders on read-only partitions in Dovecot > 1.0-stable? > > We have a NetApp fileserver which would probably be accessed via NFS > (though iSCSI is possible) and which stores readonly "snapshots" of > every directory accessible as .snapshot (but usually hidden from the > operating system). It would be very nice to set up a "snapshot" > namespace something like :- > > namespace public { > separator = / > prefix = "#snapshot/" > location = maildir:%h/Maildir/.snapshot/nightly.0 > hidden = yes > } > > so that users could recover messages from say yesterday's version of > their mailbox. > > Unfortunately, Dovecot always seems to want to write to the directory, > even when indexes are stored elsewhere (as recommended with NFS anyway, > I think) using INDEX=whatever in the location line. > > Best Wishes, > Chris--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-- Christopher Wakelin, c.d.wakelin at reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
On Tue, 2005-03-15 at 09:11 +0000, Chris Wakelin wrote:> Is it possible to have folders on read-only partitions in Dovecot > 1.0-stable?Only if you set the permissions so that Dovecot really doesn't have write access there. Other permission checks will come with ACL code some day..> Unfortunately, Dovecot always seems to want to write to the directory, > even when indexes are stored elsewhere (as recommended with NFS anyway, > I think) using INDEX=whatever in the location line.With maildir you should also give CONTROL=elsewhere so it won't try to create dovecot-uidlist files. I'm not exactly sure if read-only maildirs work at the moment though. Read-only mboxes work, more or less.. Hmm. That reminds me, lets see if upgrading dovecot.org's dovecot version helps with its read-only mbox problems.. -------------- 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/20050315/ca08c9c5/attachment-0001.bin>