IMAP email node trigger problem

Good afternoon.

I have the following problem:

Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted ‘error’ event on ImapSimple instance at:
at Connection. (/usr/lib/node_modules/n8n/node_modules/imap-simple/lib/imapSimple.js:39:14)
at Connection.emit (events.js:310:20)
at TLSSocket._onError (/usr/lib/node_modules/n8n/node_modules/imap/lib/Connection.js:151:10)
at TLSSocket.emit (events.js:310:20)
at TLSSocket._emitTLSError (_tls_wrap.js:873:10)
at JSStreamSocket. (_tls_wrap.js:805:36)
at JSStreamSocket.emit (events.js:310:20)
at Socket. (internal/js_stream_socket.js:58:38)
at Socket.emit (events.js:310:20)
at emitErrorNT (internal/streams/destroy.js:92:8) {
errno: ‘ECONNRESET’,
syscall: ‘read’,
source: ‘socket’

Can you help me with this?

Welcome to the community @st.kofe!

Sadly not the slightest idea why the connection does not work. There were always some connection issues because of SSL and the alpine image. Maybe it is also related to that. So if you use docker you can try the special ubuntu images which have -ubuntu attached to them. So for the current version that would be: n8nio/n8n:0.67.3-ubuntu

Maybe it works fine with that one.

Hey @st.kofe,

I have nothing to confirm this based on your error report but this feels like a certificate thing. Is the certificate on the mail server that you are attempting to connect to a self-signed certificate?