From 3d7744b7f018b69f78d725ceb583a164d512fcc7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 2 Jan 2017 16:14:40 +0100 Subject: Move postgrey socket to more standard location --- ymir.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index 5e611699..44b7c3e8 100644 --- a/ymir.nix +++ b/ymir.nix @@ -444,7 +444,7 @@ in rec { smtpd_restriction_classes = spfcheck spfcheck = check_policy_service unix:private/policy-spf, - check_policy_service unix:/var/run/postgrey.sock + check_policy_service unix:private/policy-greylist smtpd_relay_restrictions = permit_mynetworks, @@ -534,6 +534,10 @@ in rec { services.postgrey = { enable = true; + socket = { + path = "/var/lib/postfix/queue/private/policy-greylist"; + mode = "0777"; + }; delay = 60; autoWhitelist = 1; maxAge = 7; -- cgit v1.2.3