[Dovecot] Automatic Index Generation

Benjamin R. Haskell dovecot at benizi.com
Sun Dec 9 20:48:17 EET 2007


On Sun, 9 Dec 2007, Timo Sirainen wrote:
> On Sun, 2007-12-09 at 16:29 +0100, Maciej Poszywak wrote:
>> 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.

In other words, you (Maciej) probably don't want to run 'pop3' directly. I 
suspect you'd rather do:

/path/to/dovecot --exec-mail pop3

This will set up the environment for the 'pop3' executable the same way 
dovecot normally does it.

Best,
Ben


More information about the dovecot mailing list