Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 16:05:25 -0700 (MST)
From:      "Ned Wolpert" <wolpert@codeheadsystems.com>
To:        <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        <wolpert@codeheadsystems.com>
Subject:   ports/45605: New port: rbl-milter, a sendmail milter
Message-ID:  <46479.209.105.253.164.1038006325.squirrel@www.codeheadsystems.com>

next in thread | raw e-mail | index | archive | help

>Number:         45605
>Category:       ports
>Synopsis:       New port: rbl-milter, a sendmail milter
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 15:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ned Wolpert wolpert@codeheadsystems.com
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Codehead Systems
>Environment:
System: FreeBSD wolpert.codeheadsystems.com 4.7-STABLE FreeBSD
4.7-STABLE #11: Sat Oct 26 07:44:20 MST 2002
wolpert@wolpert.codeheadsystems.com:/opt/usr/obj/opt/usr/src/sys/GODOT
i386

>Description:
	New port ready for FreeBSD. Provides rbl-milter, a sendmail milter
that adds headers to the mail if the site originator or relay for the
mail is an open-relay.  Allows the end-user to filter based on the relay
rather than sendmail simply blocking the site via FEATURE(dnsbl) in the
.mc file. To be used incases the user has some valid open-relay sites
they need to get mail  from.

>How-To-Repeat:

>Fix:

--- rbl-milter.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before #
this line, and then unpack it by entering "sh file".  Note, it may #
create directories; files and directories will be owned by you and #
have default permissions.
#
# This archive contains:
#
#	rbl-milter
#	rbl-milter/Makefile
#	rbl-milter/pkg-comment
#	rbl-milter/pkg-descr
#	rbl-milter/pkg-plist
#	rbl-milter/distinfo
#	rbl-milter/pkg-message
#	rbl-milter/files
#	rbl-milter/files/patch-aa
#	rbl-milter/files/rbl-milter.sh.in
#
echo c - rbl-milter
mkdir -p rbl-milter > /dev/null 2>&1
echo x - rbl-milter/Makefile
sed 's/^X//' >rbl-milter/Makefile << 'END-of-rbl-milter/Makefile'
X# New ports collection makefile for:   rbl-milter
X# Date created:        15 November 2002
X# Whom:                wolpert
X#
X# $FreeBSD$
X#
X
XPORTNAME=      rbl-milter
XPORTVERSION=   0.30
XCATEGORIES=    mail
XMASTER_SITES=  http://opensource.confusticate.com/rbl-milter/
X
XMAINTAINER=    wolpert@codeheadsystems.com
X
XGNU_CONFIGURE= yes
XUSE_GMAKE=     yes
X
XCONFIGURE_ARGS= --with-sendmail=/usr \
X		--with-sendmail-obj=/usr/lib
X
Xpost-install:
X	@${SED} 's|%%PREFIX%%|${PREFIX}|g' \
X		${FILESDIR}/rbl-milter.sh.in > ${WRKDIR}/rbl-milter.sh
X	${INSTALL_SCRIPT} ${WRKDIR}/rbl-milter.sh \
X		${PREFIX}/etc/rc.d/rbl-milter.sh
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-rbl-milter/Makefile
echo x - rbl-milter/pkg-comment
sed 's/^X//' >rbl-milter/pkg-comment << 'END-of-rbl-milter/pkg-comment'
XA milter that adds mail header warnings on mail from open-relays
END-of-rbl-milter/pkg-comment
echo x - rbl-milter/pkg-descr
sed 's/^X//' >rbl-milter/pkg-descr << 'END-of-rbl-milter/pkg-descr'
XThis is a simple sendmail milter which adds an X-RBL-Warning header to
any  Xemails that are received that come from an open relay as
determined by your  Xchoice of RBL checking service (i.e.
bl.spamcop.net).
X
XThis is useful if you'd rather have the mail user agent (MUA) deal with
 Xpotential spam rather than just blocking it in case you loose
legitimate Xmessages.  Note that the X-RBL-Warning header is only set if
the site was Xfound to be an open-relay.
X
XFor more information, see the rbl-milter website at:
X  WWW: http://opensource.confusticate.com/rbl-milter/
XRBL-Milter was created by Jeremy Beker <gothmog@confusticate.com> and
the Xport is maintained by Ned Wolpert <wolpert@codeheadsystems.com>
END-of-rbl-milter/pkg-descr
echo x - rbl-milter/pkg-plist
sed 's/^X//' >rbl-milter/pkg-plist << 'END-of-rbl-milter/pkg-plist'
Xsbin/rbl-milter
Xetc/rc.d/rbl-milter.sh
END-of-rbl-milter/pkg-plist
echo x - rbl-milter/distinfo
sed 's/^X//' >rbl-milter/distinfo << 'END-of-rbl-milter/distinfo'
XMD5 (rbl-milter-0.30.tar.gz) = 349a080780bbe2a79ee39b2e417c0d10
END-of-rbl-milter/distinfo
echo x - rbl-milter/pkg-message
sed 's/^X//' >rbl-milter/pkg-message << 'END-of-rbl-milter/pkg-message'
XThe start/stop script has been placed in $PREFIX/etc/rc.d/rbl-milter.sh
 XRun the program now with the start command to get rbl-milter running.
By Xdefault, it uses the relays found at relays.ordb.org but you can
change that Xby modifying the script.  It accepts multiple -d commands
for multiple Xsite checks.
X
XNote that you will need to edit the proper sendmail.mc file in your
/etc/mail Xdirectory so that sendmail will pass mail to rbl-milter.  If
you have not Xdone this before, do the following:
X
X  cd /etc/mail
X  cp -p freebsd.mc `hostname`.mc
X
XAdd the INPUT_MAIL_FILTER line to the file:
X
X  INPUT_MAIL_FILTER(`rbl-milter',`S=local:/var/run/rbl-milter')
X
Xand rebuild it
X
X  make
X  make install
X  make restart
X
XBy default, the INPUT_MAIL_FILTER line will ignore the filter if
rbl-milter Xis not running.
END-of-rbl-milter/pkg-message
echo c - rbl-milter/files
mkdir -p rbl-milter/files > /dev/null 2>&1
echo x - rbl-milter/files/patch-aa
sed 's/^X//' >rbl-milter/files/patch-aa <<
'END-of-rbl-milter/files/patch-aa' X*** configure.old	Fri Nov 22
06:30:28 2002
X--- configure	Fri Nov 22 06:30:25 2002
X***************
X*** 1230,1236 ****
X
X  LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm
-L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib"; X  CFLAGS="$CFLAGS -Wall
-Werror"
X! LIBS="$LIBS -pthread -lpthread"
X
X
X  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
X--- 1230,1236 ----
X
X  LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm
-L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib"; X  CFLAGS="$CFLAGS -Wall
-Werror"
X! LIBS="$LIBS -pthread -lc_r"
X
X
X  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
END-of-rbl-milter/files/patch-aa
echo x - rbl-milter/files/rbl-milter.sh.in
sed 's/^X//' >rbl-milter/files/rbl-milter.sh.in <<
'END-of-rbl-milter/files/rbl-milter.sh.in' X#!/bin/sh
X
Xif [ ! -f %%PREFIX%%/sbin/rbl-milter ]
Xthen
X	echo "rbl-milter not installed"
X	exit 0;
Xfi
X
Xcase $1 in
Xstart)
X	%%PREFIX%%/sbin/rbl-milter -l -r -p local:/var/run/rbl-milter -d
relays.ordb.org \ X	&& echo -n " rbl-milter" \
X	|| echo " rbl-milter FAILED TO START"
X	;;
Xstop)
X	killall rbl-milter && echo -n " rbl-milter"
X	;;
Xrestart)
X        $0 stop
X        $0 start
X        ;;
X*)
X        echo "Usage: `basename $0` {start|stop}" >&2
X        exit 64
X        ;;
Xesac
X
Xexit 0
X
END-of-rbl-milter/files/rbl-milter.sh.in
exit
--- rbl-milter.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46479.209.105.253.164.1038006325.squirrel>