ehlo only replies with STARTTLS when certs provided. starttls
authorplugd <plugd@tiny.fimnet>
Thu, 3 Nov 2022 21:26:11 +0000 (22:26 +0100)
committerplugd <plugd@tiny.fimnet>
Thu, 3 Nov 2022 21:26:11 +0000 (22:26 +0100)
lambdamail.scm

index 25b2c57..946f831 100644 (file)
                           "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)))