From 5d39bf7cca19d6312dca3b6be5d9a1210d435eb9 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 20 Feb 2024 13:38:04 +0300 Subject: 2024-02-20 --- nixosConfigurations/manwe/mailserver/default.nix | 33 ++++++++++++++---------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'nixosConfigurations/manwe/mailserver/default.nix') diff --git a/nixosConfigurations/manwe/mailserver/default.nix b/nixosConfigurations/manwe/mailserver/default.nix index ce32f5e..56dabce 100644 --- a/nixosConfigurations/manwe/mailserver/default.nix +++ b/nixosConfigurations/manwe/mailserver/default.nix @@ -7,7 +7,6 @@ with lib; { imports = [inputs.mailserver.nixosModule]; - # Redis? ark.directories = with config.mailserver; [ "/var/lib/dovecot" "/var/lib/postfix" @@ -84,21 +83,27 @@ with lib; { loginAccounts = import ./hidden.nix lib; }; - # https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/241 - services.redis.servers.rspamd.enable = mkForce false; + services = { + fail2ban.jails = { + dovecot = { + enabled = true; + settings.mode = "aggressive"; + }; + postfix = { + enabled = true; + settings.mode = "aggressive"; + }; + }; + + # https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/275#note_1746383655 + dovecot2.sieve.extensions = ["fileinto"]; + + # https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/241 + redis.servers.rspamd.enable = mkForce false; + }; + systemd.services.rspamd = { requires = mkForce ["redis-default.service"]; after = mkForce ["redis-default.service"]; }; - - services.fail2ban.jails = { - dovecot = { - enabled = true; - settings.mode = "aggressive"; - }; - postfix = { - enabled = true; - settings.mode = "aggressive"; - }; - }; } -- cgit 1.4.1