summary refs log tree commit diff stats
path: root/system/mail
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:10:14 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 18:21:52 +0200
commit32ab086bd17930fe6e43e7c193a0c86038676c58 (patch)
treeb09c233da35fc8424b8288a78ed660d757c38b23 /system/mail
parentBuild(flake): Update (diff)
downloadnixos-server-32ab086bd17930fe6e43e7c193a0c86038676c58.tar.gz
nixos-server-32ab086bd17930fe6e43e7c193a0c86038676c58.zip
Refactor(system/services/mail): Move mail to services as it's one
Diffstat (limited to 'system/mail')
-rw-r--r--system/mail/default.nix40
-rw-r--r--system/mail/users.nixbin486 -> 0 bytes
2 files changed, 0 insertions, 40 deletions
diff --git a/system/mail/default.nix b/system/mail/default.nix
deleted file mode 100644
index 1086f6e..0000000
--- a/system/mail/default.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-# vim: ts=2
-{lib, ...}: let
-  all_admins = [
-    "sils@vhack.eu"
-    "soispha@vhack.eu"
-    "nightingale@vhack.eu"
-  ];
-  users = import ./users.nix {};
-in
-  lib.recursiveUpdate {
-    enable = true;
-    fqdn = "server1.vhack.eu";
-
-    useFsLayout = true;
-
-    extraVirtualAliases = {
-      "abuse@vhack.eu" = all_admins;
-      "postmaster@vhack.eu" = all_admins;
-      "admin@vhack.eu" = all_admins;
-    };
-
-    mailDirectory = "/srv/mail/vmail";
-    dkimKeyDirectory = "/srv/mail/dkim";
-    sieveDirectory = "/srv/mail/sieve";
-    backup.snapshotRoot = "/srv/mail/backup";
-
-    enableImap = false;
-    enableImapSsl = true;
-    enablePop3 = false;
-    enablePop3Ssl = true;
-    # SMTP
-    enableSubmission = false;
-    enableSubmissionSsl = true;
-    openFirewall = true;
-
-    keyFile = "/var/lib/acme/server1.vhack.eu/key.pem";
-    certificateScheme = "acme";
-    certificateFile = "/var/lib/acme/server1.vhack.eu/fullchain.pem";
-  }
-  users
diff --git a/system/mail/users.nix b/system/mail/users.nix
deleted file mode 100644
index f3264a1..0000000
--- a/system/mail/users.nix
+++ /dev/null
Binary files differ