[Dovecot] index file regeneration?
Quick question:
How does dovecot keep the message headers index file updated? Eg: if my MDA delivers an extra 10 messages while I'm logged in. How does the message index get updated? At what points is it regenerated?
Thanks,
Paul
On Fri, 2004-07-02 at 15:27, Paul Reilly wrote:
Quick question:
How does dovecot keep the message headers index file updated? Eg: if my MDA delivers an extra 10 messages while I'm logged in. How does the message index get updated? At what points is it regenerated?
It checks the file's timestamp. If it's changed it resyncs indexes. It's checked before reading mails and after each command.
Thanks Timo,
Do I need to enable this in the config file, with:
maildir_check_content_changes = yes
or does it still do it when that is set to no?
Paul
On Fri, 2 Jul 2004, Timo Sirainen wrote:
On Fri, 2004-07-02 at 15:27, Paul Reilly wrote:
Quick question:
How does dovecot keep the message headers index file updated? Eg: if my MDA delivers an extra 10 messages while I'm logged in. How does the message index get updated? At what points is it regenerated?
It checks the file's timestamp. If it's changed it resyncs indexes. It's checked before reading mails and after each command.
On Fri, 2004-07-02 at 20:39, Paul Reilly wrote:
Thanks Timo,
Do I need to enable this in the config file, with:
maildir_check_content_changes = yes
or does it still do it when that is set to no?
There's really no point in setting it to yes, as no-one should be modifying them and it just slows down if you check them. 1.0-tests won't even have that option anymore.
Wow - the performance is much better than Courier-IMAP! To open a mailbox with 2,200 messages in courier means about 10 seconds of waiting (depending on load). The same mailbox via dovecot was opened in 2-3 seconds!
I like it!
How come I don't see the
.customflags .imap.index .imap.index.data .imap.index.log .imap.index.tree
in subfolders, but not for INBOX /Maildir/cur ?
Paul
On Fri, 2004-07-02 at 21:18, Paul Reilly wrote:
How come I don't see the
.customflags .imap.index .imap.index.data .imap.index.log .imap.index.tree
in subfolders, but not for INBOX /Maildir/cur ?
They're under .INBOX/ directory. I was thinking about moving them to Maildir/ root, but there's some future improvements I'm planning on doing and keeping indexes in root directory wouldn't work well then.
.imap.index.data .imap.index.log
They're under .INBOX/ directory. I was thinking about moving them to Maildir/ root, but there's some future improvements I'm planning on doing and keeping indexes in root directory wouldn't work well then.
Ahhh. I see. That is neat - save populating the main Maildir with files.
Just one other quick question:
How does the flat file for authentication scale to large numbers of accounts? Eg:
auth_passdb = passwd-file /path/to/file
Courier makes a db version of the userdb file for fast access. Is this needed/planned for Dovecot? How does it scale for tens of thousands of users?
Paul
On Fri, 2004-07-02 at 21:34, Paul Reilly wrote:
How does the flat file for authentication scale to large numbers of accounts? Eg:
auth_passdb = passwd-file /path/to/file
Courier makes a db version of the userdb file for fast access. Is this needed/planned for Dovecot? How does it scale for tens of thousands of users?
dovecot-auth reads the file into hash table at startup and every time it's modified. I _think_ it would work well with lots of users, assuming you have enough memory and the file doesn't change constantly.
Storing it into disk would be .. well, I'm not sure if it would be faster or slower. It would depend on all kinds of things, such as how much it needs memory, how small part of the users actually login, how often passwords are changed etc.
Does Courier user Berkeley DB for the .db file? That might work better in general, but I don't really have plans to support it at least yet. You might as well just use SQL database.
participants (2)
-
Paul Reilly
-
Timo Sirainen