Make the dkim selector dynamic

it has to change with the adminLocation so that multiple cloudrons
can send out emails at the same time.
This commit is contained in:
Girish Ramakrishnan
2017-10-31 10:19:52 -07:00
parent 36534f6bb2
commit 8ede37a43d
6 changed files with 12 additions and 7 deletions

View File

@@ -543,7 +543,7 @@ function addDnsRecords(ip, callback) {
var webadminRecord = { subdomain: config.adminLocation(), type: 'A', values: [ ip ] };
// t=s limits the domainkey to this domain and not it's subdomains
var dkimRecord = { subdomain: constants.DKIM_SELECTOR + '._domainkey', type: 'TXT', values: [ '"v=DKIM1; t=s; p=' + dkimKey + '"' ] };
var dkimRecord = { subdomain: config.dkimSelector() + '._domainkey', type: 'TXT', values: [ '"v=DKIM1; t=s; p=' + dkimKey + '"' ] };
var records = [ ];
if (config.isCustomDomain()) {