add firewall

This commit is contained in:
Robin Raymond 2017-08-11 14:42:24 +02:00
parent 9e56908439
commit 54e56926d6
1 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,12 @@ in
enable = true;
};
# firewall
networking.firewall = {
enable = true;
allowedTCPPorts = [ 25 143 587 ]; # < TODO: make this flexible
};
imports = [
./mail-server/dovecot.nix # dovecot
./mail-server/postfix.nix # postfix