wok-next view postgrey/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 9e01bc6321ea |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="postgrey"
4 VERSION="1.36"
5 CATEGORY="network"
6 SHORT_DESC="Postfix policy server implementing greylisting"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://postgrey.schweikert.ch/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/pub/$TARBALL"
14 genpkg_rules() {
15 mkdir -p $fs/usr/bin $fs/etc/postfix $fs/var/spool/postfix/postgrey
16 cp $src/contrib/postgreyreport $src/postgrey $fs/usr/bin
17 cp $src/postgrey_whitelist* $fs/etc/postfix
18 cp -a $stuff/etc $fs
19 DEPENDS="postfix perl db perl-net-server perl-io-multiplex perl-berkeleydb \
20 perl-net-dns"
21 CONFIG_FILES="/etc/postgrey"
22 }
24 post_install() {
25 chroot "$1/" chown postfix /var/spool/postfix/postgrey
27 [ -n "$quiet" ] || cat <<EOF
29 .--------------------------------------------------------.
30 | To use postgrey with postfix, add check_policy_service |
31 | inet:127.0.0.1:60000 in smtpd_recipient_restrictions |
32 | of /etc/postfix/main.cf, i.e: |
33 | |
34 | smtpd_recipient_restrictions = |
35 | .... |
36 | check_policy_service inet:127.0.0.1:60000, |
37 | permit |
38 |--------------------------------------------------------|
39 | To start postgrey server you can run: |
40 | |
41 | /etc/init.d/postgrey start |
42 | |
43 | or add postgrey to RUN_DAEMONS in /etc/rcS.conf |
44 '--------------------------------------------------------'
45 EOF
46 }