Correction : postgrey : socket dans le chroot de postfix.
[lhc/ateliers.git] / etc / sv / postgrey / run
1 #!/bin/sh -eux
2 exec 2>&1
3 sv=${PWD#/etc/sv/}
4
5 install -d -m 2710 -o postgrey -g postfix \
6 /var/spool/postfix/postgrey
7
8 exec /usr/bin/chpst \
9 -u "$sv":"$sv" \
10 /usr/sbin/postgrey \
11 --auto-whitelist-clients=5 \
12 --dbdir=/var/lib/postgrey \
13 --delay=65 \
14 --max-age=35 \
15 --privacy \
16 --unix=/var/spool/postfix/postgrey/socket