From 85c3267e01d823ea1b9e5b041351d7be8586b718 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Wed, 25 Nov 2026 18:51:02 +0100 Subject: modules/mail: Remove the backup options There are three reasons for this: 1) SNM removed these options, and they would now need to be re-implemented via nixos options. 2) They never did anything; `mailserver.backup.enable` defaults to `false` and was never enabled. 3) We should already include the whole mail stuff in the general backups (e.g. the btrfs snapshot should include it). I'm not so sure what happens with in-flight emails, but I guess that is a very rare edge case? --- modules/by-name/ma/mail/module.nix | 7 ------- 1 file changed, 7 deletions(-) (limited to 'modules/by-name/ma/mail/module.nix') diff --git a/modules/by-name/ma/mail/module.nix b/modules/by-name/ma/mail/module.nix index 9567d3e..f0c62d7 100644 --- a/modules/by-name/ma/mail/module.nix +++ b/modules/by-name/ma/mail/module.nix @@ -268,12 +268,6 @@ in { config = lib.mkIf cfg.enable { vhack.persist.directories = [ - { - directory = "/var/lib/mail/backup"; - user = "virtualMail"; - group = "virtualMail"; - mode = "0700"; - } { directory = "/var/lib/mail/vmail"; user = "virtualMail"; @@ -341,7 +335,6 @@ in { keyDirectory = lib.mkIf (cfg.security.dkimKeys == null) "/var/lib/mail/dkim"; }; - backup.snapshotRoot = "/var/lib/mail/backup"; listeners = { imap.enable = false; imaps.enable = true; -- cgit v1.3.1