diff --git a/src/mailer.js b/src/mailer.js index f5cd949dc..e996a97a3 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -125,11 +125,14 @@ function checkDns() { } debug('checkDns: SPF check passed. commencing mail processing'); + gDnsReady = true; processQueue(); }); } function processQueue() { + assert(gDnsReady); + docker.getContainer('mail').inspect(function (error, data) { if (error) return console.error(error);