Trying to connect to Zoho Mail through IMAP

Describe the problem/error/question

I am trying to create a trigger that happens when zoho mail account receives an email in the inbox.
I am able to setup the connection and test it successfully as a connection, but when I try and run it, I get the following error.

Error: Imap connection closed unexpectedly at ImapSimple.

What is the error message (if any)?

Error: Imap connection closed unexpectedly at ImapSimple. (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js:367:28) at ImapSimple.emit (node:events:524:28) at Connection.emit (node:events:524:28) at Socket. (/usr/local/lib/node_modules/n8n/node_modules/imap/lib/Connection.js:176:10) at Object.onceWrapper (node:events:639:26) at Socket.emit (node:events:536:35) at TCP. (node:net:343:12) at TCP.callbackTrampoline (node:internal/async_hooks:130:17)

Please share your workflow

Its a single trigger event

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

{
“nodes”: [
{
“parameters”: {
“postProcessAction”: “nothing”,
“options”: {
“forceReconnect”: 60
}
},
“type”: “n8n-nodes-base.emailReadImap”,
“typeVersion”: 2,
“position”: [
380,
560
],
“id”: “7bb9d8bd-74c3-44e5-b551-f8435cbf5cf7”,
“name”: “Email Trigger (IMAP)”,
“credentials”: {
“imap”: {
“id”: “zVG7fZdNWI4dWSk2”,
“name”: “Zoho IMAP [email protected] account”
}
}
}
],
“connections”: {
“Email Trigger (IMAP)”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateId”: “2454”,
“templateCredsSetupCompleted”: true,
“instanceId”: “5743c479fc2e08a8c8ff3b602b4782a8694f2d3f985a2ed1818287a8966f6743”
}
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.90.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**cloud
  • **Operating system:**win 11

Hey I hate messing w IMAP, what I do with zoho is use webhooks. They’re free and you can set a filter, incase you don’t want webhooks for every email.