<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 4 Dec 2019, at 17.15, Tomek Lutelmowski via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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? </div><br class=""></div></blockquote><div><br class=""></div><br class=""><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# pwd</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">/<a href="mailto:vmail/sami@example.com" class="">vmail/sami@example.com</a>/index/.INBOX</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# ls</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">dovecot.index dovecot.index.cache dovecot.index.log</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# rm dovecot.index.log </span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">rm: remove regular file ‘dovecot.index.log’? y</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# doveadm force-resync -u sami INBOX</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# ls -al</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">total 8228</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">drwx------ 2 vmail vmail 76 Dec 4 15:22 .</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">drwx------ 13 vmail vmail 4096 Nov 25 08:58 ..</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">-rw------- 1 vmail vmail 164080 Dec 4 15:22 dovecot.index</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">-rw------- 1 vmail vmail 8247872 Dec 4 15:21 dovecot.index.cache</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">-rw------- 1 vmail vmail 252 Dec 4 15:22 dovecot.index.log</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class=""><br class=""></span></font></div><div class=""><font color="#5856d6" class=""><div class="">[root@example .INBOX]# rm dovecot.index.*</div><div class="">rm: remove regular file ‘dovecot.index.cache’? y </div><div class="">rm: remove regular file ‘dovecot.index.log’? y</div><div class=""><br class=""></div><div class="">[root@example .INBOX]# doveadm index -u sami INBOX</div><div class="">[root@example .INBOX]# doveadm force-resync -u sami INBOX</div><div class=""><br class=""></div><div class="">[root@example .INBOX]# ls -al</div><div class="">total 180</div><div class="">drwx------ 2 vmail vmail 76 Dec 4 15:27 .</div><div class="">drwx------ 13 vmail vmail 4096 Nov 25 08:58 ..</div><div class="">-rw------- 1 vmail vmail 164080 Dec 4 15:27 dovecot.index</div><div class="">-rw------- 1 vmail vmail 5748 Dec 4 15:27 dovecot.index.cache</div><div class="">-rw------- 1 vmail vmail 308 Dec 4 15:27 dovecot.index.log</div><div class=""><br class=""></div></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@example .INBOX]# doveconf -n | grep mail_location</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">mail_location = Maildir:/vmail/%u/Maildir:INDEX=/vmail/%u/index</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class=""><br class=""></span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">[root@ketola .INBOX]# doveadm user sami | grep home</span></font></div><div class=""><font color="#5856d6" class=""><span style="caret-color: rgb(88, 86, 214);" class="">home /<a href="mailto:vmail/sami@example.com" class="">vmail/sami@example.com</a></span></font></div></div><br class=""><div class="">Sami</div></body></html>