Skip to content

Navigation Menu

Sign in
Sign up

SQL storage reindex #794

Unanswered
majkrzak asked this question in Q&A
Jul 29, 2025 · 1 comments · 1 reply
Discussion options

I've migrated imapsql backend from sqlite to postgresql. Unfortunately this caused inbox getting empty, despite all the messages are still present in the filesystem.

Is there a way to force reindexing?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Issue Analysis
After migrating the IMAP backend from SQLite to PostgreSQL, the inbox appears empty even though the message files still exist. This is typically caused by the IMAP index/metadata being out of sync with the actual mail storage.

Solution
Identify your IMAP server and run the appropriate reindex/rebuild commands:

  • Dovecot – Delete index files (forces rebuild):
systemctl stop dovecot
cd /path/to/maildir
find . -type f -name 'dovecot.index*' -delete
systemctl start dovecot
You must be logged in to vote
1 reply
Comment options

🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /