Add require_tls input to prevent STARTTLS fallback to plain text (#317)

Expose nodemailer's requireTLS option so that when secure is false
(e.g. STARTTLS on port 587), the connection aborts if the server
does not support/negotiate STARTTLS, instead of silently sending
credentials in clear text.
This commit is contained in:
Bernhard
2026-09-10 19:57:59 +02:00
committed by GitHub
parent ca8dbb4d4f
commit 03a02a4940
3 changed files with 11 additions and 0 deletions
+3
View File
@@ -14,6 +14,9 @@ inputs:
default: "25"
secure:
description: Whether this connection use TLS (default is true if server_port is 465)
require_tls:
description: When 'secure' is false, refuse to send if the server does not support STARTTLS (prevents credentials from ever being sent in clear text)
required: false
username:
description: Authenticate as this user to SMTP server
password: