SMTP_TRANSPORT_JSON Issue with Nodemailer and Port Configuration in Dockerized EnvKey Setup #69
-
Description: I am experiencing an issue with the SMTP_TRANSPORT_JSON configuration and Nodemailer within a Docker container deployment of EnvKey, using the distroless image. This problem is preventing the sending of user signup verification tokens, which is a critical blocker to proceed with user onboarding. The SMTP_TRANSPORT_JSON environment variable is set as follows:
According to this configuration, Nodemailer should use port 25 for SMTP transport. However, it appears that Nodemailer is erroneously using port 443, leading to a "connection refused" error. I followed the deployment instructions from here for community self-hosting EnvKey in a Docker container, but this SMTP/Nodemailer issue has stymied progress. I would appreciate any insights or potential solutions to resolve this problem. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @mario-lemes this doesn't look like an SMTP issue but rather that the EnvKey client can't make a connection to your server. Please make sure this step from the docs work for you:
|
Beta Was this translation helpful? Give feedback.
Yes it's possible, though requires starting the core manually inline and passing either
NODE_EXTRA_CA_CERTS=your-cert-file
for validation or else settingNODE_TLS_REJECT_UNAUTHORIZED=1
(not recommended as it fully disables cert validation--use at your own risk).So you'd start the core inline with:
Then open the EnvKey UI. You'll also have to watch out for the UI automatically restarting its own core process if your inline core process stops for any reason--if that happens it won't be run with the env var and cert validation will start failing.