How can I configure it to novalidate-certs, or using starttls?
I needed to run the mailer on port 465, having tls, but was not allowed to just put in an IP Address.
app-1 | 16:28:01 0|app | 2024-12-26 16:28:01: [error] EmailService: Could not run maintenance: Error: Hostname/IP does not match certificate's altnames: IP: 172.17.0.1 is not in the cert's list:
app-1 | 16:28:01 0|app | at new NodeError (node:internal/errors:405:5)
app-1 | 16:28:01 0|app | at Object.checkServerIdentity (node:tls:337:12)
app-1 | 16:28:01 0|app | at TLSSocket.onConnectSecure (node:_tls_wrap:1669:27)
app-1 | 16:28:01 0|app | at TLSSocket.emit (node:events:517:28)
app-1 | 16:28:01 0|app | at TLSSocket._finishInit (node:_tls_wrap:1070:8)
app-1 | 16:28:01 0|app | at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:856:12) {
app-1 | 16:28:01 0|app | reason: "IP: 172.17.0.1 is not in the cert's list: ",
app-1 | 16:28:01 0|app | host: '172.17.0.1',
app-1 | 16:28:01 0|app | cert: {
app-1 | 16:28:01 0|app | subject: [Object: null prototype] { CN: 'mailer.com' },
app-1 | 16:28:01 0|app | issuer: [Object: null prototype] { C: 'US', O: "Let's Encrypt", CN: 'E5' },
app-1 | 16:28:01 0|app | subjectaltname: 'DNS:joplin.mailer.com, DNS:mailer.com',
app-1 | 16:28:01 0|app | infoAccess: [Object: null prototype] {
...
app-1 | 16:28:01 0|app | issuerCertificate: [Object]
app-1 | 16:28:01 0|app | }
app-1 | 16:28:01 0|app | },
app-1 | 16:28:01 0|app | code: 'ESOCKET',
app-1 | 16:28:01 0|app | command: 'CONN'
app-1 | 16:28:01 0|app | }