doveadm index -u user@example.com INBOX

Category: Mail Servers & Postfix

doveadm index -u user@example.com INBOX

Rebuild the index for a mailbox

Forces the mailbox index to be rewritten from the stored messages, which can improve performance after importing mail or restoring from backup. Run it for a user who reports slow folder access. Corruption is a different problem, handled by force-resync.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.