Just curious how does moving indexes to different folder help.? 

Cheers/DP

On Fri, Dec 6, 2019, 01:38 Tomek Lutelmowski via dovecot <dovecot@dovecot.org> wrote:
Gents, thank you all - moving indexes to external folder worked like a charm! :-) 

czw., 5 gru 2019 o 14:55 Dmitry Donskih via dovecot <dovecot@dovecot.org> napisał(a):

Yes.

mail_location = maildir:/var/vmail/%Ld/%Ln/Maildir:INBOX=/var/vmail/%Ld/%Ln/Maildir/.INBOX:INDEX=/var-fast/dovecot/indexes/vmail/%Ld/%Ln

As Sami Ketola wrote earlier:

rm -f /var-fast/dovecot/indexes/vmail/domain.ru/user/.INBOX/*

doveadm index -u user@domain.ru INBOX

doveadm force-resync -u user@domain.ru INBOX

ls /var-fast/dovecot/indexes/vmail/domain.ru/user/.INBOX/*

/var-fast/dovecot/indexes/vmail/domain.ru/user/.INBOX/dovecot.index
/var-fast/dovecot/indexes/vmail/domain.ru/user/.INBOX/dovecot.index.cache
/var-fast/dovecot/indexes/vmail/domain.ru/user/.INBOX/dovecot.index.log


04.12.2019 18:15, Tomek Lutelmowski via dovecot wrote:
Someone who have mailbox in different directory than indexes, can confirm if doveadm can recreate index (after deleting dovecot.index* files) or these files can be created only by connecting with IMAP client? 

śr., 4 gru 2019 o 15:45 Sami Ketola <sami.ketola@dovecot.fi> napisał(a):


> On 4 Dec 2019, at 11.48, Tomek Lutelmowski via dovecot <dovecot@dovecot.org> wrote:
>
> mail_location = maildir:~
>

can't spot anything obvious wrong. Just spotted that you are storing mails in users home root along with all other files such as index files.

Maybe you should store the mailbox contents into Maildir:~/Maildir under the users home and index to ~/index/

Sami