mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Greyfix is the greylisting policy daemon for Postfix written by Kim Minh
Kaplan. Greyfix uses Postfix policy mechanism to enable greylisting with Postfix. WWW: http://www.kim-minh.com/pub/greyfix/ PR: ports/157052 Submitted by: Keith Gaughan <k@stereochro.me>
This commit is contained in:
parent
b5895108f6
commit
0c89741271
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274401
6 changed files with 68 additions and 0 deletions
|
@ -182,6 +182,7 @@
|
||||||
SUBDIR += gnumail
|
SUBDIR += gnumail
|
||||||
SUBDIR += gotmail
|
SUBDIR += gotmail
|
||||||
SUBDIR += grepmail
|
SUBDIR += grepmail
|
||||||
|
SUBDIR += greyfix
|
||||||
SUBDIR += greylite
|
SUBDIR += greylite
|
||||||
SUBDIR += gtray
|
SUBDIR += gtray
|
||||||
SUBDIR += gubby
|
SUBDIR += gubby
|
||||||
|
|
35
mail/greyfix/Makefile
Normal file
35
mail/greyfix/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# New ports collection makefile for: greyfix
|
||||||
|
# Date created: 2011-05-14
|
||||||
|
# Whom: Keith Gaughan <k@stereochro.me>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= greyfix
|
||||||
|
PORTVERSION= 0.3.9
|
||||||
|
CATEGORIES= mail
|
||||||
|
MASTER_SITES= http://www.kim-minh.com/pub/greyfix/
|
||||||
|
|
||||||
|
MAINTAINER= k@stereochro.me
|
||||||
|
COMMENT= A greylisting policy daemon for Postfix
|
||||||
|
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
|
USE_BDB= yes
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
CONFIGURE_ARGS= --with-berkeleydb-libdir=${BDB_LIB_DIR} \
|
||||||
|
--with-berkeleydb-includedir=${BDB_INCLUDE_DIR} \
|
||||||
|
--localstatedir=/var
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} 's|-ldb|-l${BDB_LIB_NAME}|g' ${WRKSRC}/configure
|
||||||
|
@${REINPLACE_CMD} 's|$$(localstatedir)/lib|$$(localstatedir)/db|' ${WRKSRC}/Makefile.in
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@${INSTALL_PROGRAM} ${WRKSRC}/greyfix ${PREFIX}/sbin
|
||||||
|
@${INSTALL} -o nobody -m 700 -d /var/db/greyfix
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
mail/greyfix/distinfo
Normal file
2
mail/greyfix/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (greyfix-0.3.9.tar.gz) = dee4428aef9b248b68799a640a85b44ffee0e9a3b2d2f16eed1bb41edad5f204
|
||||||
|
SIZE (greyfix-0.3.9.tar.gz) = 79883
|
21
mail/greyfix/files/pkg-message.in
Normal file
21
mail/greyfix/files/pkg-message.in
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
Edit Postfix's master configuration file, master.cf, and add the following:
|
||||||
|
|
||||||
|
greyfix unix - n n - - spawn
|
||||||
|
user=nobody argv=%%PREFIX%%/sbin/greyfix -/ 24
|
||||||
|
|
||||||
|
(The -/ argument specifies how much of the IP address to consider significant,
|
||||||
|
in this case the first 24 bits.)
|
||||||
|
|
||||||
|
Edit Postfix's main configuration file, main.cf and add the following:
|
||||||
|
|
||||||
|
smtpd_recipient_restrictions = permit_mynetworks,
|
||||||
|
reject_unauth_destination,
|
||||||
|
check_policy_service unix:private/greyfix
|
||||||
|
|
||||||
|
If there is already a smtpd_recipient_restrictions configuration line you
|
||||||
|
should edit it rather than add a new one. The important part for Greyfix is
|
||||||
|
that you should add check_policy_service unix:private/greyfix to it.
|
||||||
|
|
||||||
|
Finally have postfix reload its configuration with:
|
||||||
|
|
||||||
|
%%PREFIX%%/etc/rc.d/postfix reload
|
5
mail/greyfix/pkg-descr
Normal file
5
mail/greyfix/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Greyfix is the greylisting policy daemon for Postfix written by Kim Minh
|
||||||
|
Kaplan. Greyfix uses Postfix policy mechanism to enable greylisting with
|
||||||
|
Postfix.
|
||||||
|
|
||||||
|
WWW: http://www.kim-minh.com/pub/greyfix/
|
4
mail/greyfix/pkg-plist
Normal file
4
mail/greyfix/pkg-plist
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
@exec mkdir -m 700 -p /var/db/greyfix && chown nobody /var/db/greyfix
|
||||||
|
sbin/greyfix
|
||||||
|
@cwd /
|
||||||
|
@dirrmtry /var/db/greyfix
|
Loading…
Add table
Reference in a new issue