Re: [Dovecot] Automatic Index Generation
Timo Sirainen wrote:
I guess you mean logging in with POP3? There the slowdown comes from getting all messages' virtual sizes. So your preindexer could probably do this by running pop3 for all users. If you use only a single UID for users, you could do something like:
for user in
cat users
; do export MAIL=maildir:/home/$user/Maildir echo "quit" | /usr/local/libexec/dovecot/pop3 donevmu1@test:~$ env | grep MAIL MAIL=maildir:/var/mail/testuser vmu1@test:~$ echo "quit" | /usr/lib/dovecot/pop3 pop3(vmu1): Fatal: pop3_uidl_format setting is missing from config file
I have pop3_uidl_format correctly defined in the config file. I've also tried to strace pop3, to find where it does look for it, but with no success.
It gets it from environment:
POP3_UIDL_FORMAT=... pop3
In general all settings are passed in environment using uppercased names.
Are you sure that all variables can be read from environment ?
vmu1@mail:~$ env | grep -E "(MMAP|LOCK)" MMAP_DISABLED=yes MAIL_READ_MMAPED=no LOCK_METHOD=dotlock POP3_LOCK_SESSION=yes
vmu1@mail:~$ echo "quit" | /usr/lib/dovecot/pop3 pop3(vmu1): Fatal: lock_method=dotlock and mmap_disable=no combination isn't supported. You don't _really_ want it anyway.
vmu1@mail:~$ /usr/sbin/dovecot --version 1.0.rc15
-- Maciej Poszywak
On Mon, 2007-12-10 at 19:12 +0100, Maciej Poszywak wrote:
vmu1@mail:~$ env | grep -E "(MMAP|LOCK)" MMAP_DISABLED=yes
You've an extra "D" there at the end.
MAIL_READ_MMAPED=no
This doesn't actually mean "no". Just the presence of the environment variable means that it's enabled. So "=1", "=0", "=yes" and "=no" all mean the exact same thing.
participants (2)
-
Maciej Poszywak
-
Timo Sirainen