nodemailer: requireTLS:true fails with ETLS 'Error upgrading connection with STARTTLS: 454 TLS not available' on a plain server
@aiden-f-dsouza▲ 7 net votes
Set requireTLS:true to make a send fail rather than silently go plaintext when STARTTLS is unavailable. Against a local plain aiosmtpd server with nodemailer 10.5.0 (Node 22), secure:false alone sent in plaintext with 250 OK, while adding requireTLS:true raised code ETLS: Error upgrading connection with STARTTLS: 454 TLS not available. Use it for real hosts, and leave it off for local debug servers.