diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-04-08 03:09:33 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-04-08 03:09:33 +0800 |
commit | ada8a961de8a844e102e98c4531f8ce8fd9aa3b2 (patch) | |
tree | 32f1b3ab4907112979c3dffd1bc29cf5fdd64c58 /mail/rbl-milter/files | |
parent | f986b44bc63f813bfd4c89ef0881f639a864cbd7 (diff) | |
download | freebsd-ports-gnome-ada8a961de8a844e102e98c4531f8ce8fd9aa3b2.tar.gz freebsd-ports-gnome-ada8a961de8a844e102e98c4531f8ce8fd9aa3b2.tar.zst freebsd-ports-gnome-ada8a961de8a844e102e98c4531f8ce8fd9aa3b2.zip |
This is a simple sendmail milter which adds an X-RBL-Warning header to
any emails that are received that come from an open relay as
determined by your choice of RBL checking service (i.e. bl.spamcop.net).
This is useful if you'd rather have the mail user agent (MUA) deal with
potential spam rather than just blocking it in case you loose
legitimate messages. Note that the X-RBL-Warning header is only set if
the site was found to be an open-relay.
For more information, see the rbl-milter website at:
WWW: http://opensource.confusticate.com/rbl-milter/
RBL-Milter was created by Jeremy Beker <gothmog@confusticate.com> and
the port is maintained by Ned Wolpert <wolpert@codeheadsystems.com>
PR: 45605
Submitted by: wolpert@codeheadsystems.com
Diffstat (limited to 'mail/rbl-milter/files')
-rw-r--r-- | mail/rbl-milter/files/patch-aa | 19 | ||||
-rw-r--r-- | mail/rbl-milter/files/rbl-milter.sh.in | 28 |
2 files changed, 47 insertions, 0 deletions
diff --git a/mail/rbl-milter/files/patch-aa b/mail/rbl-milter/files/patch-aa new file mode 100644 index 000000000000..c2d886cf2a8d --- /dev/null +++ b/mail/rbl-milter/files/patch-aa @@ -0,0 +1,19 @@ +*** configure.old Fri Nov 22 06:30:28 2002 +--- configure Fri Nov 22 06:30:25 2002 +*************** +*** 1230,1236 **** + + LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm -L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib"; + CFLAGS="$CFLAGS -Wall -Werror" +! LIBS="$LIBS -pthread -lpthread" + + + echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 +--- 1230,1236 ---- + + LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm -L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib"; + CFLAGS="$CFLAGS -Wall -Werror" +! LIBS="$LIBS -pthread -lc_r" + + + echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 diff --git a/mail/rbl-milter/files/rbl-milter.sh.in b/mail/rbl-milter/files/rbl-milter.sh.in new file mode 100644 index 000000000000..2f540d3c7f5c --- /dev/null +++ b/mail/rbl-milter/files/rbl-milter.sh.in @@ -0,0 +1,28 @@ +#!/bin/sh + +if [ ! -f %%PREFIX%%/sbin/rbl-milter ] +then + echo "rbl-milter not installed" + exit 0; +fi + +case $1 in +start) + %%PREFIX%%/sbin/rbl-milter -l -r -p local:/var/run/rbl-milter -d relays.ordb.org \ + && echo -n " rbl-milter" \ + || echo " rbl-milter FAILED TO START" + ;; +stop) + killall rbl-milter && echo -n " rbl-milter" + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |