settings: move mailFqdn/Domain into mailServer
This commit is contained in:
@@ -8,6 +8,7 @@ const apps = require('../apps.js'),
|
||||
expect = require('expect.js'),
|
||||
fs = require('fs'),
|
||||
mailer = require('../mailer.js'),
|
||||
mailServer = require('../mailserver.js'),
|
||||
nock = require('nock'),
|
||||
path = require('path'),
|
||||
paths = require('../paths.js'),
|
||||
@@ -221,7 +222,7 @@ async function domainSetup() {
|
||||
nock.cleanAll();
|
||||
|
||||
await databaseSetup();
|
||||
await settings.setMailLocation(domain.domain, `${constants.DASHBOARD_SUBDOMAIN}.${domain.domain}`); // default mail location. do this before we add the domain for upserting mail DNS
|
||||
await mailServer.initLocation(domain.domain, `${constants.DASHBOARD_SUBDOMAIN}.${domain.domain}`); // default mail location. do this before we add the domain for upserting mail DNS
|
||||
await domains.add(domain.domain, domain, auditSource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user