Search K
Appearance
Appearance
Dovecot is supposed to fix dovecot.list.index*
files automatically. If for whatever reason there is some error that Dovecot can't fix automatically, it's possible to rebuild the indexes from scratch. This should be possible without losing the folder names, because the latest folder names are stored in the per-folder indexes as well.
WARNING
This operation shouldn't lose any folder names because of the 1. step below, but for extra safety get a copy of the dovecot.list.index*
files so no matter what happens, the folder names are still possible to recover later on.
doveadm fetch -u user@domain uid 1 > /dev/null
cp dovecot.list.index* /some/backup/
doveadm exec imap -u user@domain
rm dovecot.list.index*
doveadm force-resync -u user@domain '*'
doveadm mailbox list -u user@domain