Hello all,

I am running dovecot- 2.3.5.2 with mdbox storage.
I deleted the dovecot.index* from all my folders, which led to mails not being displayed.
I rebuilt the indexes for all the users after that, using: doveadm force-resync -u user@domain "*"

However, the problem now is that Outlook,configured for IMAP, is not able to sync the mails with the server. 
I can login to the server using webmail and I see all the e-mails listed. However, when I connect outlook, it does not sync all these e-mails.

I am seeing the errors below. Not sure how to fix that.

Jun 18 11:23:34 imap(technical@mydomain.co.ke)<59754><g5UC1JSLPhkpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual  size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:23:45 imap(sales@mydomain.co.ke)<59812><aeLI1JSLoe3FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:24:03 imap(technical@mydomain.co.ke)<59891><uJHS1ZSLchkpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:24:12 imap(sales@mydomain.co.ke)<59933><q/9j1pSL3e3FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in  mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:24:40 imap(sales@mydomain.co.ke)<60053><DuQT2JSL9+3FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:24:49 imap(technical@mydomain.co.ke)<60079><ChRu2JSLrxkpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual  size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:25:09 imap(sales@mydomain.co.ke)<60184><i9HC2ZSLEe7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in  mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:25:13 imap(technical@mydomain.co.ke)<60204><sPL32ZSLx/cpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual  size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:25:42 imap(technical@mydomain.co.ke)<60328><QFm325SL9fcpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:26:03 imap(sales@mydomain.co.ke)<60358><9ckk3JSLLe7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:26:11 imap(technical@mydomain.co.ke)<60455><SKRs3ZSLJfgpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:26:32 imap(sales@mydomain.co.ke)<60548><SAy/3pSLjO7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:26:33 imap(technical@mydomain.co.ke)<60553><j3HE3pSLKBspUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:26:45 imap(technical@mydomain.co.ke)<60602><p49635SLUhspUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:26:51 imap(technical@mydomain.co.ke)<60629><NO/K35SLWBspUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:26:58 imap(technical@mydomain.co.ke)<60660><46ou4JSLa/gpUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:27:01 imap(sales@mydomain.co.ke)<60678><Sxpv4JSLm+7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:27:31 imap(sales@mydomain.co.ke)<60809><atU54pSLwe7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:27:59 imap(sales@mydomain.co.ke)<60932><9LLs45SL3u7FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:28:49 imap(sales@mydomain.co.ke)<61091><ekYq5pSLDO/FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:29:05 imap(sales@mydomain.co.ke)<61225><qenN55SLoLC5HrCp>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot.index.cache: UID 1853: Broken virtualsize in mailbox Sent Items: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.254): FETCH BODY[] got too little data: 3510 vs 1068172
Jun 18 11:29:15 imap(sales@mydomain.co.ke)<61272><Sb1s6JSLSe/FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:29:43 imap(sales@mydomain.co.ke)<61393><FJIc6pSLfO/FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:30:13 imap(sales@mydomain.co.ke)<61532><WGve65SLx+/FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:30:39 imap(sales@mydomain.co.ke)<61647><e2x47ZSL+e/FsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:31:10 imap(sales@mydomain.co.ke)<61782><+L4175SLI/DFsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:31:36 imap(sales@mydomain.co.ke)<61905><pK/W8JSLafDFsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:31:36 imap(technical@mydomain.co.ke)<61899><TnXN8JSLifopUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 29: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.1): FETCH BODY[] got too little data: 131524 vs 772408
Jun 18 11:31:37 imap(sales@mydomain.co.ke)<61897><IgvJ8JSL4h0pUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736
Jun 18 11:31:37 imap(technical@mydomain.co.ke)<61916><xhby8JSL6h0pUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/Deleted Items/dbox-Mails/dovecot.index.cache: UID 2: Broken virtual size in mailbox Deleted Items: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.460): FETCH BODY[] got too little data: 10123 vs 197577
Jun 18 11:31:37 imap(technical@mydomain.co.ke)<61919><hSf38JSL7B0pUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/technical/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot.index.cache: UID 2: Broken virtual size in mailbox Sent Items: read(/var/spool/virtual/mydomain.co.ke/technical/mdbox/storage/m.2): FETCH BODY[] got too little data: 3620 vs 817692
Jun 18 11:31:40 imap(sales@mydomain.co.ke)<61924><cEP+8JSL7h0pUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot.index.cache: UID 1: Broken virtual size in mailbox Sent Items: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.24): FETCH BODY[] got too little data: 5202 vs 1196884
Jun 18 11:31:44 imap(sales@mydomain.co.ke)<61937><bd8o8ZSL8B0pUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/Sent/dbox-Mails/dovecot.index.cache: UID 9: Broken virtual size in mailbox Sent: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.255): FETCH BODY[] got too little data: 46155 vs 1156185
Jun 18 11:31:46 imap(sales@mydomain.co.ke)<61962><cMlt8ZSLqfopUFt/>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache: UID 8: Broken virtual size in mailbox Trash: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.657): FETCH BODY[] got too little data: 107289 vs 1338249
Jun 18 11:32:07 imap(sales@mydomain.co.ke)<62063><ZEiZ8pSLn/DFsVm2>: Error: Corrupted record in index cache file /var/spool/virtual/mydomain.co.ke/sales/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: UID 25: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.co.ke/sales/mdbox/storage/m.552): FETCH BODY[] got too little data: 17130 vs 370736


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)