diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-02 14:10:14 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-02 14:10:14 +0100 |
commit | 54f859ea6260270cb5ed1dec159087da58a02d96 (patch) | |
tree | 23aad7d956aea2b219349e21976e42af905ebf57 | |
parent | 36729ca5911c6c3ba351bca48bb7fc26ba55ad8f (diff) | |
download | nixos-54f859ea6260270cb5ed1dec159087da58a02d96.tar nixos-54f859ea6260270cb5ed1dec159087da58a02d96.tar.gz nixos-54f859ea6260270cb5ed1dec159087da58a02d96.tar.bz2 nixos-54f859ea6260270cb5ed1dec159087da58a02d96.tar.xz nixos-54f859ea6260270cb5ed1dec159087da58a02d96.zip |
Replace reverse dns check with greylisting
-rw-r--r-- | ymir.nix | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -426,7 +426,6 @@ in rec { | |||
426 | permit_sasl_authenticated, | 426 | permit_sasl_authenticated, |
427 | reject_non_fqdn_helo_hostname, | 427 | reject_non_fqdn_helo_hostname, |
428 | reject_invalid_helo_hostname, | 428 | reject_invalid_helo_hostname, |
429 | reject_unknown_reverse_client_hostname, | ||
430 | reject_unauth_destination, | 429 | reject_unauth_destination, |
431 | check_client_access regexp:${pkgs.writeText "spfpolicy" '' | 430 | check_client_access regexp:${pkgs.writeText "spfpolicy" '' |
432 | /(^|\.)tu-muenchen\.de$/ DUNNO | 431 | /(^|\.)tu-muenchen\.de$/ DUNNO |
@@ -444,7 +443,8 @@ in rec { | |||
444 | ''} | 443 | ''} |
445 | smtpd_restriction_classes = spfcheck | 444 | smtpd_restriction_classes = spfcheck |
446 | spfcheck = | 445 | spfcheck = |
447 | check_policy_service unix:private/policy-spf | 446 | check_policy_service unix:private/policy-spf, |
447 | check_policy_service unix:/var/run/postgrey.sock | ||
448 | 448 | ||
449 | smtpd_relay_restrictions = | 449 | smtpd_relay_restrictions = |
450 | permit_mynetworks, | 450 | permit_mynetworks, |
@@ -532,6 +532,10 @@ in rec { | |||
532 | ''; | 532 | ''; |
533 | }; | 533 | }; |
534 | 534 | ||
535 | services.postgrey = { | ||
536 | enable = true; | ||
537 | }; | ||
538 | |||
535 | services.dovecot2 = { | 539 | services.dovecot2 = { |
536 | enable = true; | 540 | enable = true; |
537 | enableImap = true; | 541 | enableImap = true; |