When you search for an email in Roundcube (cPanel) and it doesn't appear in the results even though it exists in your mailbox, the problem almost always stems from the server not having properly indexed the messages. For example, if you try to locate an email with the subject "Invoice" and can't find it in the search, but when checking manually it is indeed in the inbox, it means the email indexes are corrupted or incomplete.
The main cause is corrupted or outdated FTS (Full Text Search) indexes in Dovecot's search engine. This can occur due to:
Connect to the server as root user:
ssh root@your-server.comFor a specific account with few folders, execute:
# Rescan FTS indexes
doveadm fts rescan -u user@example.com
# Reindex inbox
doveadm index -u user@example.com -q INBOX
# Reindex sent mail
doveadm index -u user@example.com SentIf the account has many custom folders, use this command to index everything:
# Index ALL folders at once
doveadm index -u user@example.com -q "*"Need additional help? Contact our technical support team for personalized assistance with your server.