IMAP not triggering

Describe the problem/error/question

When I add an IMAP node to check a subfolder, the new mails are marked as read, due to the config, but the node has not triggered. When I “unread” them and trigger the node manually, it works. Just automatic trigger is not working correctly

Please share your workflow

Information on your n8n setup

  • 1.94.0
  • Database: SQLite
  • EXECUTIONS_PROCESS: not set explicitly
  • **Running n8n via Docker
  • Operating system: Debian 11.3
1 Like

IMAP Email Trigger Operation
The node connects to the IMAP server and uses the IDLE command (if available) to listen for new messages in real time.

If IDLE is not supported, you can use periodic polling.

Each new message that matches the filters triggers the flow.

Try the following:

Make sure you use the correct folder name, as interpreted by the IMAP server.

Example: Gmail: “[Gmail]/Inbox” or “INBOX/Subfolder”

Prevent other clients (such as Outlook) from automatically marking emails as read

As mentioned, mails are marked read by the node, it just does not trigger when enabled. It triggers only when running manually. Hence I assume filters and folder name are correct.
There is no other client marking the mails read.
The IMAP server is Fastmail.

Same Problem here. IMAP Trigger ist working correct in Test Mode, in active Mode Mails get marked as Read but nothings happens in the Workflow.

I have the same issue. I use n8n Version 1.88.0 (self hosted). IMAP from fastmail.
For gmail IMAP it worked fine.

Any solution found for this one? I am facing the exact same issue. Only Gmail IMAP Sseems working properly

Delete and recreate the workflow, I just tried and it works

1 Like

I encountered a very strange problem. The email trigger of the archived workflow was still triggered.

Hey there,

I also have issues with the IMAP trigger on n8n stable @ docker. In manual test it sort of randomly succeeds, than again listening forever without input when adding new mails to the source folder and also not working when activated … :frowning:

I’m facing the same issue now. In addition, my workflow is running when I’m clicking on ‘Execute workflow’ but it’s neither getting published nor unpublished.

You can unarchive a workflow by following these steps. Go to workflows. On top right, you see ‘filter’ icon (beside ‘search’ and ‘create folder’ icons). Click on it. You will see a check box with label ‘Show archived workflows’. Check the box and you’ll see archived workflows. open the corresponding workflow, unarchive it (just like you archived it). stop the trigger and delete it if you wish to.

Same problem using the payed version of n8n on the cloud. I’m using IMAP of a Hostinger Mail Server.