On Mon, 19 Oct 2020 at 09:54, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:

> On 19/10/2020 09:48 Odhiambo Washington <odhiambo@gmail.com> wrote:
>
>
>
>
>
> On Mon, 19 Oct 2020 at 09:27, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
> >
> >  > On 19/10/2020 09:16 Odhiambo Washington <odhiambo@gmail.com> wrote:
> >  >
> >  >
> >  > Bump!
> >  >
> >  >
> >  > On Fri, 16 Oct 2020 at 13:26, Odhiambo Washington <odhiambo@gmail.com> wrote:
> >  > >
> >  > >
> >  > >
> >  > > On Fri, 16 Oct 2020 at 13:15, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
> >  > > >
> >  > > > > On 16/10/2020 13:11 Odhiambo Washington <odhiambo@gmail.com> wrote:
> >  > > > >
> >  > > > >
> >  > > > >
> >  > > > >
> >  > > > >
> >  > > > > On Fri, 16 Oct 2020 at 08:19, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
> >  > > > > > > On 15/10/2020 18:14 Odhiambo Washington <odhiambo@gmail.com> wrote:
> >  > > > > > >
> >  > > > > > >
> >  > > > > > > Here is what I see on the error.log:
> >  > > > > > >
> >  > > > > > > Oct 15 17:37:58 imap(technical@mydomain.name)<62260><9ucgmLax7s3F6FH2>: Error: Mailbox INBOX: Cache /var/spool/virtual/mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache) (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache) (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache) (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=798:
> >  > > > > > >
> >  > > > > > > Best regards,
> >  > > > > > > Odhiambo WASHINGTON,
> >  > > > > > > Nairobi,KE
> >  > > > > > > +254 7 3200 0004/+254 7 2274 3223
> >  > > > > > > "Oh, the cruft.",grep ^[^#] :-)
> >  > > > > >
> >  > > > > > There is a bug in compression in 2.3.11.3, see https://dovecot.org/pipermail/dovecot/2020-September/119907.html
> >  > > > > >
> >  > > > > > Aki
> >  > > > >
> >  > > > > I don't use any compression mechanisms in my setup.
> >  > > > >
> >  > > > >
> >  > > > >
> >  > > > > --
> >  > > > >
> >  > > > > Best regards,
> >  > > > > Odhiambo WASHINGTON,
> >  > > > > Nairobi,KE
> >  > > > > +254 7 3200 0004/+254 7 2274 3223
> >  > > > > "Oh, the cruft.",grep ^[^#] :-)
> >  > > >
> >  > > > Try rm /var/spool/virtual/mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache) (http://mydomain.name/technical/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache)
> >  > > >
> >  > > > Aki
> >  > >
> >  > > I have done that. Sent a test mail. Outlook (using IMAP) does not sync the mailbox. It does not even receive the test mail.
> >  > > root@gw:/ # telnet 0 110
> >  > > Trying 0.0.0.0...
> >  > > Connected to 0.
> >  > > Escape character is '^]'.
> >  > > +OK Dovecot ready.
> >  > > user technical@mydomain.name
> >  > > +OK
> >  > > pass XXXXXXX
> >  > > +OK Logged in.
> >  > > stat
> >  > > +OK 330 23948401
> >  > >
> >  > >
> >  > >
> >  > > --
> >  > >
> >  > > Best regards,
> >  > > Odhiambo WASHINGTON,
> >  > > Nairobi,KE
> > 
> >  Hi!
> > 
> >  Are you sure the mail is delivered to right place? Can you see this mail using `doveadm fetch -u odhiambo text mailbox INBOX "*"`?
> > 
> >  Aki
> >
>
> Yes. I use SOGo as the IMAP client (webmail) and see all the emails - all folders. However, Outlook doesn't.
>
>
>
> mail_location = mdbox:~/mdbox
>
> That doveadm command is able to fetch an e-mail, but just one mail.
>
> My error log is filled with lines like this:
>
> Oct 17 11:08:22 imap(sales1@mydomain.name)<34837><tnOAYtmx7f3FtbLX>: Error: Mailbox Trash: Cache /var/spool/virtual/mydomain.name/sales1/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache (http://mydomain.name/sales1/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=8: UID 8:Broken virtual size in mailbox Trash: read(/var/spool/virtual/mydomain.name/sales1/mdbox/storage/m.657 (http://mydomain.name/sales1/mdbox/storage/m.657)): FETCH BODY[] got too little data: 107289 vs 1338249
> Oct 17 11:38:40 imap(sales1@mydomain.name)<63260><C2G6ztmxEcPFtbLX>: Error: Mailbox INBOX: Cache /var/spool/virtual/mydomain.name/sales1/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache (http://mydomain.name/sales1/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=956: UID 956: Broken virtual size in mailbox INBOX: read(/var/spool/virtual/mydomain.name/sales1/mdbox/storage/m.602 (http://mydomain.name/sales1/mdbox/storage/m.602)): FETCH BODY[] got too little data: 203354 vs 774706
> Oct 17 11:38:40 imap(sales@mydomain.name)<62764><IhW6ztmxEMPFtbLX>: Error: Mailbox Trash: Cache /var/spool/virtual/mydomain.name/sales/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache (http://mydomain.name/sales/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=294: UID 294: Broken virtual size in mailbox Trash: read(/var/spool/virtual/mydomain.name/sales/mdbox/storage/m.3 (http://mydomain.name/sales/mdbox/storage/m.3)): FETCH BODY[] got too little data: 6668 vs 937534
> Oct 17 11:38:44 imap(sales1@mydomain.name)<64479><sAT0ztmxFMPFtbLX>: Error: Mailbox Sent Items: Cache /var/spool/virtual/mydomain.name/sales1/mdbox/mailboxes/Sent (http://mydomain.name/sales1/mdbox/mailboxes/Sent) Items/dbox-Mails/dovecot.index.cache: Deleting corrupted cache record uid=1: UID 1: Broken virtual size in mailbox Sent Items: read(/var/spool/virtual/mydomain.name/sales1/mdbox/storage/m.24 (http://mydomain.name/sales1/mdbox/storage/m.24)): FETCH BODY[] got too little data: 5202 vs 1196884
> Oct 17 11:38:46 imap(sales1@mydomain.name)<64795><yPUlz9mxFcPFtbLX>: Error: Mailbox Sent: Cache /var/spool/virtual/mydomain.name/sales1/mdbox/mailboxes/Sent/dbox-Mails/dovecot.index.cache (http://mydomain.name/sales1/mdbox/mailboxes/Sent/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=9: UID 9: Broken virtual size in mailbox Sent: read(/var/spool/virtual/mydomain.name/sales1/mdbox/storage/m.255 (http://mydomain.name/sales1/mdbox/storage/m.255)): FETCH BODY[] got too little data: 46155 vs 1156185
> Oct 17 11:38:47 imap(sales1@mydomain.name)<65316><Vr0/z9mxGMPFtbLX>: Error: Mailbox Trash: Cache /var/spool/virtual/mydomain.name/sales1/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache (http://mydomain.name/sales1/mdbox/mailboxes/Trash/dbox-Mails/dovecot.index.cache): Deleting corrupted cache record uid=8: UID 8: Broken virtual size in mailbox Trash: read(/var/spool/virtual/mydomain.name/sales1/mdbox/storage/m.657 (http://mydomain.name/sales1/mdbox/storage/m.657)): FETCH BODY[] got too little data: 107289 vs 1338249
>
>
>
> --
>
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft.",grep ^[^#] :-)

Can you try, for that one user,

find var/spool/virtual/mydomain.name/sales1/ -name "dovecot.index.cache" -delete ?

and see if the errors come back?

Aki

Done that.

The problem isn't going away though. 


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