comparison doc/mail-storages.txt @ 817:86cf24da85f1 HEAD

Added :INDEX=<dir> for both Maildir and mbox to specify different location where to store index files. This would allow keeping mailboxes accessible through NFS but still keep the indexes in fast local disk. Did also some other related cleanups and minor fixes.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Dec 2002 09:53:51 +0200
parents ef64c9a50326
children 2512ad6fd9e9
comparison
equal deleted inserted replaced
816:ae9b55f7164e 817:86cf24da85f1
26 Dovecot's indexes are stored in ".imap/<mailbox name>/" directories under 26 Dovecot's indexes are stored in ".imap/<mailbox name>/" directories under
27 the folder directories. 27 the folder directories.
28 28
29 MAIL environment for mbox is: <root folder>|<INBOX path>[:INBOX=<path>]. 29 MAIL environment for mbox is: <root folder>|<INBOX path>[:INBOX=<path>].
30 For example ~/Mail:INBOX=/var/mail/username. 30 For example ~/Mail:INBOX=/var/mail/username.
31
32 indexes
33 -------
34
35 It's possible to specify different location for index files. This could be
36 wanted if mailboxes are accessed via remote filesystem (eg. NFS). Indexes
37 are mmap()ed and fcntl() locked, so they may not work too well with NFS, or
38 at least they'll work a bit slowly.
39
40 Indexes don't contain anything really important in them, so it doesn't
41 matter if they're lost or are out of sync. Dovecot just rebuilds or
42 refreshes them. This would allow creating a cluster where each computer
43 keeps the indexes locally while accessing the actual mailboxes via NFS. To
44 avoid unnecessarily rebuilding indexes all the time, the users should be
45 redirected to their primary server whenever possible.
46
47 Currently the only annoying thing with recreating indexes is that the
48 message UIDs will change, which may cause more traffic to clients, and
49 depending on client software may cause loss of some message-specific
50 settings. This will be fixed later by storing the UIDs permanently to
51 mailboxes.
52
53 Adding :INDEX=<dir> to MAIL environment overrides the default location. The
54 given directory must exist.
55
31 56
32 Detecting what to use 57 Detecting what to use
33 --------------------- 58 ---------------------
34 59
35 imap process detects the storage from MAIL-environment. It's preferred 60 imap process detects the storage from MAIL-environment. It's preferred