summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-02 16:14:40 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-02 16:14:40 +0100
commit3d7744b7f018b69f78d725ceb583a164d512fcc7 (patch)
treee824d05baeef0f7de23a5906549a8455cfa04f76
parent8f54cc7fffc25fe580a22b2f42d9e24b2feb3717 (diff)
downloadnixos-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.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index 5e611699..44b7c3e8 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -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;