Restart mail server after DKIM keys are generated

Haraka won't do change notification on those
This commit is contained in:
Girish Ramakrishnan
2018-03-13 09:53:38 -07:00
parent ace1f36f9c
commit 873ea0fecd
+2 -2
View File
@@ -734,8 +734,8 @@ function add(domain, callback) {
if (error) return callback(new MailError(MailError.INTERNAL_ERROR, error));
async.series([
restartMail,
addDnsRecords.bind(null, domain)
addDnsRecords.bind(null, domain), // do this first to ensure DKIM keys
restartMail
], NOOP_CALLBACK); // do these asynchronously
callback();