diff --git a/src/mail.js b/src/mail.js index 2bd6e22e7..dc4afa237 100644 --- a/src/mail.js +++ b/src/mail.js @@ -75,7 +75,7 @@ const assert = require('assert'), nodemailer = require('nodemailer'), notifications = require('./notifications.js'), path = require('path'), - platform = require('./platforms.js'), + platform = require('./platform.js'), safe = require('safetydance'), services = require('./services.js'), shell = require('./shell.js')('mail'), @@ -860,7 +860,7 @@ async function setMailEnabled(domain, enabled, auditSource) { await updateDomain(domain, { enabled }); await mailServer.restart(); - await platform.onMailServerIncomingDomainsChanged(); + await platform.onMailServerIncomingDomainsChanged(auditSource); await eventlog.add(enabled ? eventlog.ACTION_MAIL_ENABLED : eventlog.ACTION_MAIL_DISABLED, auditSource, { domain }); }