fix(core): Add an option to disable STARTTLS for SMTP connections (#9415)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-05-16 10:45:58 +02:00 committed by GitHub
parent 38b498e73a
commit 0d7358807b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -19,6 +19,7 @@ export class NodeMailer {
host: config.getEnv('userManagement.emails.smtp.host'),
port: config.getEnv('userManagement.emails.smtp.port'),
secure: config.getEnv('userManagement.emails.smtp.secure'),
ignoreTLS: !config.getEnv('userManagement.emails.smtp.startTLS'),
};
if (

View file

@ -816,6 +816,12 @@ export const schema = {
default: true,
env: 'N8N_SMTP_SSL',
},
startTLS: {
doc: 'Whether or not to use STARTTLS for SMTP when SSL is disabled',
format: Boolean,
default: true,
env: 'N8N_SMTP_STARTTLS',
},
auth: {
user: {
doc: 'SMTP login username',