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:
Jeff Emmett 2026-02-18 03:36:28 -07:00
parent 670341a26a
commit 5c30d2dfcc
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const smtp = nodemailer.createTransport({
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
pass: process.env.SMTP_PASS || '',
},
tls: { rejectUnauthorized: false },
});
// Email templates

View File

@ -19,6 +19,7 @@ const smtp = nodemailer.createTransport({
user: process.env.SMTP_USER || 'noreply@jeffemmett.com',
pass: process.env.SMTP_PASS || '',
},
tls: { rejectUnauthorized: false },
});
const welcomeEmail = (signup) => ({