nixfiles/hosts/hetzner-vm/modules/mailserver/firewall.nix

27 lines
379 B
Nix
Raw Normal View History

{
lib,
config,
...
}: let
mail_config = config.mailserver;
in {
2022-12-04 16:10:00 +00:00
config = lib.mkIf mail_config.enable {
networking.firewall = {
allowedTCPPorts = [
# SMTP
25
# Submission
587
# Submission w/ SSL
465
# IMAP
143
# IMAP w/ SSL
993
# Sieve
4190
];
};
2022-06-22 15:51:22 +01:00
};
}