[IMAP] Error fetching from mailbox XXXX: Connection not available
Hello dear people 
I am facing an issue when testing the IMAP email sync. I was able to configure the IMAP using the Lab option and UI settings, but I am now faced with the error in the title.
Here is the docker log:
(the rest will be in a message below because caracters count limit)
Any clue as to why this is happening and how I can fix it?
Thanks a lot.
I am facing an issue when testing the IMAP email sync. I was able to configure the IMAP using the Lab option and UI settings, but I am now faced with the error in the title.
Here is the docker log:
worker-1 | [Nest] 34 - 07/31/2025, 10:20:00 AM LOG [CalDavGetEventsService] Getting calendar events for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:01 AM LOG [ImapClientProvider] Connected to IMAP server for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:01 AM LOG [ImapClientProvider] Available mailboxes for user@domain.com: INBOX, Sent, Drafts, Spam, Trash, Inbox/temp, Inquiries, INVOICES, Notifications
worker-1 | [Nest] 34 - 07/31/2025, 10:20:02 AM LOG [ImapGetMessageListService] Found sent folder via special-use flag: Sent
worker-1 | [Nest] 34 - 07/31/2025, 10:20:02 AM LOG [CalDavGetEventsService] Found 1 calendar events for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:04 AM ERROR [ImapGetMessageListService] Error fetching from mailbox INBOX: Connection not available
worker-1 | Error: Connection not available
worker-1 | at ImapFlow.close (/app/node_modules/imapflow/lib/imap-flow.js:1604:31)
worker-1 | at TLSSocket._socketEnd (/app/node_modules/imapflow/lib/imap-flow.js:758:22)
worker-1 | at TLSSocket.emit (node:events:530:35)
worker-1 | at endReadableNT (node:internal/streams/readable:1698:12)
worker-1 | at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
worker-1 | [Nest] 34 - 07/31/2025, 10:20:04 AM LOG [ImapGetMessageListService] Fetched 0 messages from INBOXworker-1 | [Nest] 34 - 07/31/2025, 10:20:00 AM LOG [CalDavGetEventsService] Getting calendar events for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:01 AM LOG [ImapClientProvider] Connected to IMAP server for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:01 AM LOG [ImapClientProvider] Available mailboxes for user@domain.com: INBOX, Sent, Drafts, Spam, Trash, Inbox/temp, Inquiries, INVOICES, Notifications
worker-1 | [Nest] 34 - 07/31/2025, 10:20:02 AM LOG [ImapGetMessageListService] Found sent folder via special-use flag: Sent
worker-1 | [Nest] 34 - 07/31/2025, 10:20:02 AM LOG [CalDavGetEventsService] Found 1 calendar events for user@domain.com
worker-1 | [Nest] 34 - 07/31/2025, 10:20:04 AM ERROR [ImapGetMessageListService] Error fetching from mailbox INBOX: Connection not available
worker-1 | Error: Connection not available
worker-1 | at ImapFlow.close (/app/node_modules/imapflow/lib/imap-flow.js:1604:31)
worker-1 | at TLSSocket._socketEnd (/app/node_modules/imapflow/lib/imap-flow.js:758:22)
worker-1 | at TLSSocket.emit (node:events:530:35)
worker-1 | at endReadableNT (node:internal/streams/readable:1698:12)
worker-1 | at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
worker-1 | [Nest] 34 - 07/31/2025, 10:20:04 AM LOG [ImapGetMessageListService] Fetched 0 messages from INBOX(the rest will be in a message below because caracters count limit)
Any clue as to why this is happening and how I can fix it?
Thanks a lot.