Open firewalls
This commit is contained in:
parent
52524b595f
commit
90817bb155
|
@ -412,6 +412,11 @@ in {
|
|||
imports = [ ./rspamd.nix ];
|
||||
boot.tmp.useTmpfs = true;
|
||||
system.nssModules = lib.mkForce [ ];
|
||||
networking.firewall = {
|
||||
enabled = true;
|
||||
allowedTCPPorts = [ metricsPort antispamPort ];
|
||||
allowedUDPPorts = [ antispamPort ];
|
||||
};
|
||||
fudo.mail.rspamd = {
|
||||
enable = true;
|
||||
ports = {
|
||||
|
@ -443,10 +448,15 @@ in {
|
|||
imports = [ ./clamav.nix ];
|
||||
boot.tmp.useTmpfs = true;
|
||||
system.nssModules = lib.mkForce [ ];
|
||||
networking.firewall = {
|
||||
enabled = true;
|
||||
allowedTCPPorts = [ antivirusPort ];
|
||||
allowedUDPPorts = [ antivirusPort ];
|
||||
};
|
||||
fudo.mail.clamav = {
|
||||
enable = true;
|
||||
state-directory = "/state";
|
||||
port = antispamPort;
|
||||
port = antivirusPort;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -452,7 +452,7 @@ in {
|
|||
smtpd_sasl_type = "dovecot";
|
||||
smtpd_sasl_path = "/run/dovecot2/auth";
|
||||
smtpd_sasl_security_options = "noanonymous";
|
||||
smtpd_sasl_local_domain = cfg.domain;
|
||||
smtpd_sasl_local_domain = cfg.sasl-domain;
|
||||
smtpd_helo_restrictions =
|
||||
makeRestrictionsString outgoing-helo-restrictions;
|
||||
smtpd_client_restrictions =
|
||||
|
@ -472,7 +472,7 @@ in {
|
|||
smtpd_sasl_type = "dovecot";
|
||||
smtpd_sasl_path = "/run/dovecot2/auth";
|
||||
smtpd_sasl_security_options = "noanonymous";
|
||||
smtpd_sasl_local_domain = cfg.domain;
|
||||
smtpd_sasl_local_domain = cfg.sasl-domain;
|
||||
smtpd_helo_restrictions =
|
||||
makeRestrictionsString outgoing-helo-restrictions;
|
||||
smtpd_client_restrictions =
|
||||
|
|
Loading…
Reference in New Issue