[Dovecot] changing location of index files

Timo Sirainen tss at iki.fi
Wed Sep 9 23:44:26 EEST 2009


On Tue, 2009-09-08 at 14:28 +0900, suzuki wrote:
> Hello,
> 
> I think changing index files location of mail_location setting
>  to reduce disk I/O.
> by adding "INDEX=/var/index/%d/%1n/%n" to mail_location like below,
> mail_location = maildir:~/Maildir:INDEX=/var/index/%d/%1n/%n
> 
> Will this change cause any problems or data loss to existing pop3 users?
> There are only pop3 users on this server.
> 
> 
> % dovecot --version
> 1.1.18

With v1.1 Dovecot should have virtual sizes either in Maildir filenames
as ,W=1234 or written to dovecot-uidlist file in W1234 fields. You could
verify this, and if you find them there should be no problems moving the
index files.

Since you have only POP3 users you could also try if it's better for
performance to simply disable indexes completely (:INDEX=MEMORY). The
main reason why indexes can be useful with POP3 is if user keeps lots of
mails on the server and logs in constantly to see if there is new mail.
Indexes avoid readdir()ing through Maildir/cur/ directory then.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090909/19df4be9/attachment.bin 


More information about the dovecot mailing list