diff --git a/dovecot.nix b/dovecot.nix index fbec774..5676dd3 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -2,6 +2,8 @@ with lib; let + cfg = config.fudo.mail.dovecot; + sievePath = let isRegularFile = _: type: type == "regular"; sieves = filter isRegularFile (builtins.readDir ./sieves); diff --git a/mail-server.nix b/mail-server.nix index 2ba7cb8..2c8d910 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -342,6 +342,7 @@ in { ]; user = mkUserMap "mailserver-antivirus"; volumes = [ "${cfg.state-directory}/antivirus:/state" ]; + capabilities.SYS_ADMIN = true; }; nixos = { useSystemd = true; diff --git a/rspamd.nix b/rspamd.nix index dc39478..e4a3dcc 100644 --- a/rspamd.nix +++ b/rspamd.nix @@ -63,11 +63,11 @@ in { } ''; - "rbl.conf".text = '' - rbls { - an_rbl - } - ''; + # "rbl.conf".text = '' + # rbls { + # an_rbl + # } + # ''; }; overrides."milter_headers.conf".text = "extended_spam_headers = true;";