fix: add TLS rejectUnauthorized:false for Mailcow self-signed cert
Nodemailer rejects self-signed certificates by default, causing STARTTLS handshake failures with Mailcow Postfix. Added tls option to both waitlist and application SMTP transports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
670341a26a
commit
5c30d2dfcc
|
|
@ -19,6 +19,7 @@ const smtp = nodemailer.createTransport({
|
||||||
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
|
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
|
||||||
pass: process.env.SMTP_PASS || '',
|
pass: process.env.SMTP_PASS || '',
|
||||||
},
|
},
|
||||||
|
tls: { rejectUnauthorized: false },
|
||||||
});
|
});
|
||||||
|
|
||||||
// Email templates
|
// Email templates
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ const smtp = nodemailer.createTransport({
|
||||||
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
|
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
|
||||||
pass: process.env.SMTP_PASS || '',
|
pass: process.env.SMTP_PASS || '',
|
||||||
},
|
},
|
||||||
|
tls: { rejectUnauthorized: false },
|
||||||
});
|
});
|
||||||
|
|
||||||
const welcomeEmail = (signup) => ({
|
const welcomeEmail = (signup) => ({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue