From 376220e80e7f544808dce5324de676eed6dc6f43 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Mar 2018 15:18:56 +0100 Subject: [PATCH] Disable starttls for emails on localhost --- server/lib/emailer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index 9c105a575..1b905e510 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts @@ -46,7 +46,7 @@ class Emailer { secure: CONFIG.SMTP.TLS, debug: CONFIG.LOG.LEVEL === 'debug', logger: bunyanLogger as any, - ignoreTLS: isTestInstance(), + ignoreTLS: isTestInstance() || CONFIG.SMTP.HOSTNAME === 'localhost' || CONFIG.SMTP.HOSTNAME === '127.0.0.1', tls, auth }) -- 2.25.1