Add another domain, fix the mailserver from being able to recieve

This commit is contained in:
Jimbo 2024-10-24 23:04:34 -04:00
parent ac63821835
commit 47bf9a94cd
2 changed files with 14 additions and 3 deletions

View file

@ -7,7 +7,12 @@
mailserver = rec {
enable = true;
domains = [ "${config.secrets.jimDomain}" ];
domains = [
"${config.secrets.jimDomain}"
"${config.secrets.jimDomain2}"
"${config.secrets.lunaDomain}"
"${config.secrets.cornDomain}"
];
fqdn = "mx.${config.secrets.jimDomain}";
certificateScheme = "acme-nginx";
localDnsResolver = false;
@ -26,9 +31,15 @@
hashedPasswordFile = pkgs.writeText "noreply" config.secrets.noreplyMailHash;
sendOnly = true;
};
"jimbo@${config.secrets.jimDomain}" = {
"jimbo@${config.secrets.jimDomain2}" = {
hashedPasswordFile = pkgs.writeText "jimbo" config.secrets.jimboMailHash;
aliases = [ "james@${config.secrets.jimDomain}" "contact@${config.secrets.jimDomain}" ];
aliases = [
"jimbo@${config.secrets.jimDomain}"
"james@${config.secrets.jimDomain}"
"james@${config.secrets.jimDomain2}"
"contact@${config.secrets.jimDomain}"
"contact@${config.secrets.jimDomain2}"
];
};
"luna@${config.secrets.lunaDomain}" = {
hashedPasswordFile = pkgs.writeText "luna" config.secrets.lunaMailHash;

Binary file not shown.