Mail shown in Usermin but not Roundcube

I have one user whose mail doesn’t display in Roundcube, it is only mail in the Inbox folder, other folders display mail OK. In UserMin it displays correctly.

When clicking the Inbox in Roundcude the following is logged in /var/log/maillog, I replaced the username with

mail dovecot: imap( Panic: file mail-index-sync-keywords.c: line 227 (keywords_update_records): assertion failed: (data_offset >= sizeof(struct mail_index_record))

mail dovecot: imap( Error: Raw backtrace: /usr/lib64/dovecot/ [0x7f439cbef06e] -> /usr/lib64/dovecot/ [0x7f439cbef14e] -> /usr/lib64/dovecot/ [0x7f439cba752c] -> /usr/lib64/dovecot/ [0x7f439cf265c8] -> /usr/lib64/dovecot/ [0x7f439cf26eed] -> /usr/lib64/dovecot/ [0x7f439cf27e8e] -> /usr/lib64/dovecot/ [0x7f439cf18b77] -> /usr/lib64/dovecot/ [0x7f439cf1437d] -> /usr/lib64/dovecot/ [0x7f439cf14990] -> /usr/lib64/dovecot/ [0x7f439cf14a7c] -> /usr/lib64/dovecot/ [0x7f439cf059c7] -> /usr/lib64/dovecot/ [0x7f439cea8882] -> /usr/lib64/dovecot/ [0x7f439cea8963] -> /usr/lib64/dovecot/ [0x7f439cedb2b4] -> /usr/lib64/dovecot/ [0x7f439cedb430] -> /usr/lib64/dovecot/ [0x7f439cf04b3a] -> /usr/lib64/dovecot/ [0x7f439cedb7a1] -> dovecot/imap(imap_status_get+0x77) [0x7f439d3baf47] -> dovecot/imap(cmd_status+0x13e) [0x7f439d3afb4e] -> dovecot/imap(command_exec+0x3c) [0x7f439d3b401c] -> dovecot/imap(+0x17f1f) [0x7f439d3b2f1f] -> dovecot/imap(+0x18005) [0x7f439d3b3005] -> dovecot/imap(client_handle_input+0x14d) [0x7f439d3b32fd] -> dovecot/imap(client_input+0x85) [0x7f439d3b36c5] -> /usr/lib64/dovecot/ [0x7f439cbffa87] -> /usr/lib64/dovecot/ [0x7f439cc0090f] -> /usr/lib64/dovecot/ [0x7f439cbff5d8] -> /usr/lib64/dovecot/ [0x7f439cbac9e3]

mail dovecot: imap( Fatal: master: service(imap): child 32292 killed with signal 6 (core dumps disabled)

I have read a similar problem where the answer was a corrupted Dovecot index file and the solution was to rename or delete it. Where is the index file located?

I can see dovecot.index under /home/domain/Maildir but is that for all mailboxes? Is there an index file for each user? In the same folder is dovecot.index.log and dovecot.index.log.

Operating system CentOS Linux 7.3.1611
Webmin version 1.840
Virtualmin version 5.07

There is a dovecot index for each mailbox; you’d need to delete the one for the user that is having problems.

I was looking in the wrong folder for the index file, it was in /home/domain/homes/

I deleted the .index file, restarted dovecot and the mail appeared. The .index file was recreated.

Thank you.