diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-02 16:14:40 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-02 16:14:40 +0100 |
commit | 3d7744b7f018b69f78d725ceb583a164d512fcc7 (patch) | |
tree | e824d05baeef0f7de23a5906549a8455cfa04f76 | |
parent | 8f54cc7fffc25fe580a22b2f42d9e24b2feb3717 (diff) | |
download | nixos-3d7744b7f018b69f78d725ceb583a164d512fcc7.tar nixos-3d7744b7f018b69f78d725ceb583a164d512fcc7.tar.gz nixos-3d7744b7f018b69f78d725ceb583a164d512fcc7.tar.bz2 nixos-3d7744b7f018b69f78d725ceb583a164d512fcc7.tar.xz nixos-3d7744b7f018b69f78d725ceb583a164d512fcc7.zip |
Move postgrey socket to more standard location
-rw-r--r-- | ymir.nix | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -444,7 +444,7 @@ in rec { | |||
444 | smtpd_restriction_classes = spfcheck | 444 | smtpd_restriction_classes = spfcheck |
445 | spfcheck = | 445 | spfcheck = |
446 | check_policy_service unix:private/policy-spf, | 446 | check_policy_service unix:private/policy-spf, |
447 | check_policy_service unix:/var/run/postgrey.sock | 447 | check_policy_service unix:private/policy-greylist |
448 | 448 | ||
449 | smtpd_relay_restrictions = | 449 | smtpd_relay_restrictions = |
450 | permit_mynetworks, | 450 | permit_mynetworks, |
@@ -534,6 +534,10 @@ in rec { | |||
534 | 534 | ||
535 | services.postgrey = { | 535 | services.postgrey = { |
536 | enable = true; | 536 | enable = true; |
537 | socket = { | ||
538 | path = "/var/lib/postfix/queue/private/policy-greylist"; | ||
539 | mode = "0777"; | ||
540 | }; | ||
537 | delay = 60; | 541 | delay = 60; |
538 | autoWhitelist = 1; | 542 | autoWhitelist = 1; |
539 | maxAge = 7; | 543 | maxAge = 7; |