summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-24 09:54:28 +0200
committerSilas Schöffel <sils@sils.li>2024-04-24 09:54:28 +0200
commit35eb6deec5400b7afadb52ad932120ac89cc2ed6 (patch)
treedcf9e24eb1a9392f0ad8c4f335b963ec22d6457e
parentfix(treewide): move former git-crypted files to correct location (diff)
downloadnixos-server-35eb6deec5400b7afadb52ad932120ac89cc2ed6.tar.gz
nixos-server-35eb6deec5400b7afadb52ad932120ac89cc2ed6.zip
fix(mail): persist additional state directories
This preserves mail state to prevent running out of memory and thus
makes our mailsetup more reliable.
-rw-r--r--system/impermanence/mods/mail.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/impermanence/mods/mail.nix b/system/impermanence/mods/mail.nix
index 18151ad..0df4685 100644
--- a/system/impermanence/mods/mail.nix
+++ b/system/impermanence/mods/mail.nix
@@ -25,6 +25,18 @@
       mode = "0700";
     }
     {
+      directory = "/var/lib/postifx/data";
+      user = "postifx";
+      group = "postifx";
+      mode = "0700";
+    }
+    {
+      directory = "/var/lib/postifx/queue";
+      user = "postifx";
+      group = "postifx";
+      mode = "0700";
+    }
+    {
       directory = "/var/lib/rspamd";
       user = "rspamd";
       group = "rspamd";