lukevella / rallly-selfhosted

Example docker configuration for running your own instance of Rallly
https://rallly.co
103 stars 11 forks source link

Cannot send e-mails through mail server with self-signed cert #21

Open michnovka opened 2 months ago

michnovka commented 2 months ago

Using the latest version, I get the following error:

rallly-1     | Error sending email Error: self-signed certificate in certificate chain
rallly-1     |     at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
rallly-1     |     at TLSSocket.emit (node:events:517:28)
rallly-1     |     at TLSSocket.emit (node:domain:489:12)
rallly-1     |     at TLSSocket._finishInit (node:_tls_wrap:1070:8)
rallly-1     |     at ssl.onhandshakedone (node:_tls_wrap:856:12)
rallly-1     |     at TLSWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
rallly-1     |   code: 'ESOCKET',
rallly-1     |   command: 'CONN'
rallly-1     | }

Using this config:

# The host address of your SMTP server
SMTP_HOST=10.0.0.1

# The port of your SMTP server
SMTP_PORT=25

# Set to "true" if SSL is enabled for your SMTP connection
SMTP_SECURE=false

# The username (if auth is enabled on your SMTP server)
SMTP_USER=XXXXXXXXXXXX

# The password (if auth is enabled on your SMTP server)
SMTP_PWD=XXXXXXXXXXXX

SMTP_TLS_ENABLED=false

I need an option to ignore self signed cert

michnovka commented 2 months ago

as a workaround, at least Id like to see in debug log the verification code which is being sent, so I can verify my account. Is there some way to enable such verbose debugging? Thanks