ctucx.git: nixfiles

ctucx' nixfiles

commit 1e3561458beb576068e31f2fc90dee35cdbb8bf8
parent 8d506cc226c08ef18eb0dcd41443631ea7ae19df
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 4 Nov 2022 18:54:30 +0100

machines/osterei/maddy: add `zug.network`
1 file changed, 15 insertions(+), 3 deletions(-)
M
machines/osterei/maddy.nix
|
18
+++++++++++++++---
diff --git a/machines/osterei/maddy.nix b/machines/osterei/maddy.nix
@@ -120,6 +120,16 @@ in {
         _dmarc.TXT               = [ DMARC ];
         "default._domainkey".TXT = [ "v=DKIM1; k=ed25519; p=KYkebiXYSc/+7Rtdz/ZZFRAXAsQnyLPYA6r2uboh5oc=" ];
       };
+    };
+
+    "zug.network" = {
+      inherit MX TXT;
+
+      subdomains = {
+        _dmarc.TXT               = [ DMARC ];
+        "default._domainkey".TXT = [ "v=DKIM1; k=ed25519; p=dH1h2nvPlmT0lIrGddpYRZFTm0AD6D+fsU36McEso2g=" ];
+      };
+    };
   };
 
   users.groups.maddy = {};

@@ -148,6 +158,7 @@ in {
       "thein.ovh"
       "ctucx.de"
       "trans-agenda.de"
+      "zug.network"
     ];
 
     config = ''

@@ -219,9 +230,10 @@ in {
           destination postmaster $(local_domains) {
               modify {
                   replace_rcpt static {
-                     entry postmaster           postmaster@$(primary_domain)
-                     entry leon@thein.ovh       leah@ctu.cx
-                     entry leah@thein.ovh       leah@ctu.cx
+                     entry postmaster             postmaster@$(primary_domain)
+                     entry leon@thein.ovh         leah@ctu.cx
+                     entry aufsicht@zug.network   mail@zug.network
+                     entry verwaltung@zug.network mail@zug.network
                   }
       
                   # Implement plus-address notation.