summary refs log tree commit diff stats
path: root/system/mail
diff options
context:
space:
mode:
Diffstat (limited to 'system/mail')
-rw-r--r--system/mail/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/mail/default.nix b/system/mail/default.nix
new file mode 100644
index 0000000..b09f8f1
--- /dev/null
+++ b/system/mail/default.nix
@@ -0,0 +1,27 @@
+# vim: ts=2
+{...}: {
+  enable = true;
+  fqdn = "server1.vhack.eu";
+  domains = ["vhack.eu"];
+
+  mailDirectory = "/srv/mail/vmail";
+  dkimKeyDirectory = "/srv/mail/dkim";
+  backup.snapshotRoot = "/srv/mail/backup";
+
+  loginAccounts = {
+    "sils@vhack.eu" = {
+      hashedPasswordFile = "/srv/mail/.secrets/silsmailpswd";
+    };
+  };
+
+  extraVirtualAliases = {
+    "abuse@vhack.eu" = ["sils@vhack.eu"];
+    "postmaster@vhack.eu" = ["sils@vhack.eu"];
+    "admin@vhack.eu" = ["sils@vhack.eu"];
+  };
+
+  sieveDirectory = "/srv/mail/sieve";
+  keyFile = "/var/lib/acme/server1.vhack.eu/key.pem";
+  certificateScheme = 1;
+  certificateFile = "/var/lib/acme/server1.vhack.eu/fullchain.pem";
+}