diff --git a/src/mail.js b/src/mail.js index c211a9d17..7aa6b19d9 100644 --- a/src/mail.js +++ b/src/mail.js @@ -1018,7 +1018,7 @@ async function setMailFromValidation(domain, enabled) { await updateDomain(domain, { mailFromValidation: enabled }); - safe(restartMail()); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) + safe(restartMail(), { debug }); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) } async function setBanner(domain, banner) { @@ -1027,7 +1027,7 @@ async function setBanner(domain, banner) { await updateDomain(domain, { banner }); - safe(restartMail()); + safe(restartMail(), { debug }); } async function setCatchAllAddress(domain, addresses) { @@ -1036,7 +1036,7 @@ async function setCatchAllAddress(domain, addresses) { await updateDomain(domain, { catchAll: addresses }); - safe(restartMail()); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) + safe(restartMail(), { debug }); // have to restart mail container since haraka cannot watch symlinked config files (mail.ini) } async function setMailRelay(domain, relay, options) { @@ -1060,7 +1060,7 @@ async function setMailRelay(domain, relay, options) { await updateDomain(domain, { relay: relay }); - safe(restartMail()); + safe(restartMail(), { debug }); } async function setMailEnabled(domain, enabled, auditSource) { @@ -1070,7 +1070,7 @@ async function setMailEnabled(domain, enabled, auditSource) { await updateDomain(domain, { enabled: enabled }); - safe(restartMail()); + safe(restartMail(), { debug }); await eventlog.add(enabled ? eventlog.ACTION_MAIL_ENABLED : eventlog.ACTION_MAIL_DISABLED, auditSource, { domain }); }