feat: change domain
This commit is contained in:
parent
e727922e9c
commit
fb5c340f5f
4 changed files with 23 additions and 30 deletions
|
|
@ -10,8 +10,8 @@
|
|||
];
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.moritz.foo";
|
||||
domains = ["moritz.foo"];
|
||||
fqdn = "mail.moritz.place";
|
||||
domains = ["moritz.place"];
|
||||
|
||||
fullTextSearch = {
|
||||
enable = true;
|
||||
|
|
@ -22,16 +22,16 @@
|
|||
};
|
||||
|
||||
loginAccounts = {
|
||||
"main@moritz.foo" = {
|
||||
"main@moritz.place" = {
|
||||
hashedPasswordFile = config.clan.core.vars.generators.mail-server.files.main-password-hash.path;
|
||||
aliases = ["@moritz.foo"];
|
||||
aliases = ["@moritz.place"];
|
||||
};
|
||||
};
|
||||
|
||||
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
|
||||
# down nginx and opens port 80.
|
||||
certificateScheme = "acme";
|
||||
acmeCertificateName = "any.moritz.foo";
|
||||
acmeCertificateName = "any.moritz.place";
|
||||
};
|
||||
|
||||
clan.core.vars.generators.mail-server = {
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
hostName = "webmail.moritz.foo";
|
||||
hostName = "webmail.moritz.place";
|
||||
dicts = with pkgs.aspellDicts; [en de];
|
||||
extraConfig = ''
|
||||
# starttls needed for authentication, so the fqdn required to match
|
||||
|
|
@ -69,8 +69,8 @@
|
|||
$config['smtp_pass'] = "%p";
|
||||
'';
|
||||
};
|
||||
services.nginx.virtualHosts."webmail.moritz.foo".enableACME = false;
|
||||
services.nginx.virtualHosts."webmail.moritz.foo".useACMEHost = "any.moritz.foo";
|
||||
services.nginx.virtualHosts."webmail.moritz.place".enableACME = false;
|
||||
services.nginx.virtualHosts."webmail.moritz.place".useACMEHost = "any.moritz.place";
|
||||
|
||||
services.borgbackup.jobs = {
|
||||
mailDirectory = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue