I’ve just switched to eM, and added several accounts with good success, and have been watching them sync and pull down my history.
This was great until I noticed my main account had an error flag, which I cleared and retried but then discovered the logs suggested it was throwing an exception at the same point, which seemed to be just after it tried to sync my inbox a second time while it was still connected, and I hadn’t seen this behaviour on any other folders.
Turns out the cause for the error was Dovecot crashing after reaching the thread memory limit of 256mb (the default), which I’ve never seen before. I’m aware my inbox is rather large as I’m redoing my server-side filtering, but the other clients I’m using don’t seem to cause this issue!
I have now increased the serverside limit to 512mb and it’s resolved, but as I was running the stock Dovecot config, I wanted to see if this a known issue, or if there was some abnormality resulting in what seems to be two sync threads running on my inbox at once?
eM main log
2:20:16 PM [IMAP] Synchronizing subfolders: For folder /Archives.2017
2:20:16 PM [IMAP] Synchronizing subfolders: Done 2:20:16 PM [IMAP] Synchronizing messages: For folder /INBOX 2:20:17 PM [IMAP] Synchronizing messages: For folder /INBOX 2:20:19 PM MailClient.Accounts.ConnectionException: 2:20:19 PM () 2:20:19 PM at MailClient.Protocols.Imap.Synchronizer.ImapCommand.ThrowIfConnectionBroken(BasicResponse response) 2:20:19 PM at MailClient.Protocols.Imap.Synchronizer.SynchronizeMessagesCommand.FetchNewMessages(ConnectionContext context, String selectPath, UInt32 idLow, UInt32 idHigh, String idList, Boolean useUid, UInt32 messageCountEstimate, Boolean newestFirst, Boolean breakOnNewMessages) 2:20:19 PM at MailClient.Protocols.Imap.Synchronizer.SynchronizeMessagesCommand.ExecuteInternal(WorkerStatus status) 2:20:19 PM at MailClient.Protocols.Imap.Synchronizer.ImapCommand.Execute(WorkerStatus status) 2:20:19 PM at MailClient.Commands.Command.Process(WorkerStatus status)
**eM IMAP log** 14:21:44.932|044| \* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. 14:21:44.932|004| A0 CAPABILITY 14:21:44.956|044| \* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN 14:21:44.956|044| A0 OK Pre-login capabilities listed, post-login capabilities have more. 14:21:44.956|004| A1 ID ("name" "eM Client" "version" "7.2.38732.0" "GUID" "EMCLIENT\_V1") 14:21:44.980|044| \* ID ("name" "Dovecot") 14:21:44.980|044| A1 OK ID completed. 14:21:44.980|004| A2 AUTHENTICATE PLAIN 14:21:46.787|044| \* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY SPECIAL-USE 14:21:46.787|044| A2 OK Logged in 14:21:46.787|004| A3 ENABLE QRESYNC 14:21:46.811|044| \* ENABLED QRESYNC 14:21:46.811|044| A3 OK Enabled (0.001 + 0.000 secs). 14:21:46.811|004| A4 SELECT "Sent" (CONDSTORE) 14:21:46.835|044| \* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded) 14:21:46.835|044| \* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded \*)] Flags permitted. 14:21:46.835|044| \* 1030 EXISTS 14:21:46.835|044| \* 0 RECENT 14:21:46.835|044| \* OK [UIDVALIDITY 1436706581] UIDs valid 14:21:46.835|044| \* OK [UIDNEXT 1034] Predicted next UID 14:21:46.835|044| \* OK [HIGHESTMODSEQ 604] Highest 14:21:46.835|044| A4 OK [READ-WRITE] Select completed (0.001 + 0.000 secs). 14:21:46.836|004| A5 UID SEARCH RETURN (ALL) UID 1:1033 14:21:46.862|044| \* ESEARCH (TAG "A5") UID ALL 1:928,931:984,986:1033 14:21:46.862|044| A5 OK Search completed (0.001 + 0.000 secs). 14:21:46.863|004| [IMAP] Removing 0 items after synchronization. Account: Folder: /c240e9a1-3b5c-432a-aad3-c95d3e1f2a40/Sent 14:21:46.906|004| A35 UID FETCH 342798:342803 (UID RFC822.SIZE FLAGS INTERNALDATE BODYSTRUCTURE ENVELOPE BODY.PEEK[HEADER.FIELDS (importance x-priority references content-type)] MODSEQ) 14:21:47.297|004| A6 SELECT "INBOX" (CONDSTORE) 14:21:47.325|044| \* OK [CLOSED] Previous mailbox closed. 14:21:47.325|044| \* FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent Junk $Forwarded) 14:21:47.325|044| \* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent Junk $Forwarded \*)] Flags permitted. 14:21:47.325|044| \* 140068 EXISTS 14:21:47.326|044| \* 0 RECENT 14:21:47.326|044| \* OK [UNSEEN 12412] First unseen. 14:21:47.326|044| \* OK [UIDVALIDITY 1436706563] UIDs valid 14:21:47.326|044| \* OK [UIDNEXT 342803] Predicted next UID 14:21:47.326|044| \* OK [HIGHESTMODSEQ 782663] Highest 14:21:47.326|044| A6 OK [READ-WRITE] Select completed (0.005 + 0.000 + 0.004 secs). 14:21:47.326|004| A7 UID FETCH 342798:342803 (UID RFC822.SIZE FLAGS INTERNALDATE BODYSTRUCTURE ENVELOPE BODY.PEEK[HEADER.FIELDS (importance x-priority references content-type)] MODSEQ) 14:21:47.730|004| Exception: MailClient.Accounts.ConnectionException: () 14:21:47.730|004| at MailClient.Protocols.Imap.Synchronizer.ImapCommand.ThrowIfConnectionBroken(BasicResponse response) 14:21:47.730|004| at MailClient.Protocols.Imap.Synchronizer.SynchronizeMessagesCommand.FetchNewMessages(ConnectionContext context, String selectPath, UInt32 idLow, UInt32 idHigh, String idList, Boolean useUid, UInt32 messageCountEstimate, Boolean newestFirst, Boolean breakOnNewMessages) 14:21:47.730|004| at MailClient.Protocols.Imap.Synchronizer.SynchronizeMessagesCommand.ExecuteInternal(WorkerStatus status) 14:21:47.730|004| at MailClient.Protocols.Imap.Synchronizer.ImapCommand.Execute(WorkerStatus status) 14:21:47.730|004| at MailClient.Commands.Command.Process(WorkerStatus status) 14:21:47.731|032| AccountBase.ChangeOnlineState : STATE CHANGE TO offline due BrokenConnection
Mail server log (Dovecot on CentOS)
dovecot: imap(): Fatal: pool\_system\_malloc(3146424): Out of memory dovecot: imap(): Fatal: master: service(imap): child 12046 returned error 83 (Out of memory (service imap { vsz\_limit=256 MB }, you may need to increase it) - set CORE\_O UTOFMEM=1 environment to get core dump)