Send mail: Client network socket disconnected before secure TLS connection was established

Hi!
Error:
“Client network socket disconnected before secure TLS connection was established”.
For system emails (user invitation or password recovery) “N8N_SMTP_STARTTLS: off” saved the problem. How to do this in a node?
The SSL/TLS button does not help (just as N8N_SMTP_SSL or N8N_SMTP_TLS did not help)

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Do you have SSL/TLS set to off in the credential?

Created a PR to add support for disabling STARTTLS in the node.
Also published a custom docker image for testing: n8nio/n8n:starttls.

Would it be possible for you to pull in this image, and test of this fixes the issue for you?

2 Likes

I’m having some difficulties with the test. I will wait for the release with this update and will report back. Thank you very much! :slightly_smiling_face:

New version [email protected] got released which includes the GitHub PR 10147.

1 Like

It’s all working. Thank you for your quick help!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.