create dkim key when mail domain is added

This commit is contained in:
Girish Ramakrishnan
2018-01-24 21:30:06 -08:00
parent 7c361a87b0
commit af6d8f41ee
4 changed files with 48 additions and 47 deletions

View File

@@ -243,6 +243,8 @@ function hasIPv6() {
return fs.existsSync(IPV6_PROC_FILE);
}
// it has to change with the adminLocation so that multiple cloudrons
// can send out emails at the same time.
function dkimSelector() {
var loc = adminLocation();
return loc === 'my' ? 'cloudron' : `cloudron-${loc.replace(/\./g, '')}`;