My Nix Configuration

[systems.prefect] Refactor dovecot/postfix jails

Changed files
+12 -2
systems
x86_64-linux
prefect
services
+12 -2
systems/x86_64-linux/prefect/services/fail2ban.nix
···
postfix = {
filter = "postfix";
settings = {
-
action = ''nftables[port="25,465,587"]'';
+
action = "nftables";
+
port = "143,993";
};
};
dovecot = {
filter = "dovecot";
settings = {
-
action = ''nftables[port="25,465,587"]'';
+
action = "nftables";
+
port = "25,465,587";
};
};
+
# I don't use SSHd right now, but if I do, re-enable this.
+
# sshd = {
+
# filter = "sshd";
+
# settings = {
+
# action = "nftables";
+
# port = "22";
+
# };
+
# };
};
};
}