[Dovecot] Update indexes with dovecot 1.1
Angel L. Mateo
amateo at um.es
Tue Aug 23 09:52:17 EEST 2011
El 23/08/11 04:40, Timo Sirainen escribió:
> On 19.8.2011, at 12.13, Angel L. Mateo wrote:
>> I have a farm of dovecot 1.1 servers (debian lenny). Mailboxes are in Maildir format.
>> Is there any way to manually update indexes?
> v2.0 has "doveadm index" command to do this. There's no other good way to do this.
>> Does it worth? I mean... Our problem is that mail is delivered via dovecot lda, but, because we have a farm of servers, we don't guarantee that mail is delivered through the same server that the user is using for his imap connection, so the imap server could have this index unupdated. So I want to force an update (or at least nearly updated) in order to have the index updated in all servers at the time the user get to work.
> Doing it via IMAP won't guarantee that everything the user's client needs is indexed/cached. Different clients need different things, Dovecot only indexes stuff that client requests. You'd have to look up from index files what the client wants indexed and then perform IMAP commands requesting those fields. Even the act of doing this may mess up caching decisions, because user may have changed client and now it's indexing unnecessary fields. (Actually now that I think of it, doveadm index has this same problem. Have to get that fixed.)
> With v2.0 you could if you use Dovecot proxy (or director) you can also proxy doveadm connections through it, so a "doveadm index" would always go to the correct server. http://wiki2.dovecot.org/Director at the bottom has some info how to set this up (works also with plain proxy, without director).
I'm trying this configuration in a test environment, but we are having
lot of problems with director. The main problem is with director and
LMTP, because it produces a lot timeout of errors (I have previouslly
posted about these problems)
OK. So my question is, does it worth? Our scenario is 8 POP/IMAP
servers with almost 70000 users (not all of them are really active),
about 8.5 TB in use, with mailboxes in Maildir format over NFS. Our main
problem with this is at return of vacations periods (like the one we'll
have next 9/1). Our hypothesis is that the first connection of the user
is expensive, because he has a lot of unindexed messages in his mailbox.
Supposing that doveadm index indexes the mailbox correctly, does it
helps to solve our problem?
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información _o)
y las Comunicaciones Aplicadas (ATICA) / \\
More information about the dovecot