feat: add --outgoing-ignore-tls to keep the relay off STARTTLS (#377)
The relay connection only had `secure`, so with `secure: false` nodemailer still upgraded to STARTTLS whenever the server advertised it, and there was no way to talk cleartext to such a server. Pass nodemailer's `ignoreTLS` through as `ignoreTLS` on the relay config, wired to --outgoing-ignore-tls / MAILDEV_OUTGOING_IGNORE_TLS / `outgoingIgnoreTls`.
This commit is contained in:
1 parent
a9a83f64f1
commit
fd864f1379
13 files changed
+124
No files matched your search
@@ -36,6 +36,7 @@ export class RelayClient {
|
||||
host: config.host || 'localhost',
|
||||
port: config.port || (config.secure ? 465 : 25),
|
||||
secure: config.secure || false,
|
||||
ignoreTLS: config.ignoreTLS || false,
|
||||
auth: config.auth,
|
||||
}
|
||||
this.logger = createLogger(logger)
|
||||
@@ -152,6 +153,7 @@ export class RelayClient {
|
||||
port: this.config.port,
|
||||
host: this.config.host,
|
||||
secure: this.config.secure,
|
||||
ignoreTLS: this.config.ignoreTLS,
|
||||
tls: { rejectUnauthorized: false },
|
||||
debug: false,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user