Tomek Lutelmowski
2019-Dec-04 15:15 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
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 at dovecot.fi> napisa?(a):> > > > On 4 Dec 2019, at 11.48, Tomek Lutelmowski via dovecot < > dovecot at 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 > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191204/6fce34e0/attachment.html>
Sami Ketola
2019-Dec-04 15:31 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
> On 4 Dec 2019, at 17.15, Tomek Lutelmowski via dovecot <dovecot at dovecot.org> 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? >[root at example .INBOX]# pwd /vmail/sami at example.com/index/.INBOX [root at example .INBOX]# ls dovecot.index dovecot.index.cache dovecot.index.log [root at example .INBOX]# rm dovecot.index.log rm: remove regular file ?dovecot.index.log?? y [root at example .INBOX]# doveadm force-resync -u sami INBOX [root at example .INBOX]# ls -al total 8228 drwx------ 2 vmail vmail 76 Dec 4 15:22 . drwx------ 13 vmail vmail 4096 Nov 25 08:58 .. -rw------- 1 vmail vmail 164080 Dec 4 15:22 dovecot.index -rw------- 1 vmail vmail 8247872 Dec 4 15:21 dovecot.index.cache -rw------- 1 vmail vmail 252 Dec 4 15:22 dovecot.index.log [root at example .INBOX]# rm dovecot.index.* rm: remove regular file ?dovecot.index.cache?? y rm: remove regular file ?dovecot.index.log?? y [root at example .INBOX]# doveadm index -u sami INBOX [root at example .INBOX]# doveadm force-resync -u sami INBOX [root at example .INBOX]# ls -al total 180 drwx------ 2 vmail vmail 76 Dec 4 15:27 . drwx------ 13 vmail vmail 4096 Nov 25 08:58 .. -rw------- 1 vmail vmail 164080 Dec 4 15:27 dovecot.index -rw------- 1 vmail vmail 5748 Dec 4 15:27 dovecot.index.cache -rw------- 1 vmail vmail 308 Dec 4 15:27 dovecot.index.log [root at example .INBOX]# doveconf -n | grep mail_location mail_location = Maildir:/vmail/%u/Maildir:INDEX=/vmail/%u/index [root at ketola .INBOX]# doveadm user sami | grep home home /vmail/sami at example.com Sami -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191204/1a8b3d86/attachment.html>
Dmitry Donskih
2019-Dec-05 13:53 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
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 at domain.ru INBOX doveadm force-resync-u user at 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 at dovecot.fi > <mailto:sami.ketola at dovecot.fi>> napisa?(a): > > > > > On 4 Dec 2019, at 11.48, Tomek Lutelmowski via dovecot > <dovecot at dovecot.org <mailto:dovecot at 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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191205/3172398d/attachment.html>
Tomek Lutelmowski
2019-Dec-05 20:07 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
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 at 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 at domain.ru INBOX > > doveadm force-resync -u user at 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 at dovecot.fi> napisa?(a): > >> >> >> > On 4 Dec 2019, at 11.48, Tomek Lutelmowski via dovecot < >> dovecot at 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 >> >> >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191205/29569377/attachment.html>
Possibly Parallel Threads
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?