X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fpostgrey%2Frun;h=5a1684c62b7bea9055ea467a23c46304b1a53d8d;hb=dc5b214b931bfbfd99517e8a129b9e0df0a207a1;hp=fba506a4784cae5faf0fd0ea0611742bb6b39ff5;hpb=4699cb3295e62b8035110ad473cd379d25dc8fdf;p=lhc%2Fateliers.git diff --git a/etc/sv/postgrey/run b/etc/sv/postgrey/run index fba506a..5a1684c 100755 --- a/etc/sv/postgrey/run +++ b/etc/sv/postgrey/run @@ -1,6 +1,10 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} + +install -d -m 2710 -o postgrey -g postfix \ + /var/spool/postfix/postgrey + exec /usr/bin/chpst \ -u "$sv":"$sv" \ /usr/sbin/postgrey \ @@ -9,4 +13,4 @@ exec /usr/bin/chpst \ --delay=65 \ --max-age=35 \ --privacy \ - --unix=/run/postgrey/socket + --unix=/var/spool/postfix/postgrey/socket