I have the same account setup in a PHP project where I can send mails. I have no abillity yet to setup TLS on the server and therefore thought unencrypted SMTP in house is fine anyway.
Edit: I digged into the project and found that it uses nodemailer. I spun up a small project to look into it and I was able to connect to the server when I used the tls.rejectUnauthorized setting set to false
Hello!
Did you test the above code in the same base-docker image? Because I have the feeling that the docker-image n8n depends on could be the problem as it is Alpine Linux (node:12.9.1-alpine) and I think that there were issues at some point.
So make sure you test the above code in the same container or install n8n in a Ubuntu-Node-Container. Just to be sure that your fix actually fixes the problem.
Hm you could create your own image. But that is not really a great solution as it would still cause problems for all other users. So I guess I have to do something. Either fix the container somehow (sadly not the slightes idea about Alpine Linux), replace the base container or publish at least a second ubuntu based one.
Willl do the second thing now manually that it at least works for you now. Then will think some more what to do. Will write you once it is available.
What do you mean exactly with there is no “editor in the image”? Because tested the container before pushing and now just again. For me, the editor starts just fine.
I picked this topic up again today. I use the 0.28.0. or to be precise I ran
docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n:0.28.0-ubuntu
I also put the .pem file of our self-signed internal Root CA into the docker image via docker cp ca.pem n8n:/etc/ssl/certs
The update-ca-certificates yields
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
In the Frontend I now get:
ERROR: unable to verify the first certificate
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket._finishInit (_tls_wrap.js:636:8)
at Socket.ondata (internal/wrap_js_stream.js:64:22)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:94:17)
In the Ubuntu image I was able to get it to work with the EmailReadImap and EmailSend nodes.
I set the rejectUnauthorized property on the tls settings for both objects to false. So this should either be solvable via certificates on Ubuntu atleast, right?
Thanks for the update! I will try to release a version of n8n later in the day which allows setting that options on the node (like on the HTTP Request Node).
Can you please create a separate question for that. It is never good to mix not related questions. It makes the current one more confusing and also causes the problem that the new question will not be found by other users in the future.
same problem
ERROR: unable to get local issuer certificate
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1474:34)
at TLSSocket.emit (events.js:310:20)
at TLSSocket._finishInit (_tls_wrap.js:917:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:687:12)
docker n8nio/n8n:0.74.0-ubuntu
try t send email via non-tls smtp server on 25 port
(Basically the reason why I disabled SSL in the first place)
I need to check if there’s something else wrong (network-wise, maybe our docker container can’t connnect to our mail server) but our rocketchat instance works with the exact same credentials (and disabled ssl).