diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-02-20 13:38:04 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-02-20 13:38:04 +0300 |
commit | 5d39bf7cca19d6312dca3b6be5d9a1210d435eb9 (patch) | |
tree | e9e38212356a49d96aa1763540cd635fffb89b57 /nixosConfigurations/manwe | |
parent | 2024-02-20 (diff) |
2024-02-20
Diffstat (limited to 'nixosConfigurations/manwe')
-rw-r--r-- | nixosConfigurations/manwe/mailserver/default.nix | 33 |
1 files changed, 19 insertions, 14 deletions
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"; - }; - }; } |