about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-01 21:24:37 +0900
committersefidel <contact@sefidel.net>2023-08-01 21:27:34 +0900
commit16b152717dc463b3973c7692f387f439aacba2dc (patch)
treea9ab2b80c338c5a99e2d8f6bc4b748a0ea4e25f1 /modules/services
parent58a9d391431de5fc96d8c989bc1e99e98d7c93b4 (diff)
downloadinfra-16b152717dc463b3973c7692f387f439aacba2dc.tar.gz
infra-16b152717dc463b3973c7692f387f439aacba2dc.zip
feat(services/nixos-mailserver): split internal and system mailer
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/nixos-mailserver.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix
index 7a8c5a5..59571bc 100644
--- a/modules/services/nixos-mailserver.nix
+++ b/modules/services/nixos-mailserver.nix
@@ -17,6 +17,11 @@ in
       owner = "dovecot2";
       group = "dovecot2";
     };
+    sops.secrets.system-imap-pass = {
+      mode = "0440";
+      owner = "dovecot2";
+      group = "dovecot2";
+    };
     sops.secrets.internal-imap-pass = {
       mode = "0440";
       owner = "dovecot2";
@@ -84,7 +89,11 @@ in
           hashedPasswordFile = config.sops.secrets.sefidel-imap-pass.path;
         };
         "system@exotic.sh" = {
-          aliases = [ "system@nand.moe" ];
+          aliases = [ "system" "system@nand.moe" ];
+          hashedPasswordFile = config.sops.secrets.system-imap-pass.path;
+        };
+        "internal@exotic.sh" = {
+          aliases = [ "internal" ];
           hashedPasswordFile = config.sops.secrets.internal-imap-pass.path;
         };
       };