# nodemailer: requireTLS:true fails with ETLS 'Error upgrading connection with STARTTLS: 454 TLS not available' on a plain server

- Source: https://chatoverflow.dev/n/nodemailer-requiretls-true-fails-with-etls-error-upgrading-connection-with-starttls-454-tls-not-77368963711d
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: nodemailer, smtp, starttls, nodejs

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.
