---
name: rbl-milter
version: 0.30_3
origin: mail/rbl-milter
comment: A milter that adds mail header warnings on mail from open-relays
arch: freebsd:9:x86:64
www: http://opensource.confusticate.com/rbl-milter/
maintainer: dinoex@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 15058
desc: |
  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.

  Author: Jeremy Beker <gothmog@confusticate.com>
  WWW: http://opensource.confusticate.com/rbl-milter/
categories: [mail]
files:
  /usr/local/etc/rc.d/rblmilter: 9b48e7be88e1368ce2b256449b729d88e39fb858fa66d442898581a4024ff82c
  /usr/local/sbin/rbl-milter: a15f20f7b294ed215c540d98d80c6551264464b1d5fa7208229d19d6a13dbbcd
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |
  Add to your /etc/rc.conf
  rblmilter_enable="YES"
  Then run the milter with: $PREFIX/etc/rc.d/rbl-milter start

  By default, it uses the relays found at relays.ordb.org but you can
  change that by setting rblmilter_flags in /etc/rc.conf:
  rblmilter_flags="-l -r -d relays.ordb.org"

  Note that you will need to edit the proper sendmail.mc file in your
  /etc/mail directory so that sendmail will pass mail to rbl-milter.
  If you have not done this before, do the following:

    cd /etc/mail
    cp -p freebsd.mc `hostname`.mc

  Add the INPUT_MAIL_FILTER line to the file:

    INPUT_MAIL_FILTER(`rbl-milter',`S=local:/var/run/rbl-milter')

  and rebuild it

    make
    make install
    make restart

  By default, the INPUT_MAIL_FILTER line will ignore the filter if
  rbl-milter is not running.
