[Dovecot] Automatic Index Generation

Maciej Poszywak jet at surreal.pl
Mon Dec 10 20:12:49 EET 2007


>> 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
>>> done
>>>
>>>   
>>>       
>> vmu1 at test:~$ env | grep MAIL
>> MAIL=maildir:/var/mail/testuser
>> vmu1 at 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 at mail:~$ env | grep -E "(MMAP|LOCK)"
MMAP_DISABLED=yes
MAIL_READ_MMAPED=no
LOCK_METHOD=dotlock
POP3_LOCK_SESSION=yes

vmu1 at 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 at mail:~$ /usr/sbin/dovecot --version
1.0.rc15

--
Maciej Poszywak



More information about the dovecot mailing list