From 4de20bfa0d8d3aa3d0efe33a099e0d7ae530104f Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 27 Jul 2017 11:47:32 +0300 Subject: [PATCH] Allow modifying banners --- imap.js | 6 +++--- lmtp.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imap.js b/imap.js index 0b99d6ea..619e3916 100644 --- a/imap.js +++ b/imap.js @@ -44,9 +44,9 @@ const serverOptions = { ignoreSTARTTLS: config.imap.ignoreSTARTTLS, id: { - name: 'Wild Duck IMAP Server', - version: packageData.version, - vendor: 'Kreata' + name: config.imap.name || 'Wild Duck IMAP Server', + version: config.imap.version || packageData.version, + vendor: config.imap.vendor || 'Kreata' }, logger: { diff --git a/lmtp.js b/lmtp.js index 1b949562..a983e646 100644 --- a/lmtp.js +++ b/lmtp.js @@ -36,7 +36,7 @@ const serverOptions = { name: false, // not required but nice-to-have - banner: 'Welcome to Wild Duck Mail Server', + banner: config.lmtp.banner || 'Welcome to Wild Duck Mail Server', disabledCommands: ['AUTH'],