I created a new dovecot installation, and my client (Outlook 2013) is having trouble syncing (frequent errors). On the server side I see the errors below.
Dec 01 17:14:36 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=125.3.26.22, lip=172.16.15.26, mpid=13497, TLS, session=<8HjEPf17CuaHF+zy>
Dec 01 17:14:38 imap([email protected]): Error: Sync failed for mbox file /data/mail/mydomain.com/myuser: UID inserted in the middle of mailbox (10804 > 10802, seq=2, idx_msgs=1)
Dec 01 17:14:38 imap([email protected]): Error: Sync failed for mbox file /data/mail/mydomain.com/myuser: UID inserted in the middle of mailbox (10804 > 10802, seq=2, idx_msgs=1)
On the client side I see errors like
8:04:58 Error synchronizing folder
8:04:58 [800CCCD3-0-0-560]
I've seen some FAQ in Dovecot docs relating to OTHER programs manipulating the mbox store. However, I only run dovecot and postfix - nothing is manipulating messages on the server.
What is causing this?
This has an answer in Dovecot's FAQ, in much too much detail to be copied here, but in short it means that messages are being moved around by something else than dovecot, which is not good. To quote, "It's fine if external software expunges messages or appends new ones. However moving around existing messages, inserting messages in the middle of the file or modifying existing messages isn't allowed."
I would recommend using Maildir, but maybe you don't have that option.