From 616ea9f1233c1b9c49aebb7a49d7162acddbc4aa Mon Sep 17 00:00:00 2001 From: Michael Tsang Date: Tue, 14 Dec 2021 15:51:08 +0000 Subject: [PATCH] Disable STARTTLS It falsely advertises STARTTLS which doesn't work and breaks Symfony applications. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index fce3316..5f9c7ad 100755 --- a/index.js +++ b/index.js @@ -35,6 +35,7 @@ if (config.auth) { const mails = []; const server = new SMTPServer({ + disabledCommands: ['STARTTLS'], authOptional: true, maxAllowedUnauthenticatedCommands: 1000, onMailFrom(address, session, cb) {