From bebf2d89d335c48659d2e25cb9f6f8310e867fc5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Mar 2018 16:12:52 +0100 Subject: Add option to disable starttls --- server/lib/emailer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib/emailer.ts') diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index 1b905e510..f34d141ea 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() || CONFIG.SMTP.HOSTNAME === 'localhost' || CONFIG.SMTP.HOSTNAME === '127.0.0.1', + ignoreTLS: CONFIG.SMTP.DISABLE_STARTTLS, tls, auth }) -- cgit v1.2.3