vary dkim selector per mail domain

this is required for the case where the domain is added on multiple
cloudrons. initially, the plan was to just vary this as a derivation
of the dashboard domain. but this will break existing installation (wildcard
and manual domain setups cannot be re-programmed automatically).
This commit is contained in:
Girish Ramakrishnan
2019-06-10 12:23:29 -07:00
parent 1de785d97c
commit 7e9885012d
10 changed files with 56 additions and 29 deletions

View File

@@ -174,6 +174,8 @@ CREATE TABLE IF NOT EXISTS mail(
catchAllJson TEXT,
relayJson TEXT,
dkimSelector VARCHAR(128) NOT NULL DEFAULT "cloudron",
FOREIGN KEY(domain) REFERENCES domains(domain),
PRIMARY KEY(domain))