From 8b815ea7b9178c2164198214467fd75e3806f5a8 Mon Sep 17 00:00:00 2001 From: plugd Date: Thu, 3 Nov 2022 22:26:11 +0100 Subject: [PATCH] ehlo only replies with STARTTLS when certs provided. --- lambdamail.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lambdamail.scm b/lambdamail.scm index 25b2c57..946f831 100644 --- a/lambdamail.scm +++ b/lambdamail.scm @@ -132,7 +132,8 @@ "250-" (config-host config) " Hello " (smtp-command-args "ehlo" line)) (smtp-session 'send "250 AUTH PLAIN") - (smtp-session 'send "250 STARTTLS") + (if (tls-supported? config) + (smtp-session 'send "250 STARTTLS")) (loop mmsg received-messages)) ((smtp-command? "starttls" line) (let ((args (smtp-command-args "starttls" line))) -- 2.20.1