[IMAP] MailClient.Accounts.ConnectionException: Moving item(s) from folder 'Inbox' to folder '/Inbox.idgnotifybot' failed due to the following error: Lost connection with server

I’ve been using for a few years no problem but today I started getting the red exclamation point indicating an error with one of my accounts.

I am running eM Client v10.1.4588 (f11e2ab) on a windows 11 machine with 3 email accounts. Two of the email accounts are work imap accounts on the same server and one account is a gmail account. I’d really appreciate any help.

The two work accounts are hosted at porkbun.com and one of those accounts works fine while the other, jeramie@ is the one with the error below. I can send email fine from the jeramie@ account but cannot receive.

I have tried the following:

  • restart eM Client
  • restart my computer
  • rename the jeramie@ account and disable imap/smtp/check when sync’ing and add the account again.
    • this worked for a few hours and then stopped working and throws the same error now.
  • i tried deleting the idgnotifybot folder which was had several thousand messages in it.
  • emptied trash
  • disabled all message rules

I double checked that the server settings are identical between the two work emails.

I can access the jeramie@ account fine from my iPhone as well as from the webmail portal porkbun provides.

Here’s the error i’m getting:
eM Client 10.1.4588+f11e2ab373 (Windows)
6:02:39 PM Online state: changed to online due to NetworkAvailability
6:02:39 PM jeramie@xx IMAP Moving item(s) from folder ‘/Inbox’ to folder ‘/Inbox.idgnotifybot’
6:02:39 PM taneia@xx IMAP Synchronizing folder ‘/Inbox’
6:02:39 PM [email protected] IMAP Synchronizing folder ‘/All Mail’
6:02:39 PM [email protected] Google Calendar Uploading item(s) to folder ‘/xx- Family’
6:02:39 PM [email protected] Google Contacts Synchronizing folder list
6:02:39 PM [email protected] Google Contacts Synchronizing folder ‘/All Contacts’
6:02:39 PM [email protected] Google Settings Synchronizing tags
6:02:40 PM [email protected] Google Contacts Synchronizing folder ‘/Other Contacts’
6:02:40 PM [email protected] Google Contacts Synchronizing folder list
6:02:40 PM [email protected] Google Calendar Synchronizing folder list
6:02:40 PM jeramie@xx [IMAP] MailClient.Accounts.ConnectionException: Moving item(s) from folder ‘jeramie@xx/Inbox’ to folder ‘jeramie@xx/Inbox.idgnotifybot’ failed due to the following error: Lost connection with server
—> MailClient.Imap.Base.ConnectionLostException: Lost connection with server
at MailClient.Imap.Base.Extensions.<>c__DisplayClass30_0.<g__SlowAsyncPath|1>d.MoveNext()
— End of stack trace from previous location —
at MailClient.Imap.Base.Connection.ReceiveAsync()
— End of inner exception stack trace —
at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status)
at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status)
at MailClient.Commands.Command.Process(WorkerStatus status)
AccountId = 41cfd813-0238-4c5f-af5b-29724b4747d7
AccountName = jeramie@xx
IMAP_SERVER_TYPE = Dovecot
RunInPlace = False
EnqueuedStackTrace =
at MailClient.Protocols.Common.ItemSynchronizer2.EnqueueMove(Folder folder, IEnumerable1 items, Folder targetFolder)
at MailClient.Protocols.Common.ItemSynchronizer2.GoOnline() at MailClient.Protocols.Imap.ImapMailSynchronizer.GoOnline() at MailClient.Protocols.Imap.ImapAccount.GoOnlineInt() at MailClient.Protocols.Common.AccountBase.ChangeOnlineState(Boolean online, OfflineReason offlineReason) at MailClient.Protocols.Common.AccountBase.GoOnline() at MailClient.Accounts.AccountList.<>c__DisplayClass24_0.<SetOnlineState>b__1(IAccount account) at System.Threading.Tasks.Parallel.<>c__DisplayClass43_02.b__1(IEnumerator& partitionState, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica1.ExecuteAction(Boolean& yieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() at System.Threading.Tasks.TaskReplicator.Replica.<>c.<.ctor>b__4_0(Object s) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread) at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.Task.InternalRunSynchronously(TaskScheduler scheduler, Boolean waitForCompletion) at System.Threading.Tasks.Task.RunSynchronously(TaskScheduler scheduler) at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body)
at MailClient.Accounts.AccountList.SetOnlineState(Boolean online, OfflineReason offlineReason, IComparer1 comparer) at MailClient.Accounts.BindingAccountBase.GoOnline() at MailClient.Accounts.AccountList.<>c__DisplayClass24_0.<SetOnlineState>b__1(IAccount account) at System.Threading.Tasks.Parallel.<>c__DisplayClass43_02.b__1(IEnumerator& partitionState, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica1.ExecuteAction(Boolean& yieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() at System.Threading.Tasks.TaskReplicator.Replica.<>c.<.ctor>b__4_0(Object s) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__281_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread) at System.Threading.Tasks.Task.ExecuteFromThreadPool(Thread threadPoolThread) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback() GUIStatus_Exception_Reported = True 6:02:40 PM jeramie@xx [IMAP] System.Threading.Tasks.TaskCanceledException: A task was canceled. at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced) at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<<SynchronizeAsync>b__0>d.MoveNext() GUIStatus_Exception_Reported = True 6:02:41 PM [email protected] Google Calendar Synchronizing folder '/Calendar' 6:02:41 PM taneia@xx IMAP Synchronizing folder list 6:02:41 PM taneia@xx IMAP Synchronizing folder '/Inbox.Alaska 2020 Cancellations' 6:02:42 PM taneia@xx IMAP Synchronizing folder '/Inbox.Alaska 2020 Confirmations' 6:02:42 PM [email protected] IMAP Synchronizing folder list 6:02:42 PM taneia@xx IMAP Synchronizing folder '/Inbox.Europe Trip Confirmations' 6:02:42 PM taneia@xx IMAP Synchronizing folder '/Inbox.Las Vegas Confirmations' 6:02:42 PM taneia@xx IMAP Synchronizing folder '/Inbox.Mexico 2019 Confirmation' 6:02:43 PM taneia@xx IMAP Synchronizing folder '/Inbox.Old Email' 6:02:43 PM taneia@xx IMAP Synchronizing folder '/Inbox.Student Loans' 6:03:44 PM jeramie@xx IMAP Moving item(s) from folder '/Inbox' to folder '/Inbox.idgnotifybot' 6:03:45 PM jeramie@xx [IMAP] MailClient.Accounts.ConnectionException: Moving item(s) from folder 'jeramie@xx/Inbox' to folder 'jeramie@xx/Inbox.idgnotifybot' failed due to the following error: Lost connection with server ---> MailClient.Imap.Base.ConnectionLostException: Lost connection with server at MailClient.Imap.Base.Extensions.<>c__DisplayClass30_0.<<ReadLineAsync>g__SlowAsyncPath|1>d.MoveNext() --- End of stack trace from previous location --- at MailClient.Imap.Base.Connection.ReceiveAsync() --- End of inner exception stack trace --- at MailClient.Protocols.Imap.ImapActionCommand.ExecuteInternalSync(WorkerStatus status) at MailClient.Protocols.Imap.ImapActionCommand.Execute(WorkerStatus status) at MailClient.Commands.Command.Process(WorkerStatus status) AccountId = 41cfd813-0238-4c5f-af5b-29724b4747d7 AccountName = jeramie@xx IMAP_SERVER_TYPE = Dovecot RunInPlace = False EnqueuedStackTrace = at MailClient.Protocols.Common.ItemSynchronizer2.EnqueueMove(Folder folder, IEnumerable1 items, Folder targetFolder) at MailClient.Protocols.Common.ItemSynchronizer2.GoOnline()
at MailClient.Protocols.Imap.ImapMailSynchronizer.GoOnline()
at MailClient.Protocols.Imap.ImapAccount.GoOnlineInt()
at MailClient.Protocols.Common.AccountBase.ChangeOnlineState(Boolean online, OfflineReason offlineReason)
at MailClient.Protocols.Common.AccountBase.GoOnline()
at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
at MailClient.Protocols.Imap.ImapAccount.RunIfOnline(Action ifOnline, Action ifOffline)
at MailClient.Protocols.Imap.ImapFolderSynchronizer.GetQuotaInformationAsync(Folder folder, CancellationToken cancellationToken, Action2 completed) at MailClient.Storage.Application.Folder.GetQuotaInformationAsync(CancellationToken cancellationToken, Action2 completed)
at MailClient.UI.Forms.FormFolderProperties.TabSwitcher_AfterPanelActivated(Object sender, PanelEventArgs e)
at MailClient.Common.UI.Controls.ControlPanelSwitcher.ControlPanelSwitcher.OnAfterPanelActivated(PanelEventArgs e)
at MailClient.Common.UI.Controls.ControlPanelSwitcher.ControlPanelTabSwitcher.OnAfterPanelActivated(PanelEventArgs e)
at MailClient.Common.UI.Controls.ControlPanelSwitcher.ControlPanelSwitcher.ActivatePanel(SwitchPanel panel)
at MailClient.Common.UI.Controls.ControlPanelSwitcher.ControlPanelTabSwitcher.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at MailClient.Common.UI.Controls.AutomationViewUserControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at MailClient.UI.Forms.FormFolderProperties.ShowDialog(IWin32Window owner, Folder folder, FolderType folderType, String tabToActivate)
at MailClient.UI.Controls.Folders.controlFolders.menuItem_Context_Properties_Click(Object sender, EventArgs e)
at System.Windows.Forms.BindableComponent.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at MailClient.Common.UI.Controls.ContextMenuStripEx.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at MailClient.Program.<>c.b__205_3()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at MailClient.Common.UI.Forms.BaseForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Xilium.CefGlue.Interop.libcef.run_message_loop()
at MailClient.Program.Main(String args)
GUIStatus_Exception_Reported = True
6:03:45 PM jeramie@xx [IMAP] System.Threading.Tasks.TaskCanceledException: A task was canceled.
at MailClient.Protocols.Imap.ImapAccount.SynchronizeIntAsync(Boolean forced)
at MailClient.Protocols.Common.SynchronizableMailAccount.<>c__DisplayClass22_0.<b__0>d.MoveNext()
GUIStatus_Exception_Reported = True

I did a restore in eMclient and its working again. at least for now. Seems like there was something wrong with whereever the data is stored locally. My best guess anyway.

Crud the error is back. I can send but not receive.

MailClient.Imap.Base.ConnectionLostException: Lost connection with server.

restart eM Client
restart my computer
rename the jeramie@ account and disable imap/smtp/check when sync’ing and add the account again.
this worked for a few hours and then stopped working and throws the same error now.

As you have already tried removing and readding the account and also tried restoring a backup and only worked for a while, it doesn’t sound like an eM Client issue. Sounds like either some external issue, either with possibly a eg: locally installed software program in memory or a remote mail server issue or a physical connection issue.

Sometimes you can get lost connection to servers if you use a dynamic (non static) internet connection and the IP address you have been assigned goes stale, so can then goes too slow and can then loose connection to the mail server if there is alot of data trying to sync. So try powering off your modem / router for say 2 minutes and then back on & see if that makes any difference to that specific mail account.

Also sometimes resident programs in memory can cause interferance with mail account synching from the server where they can cause delays and then slow too much. Programs such as eg: optionally installed firewall / security programs or optionally installed antivirus programs or VPNs. So if you have anything like that installed “other than what comes default with the Windows 11 OS”, then try completely disabling those to test incase of any interference.

Apart from that, there has been some users where they upgraded to V10 from eg: V8 or V9 and then started to get connection problems due to their mail servers were using older mail server software that hasn’t been updated so then caused issues with V10 connecting where they had to then use a eg: diagnostic string in the IMAP tab. But “being your other account on the same server works ok”, then I don’t think that would be the case for this issue.

Also if you haven’t already, try uninstalling eM Client and “don’t delete the database” when asked on the uninstall wizard and then download and reinstall v10.1.4588 from the release history page and see if that makes any difference.

Failing that you could also try “creating a brand new mail database to test”, via closing eM Client and then going to the following eM Client hidden folder and renaming it to eg: eM Client-Old. Then reopen eM Client and setup new and see if that makes any difference as could be something wrong with your overall current database.

Hidden mail database folder Windows”
“Users\yourusername\AppData\Roaming\eM Client”

Lastly if even a new database makes no difference then “close eM Client again” and delete the new eM Client database in the hidden folder, and then rename the eM Client-Old database back to eM Client and reopen eM Client. Then suggest if you have a current active paid Pro or Personal version, to go to the VIP support page and lodge a support ticket who can assist you further.

Note: If you have run out of your initial 12 months support you can extend that for another 12 months via the following webpage.
.

Thank you very much for your help cyberzork, I tried uninstalling without deleting the database and re-installing and that seems to have worked!

I very much appreciate your time