---
name: milter-greylist
version: 4.4.3
origin: mail/milter-greylist
comment: Easy-to-use greylist milter for sendmail and postfix
arch: freebsd:9:x86:64
www: http://hcpnet.free.fr/milter-greylist/
maintainer: m.tsatsenko@gmail.com
prefix: /usr/local
licenselogic: single
licenses: [BSD]
flatsize: 259883
desc: |
  This is a port of Emmanuel Dreyfus' milter-greylist.

  Grey listing is a wonderful spam filtering technique, which uses a behavior
  trick: spammers never resend a message when they get a temporary error,
  whereas real MTA do. The idea is to refuse any mail on first attempt, and
  accept it after some time has elapsed.

  milter-greylist is a stand-alone milter written in C that implement grey
  listing.

  WWW: http://hcpnet.free.fr/milter-greylist/
categories: [mail]
options: {CURL: off, GEOIP: off, LDAP: off, MANPAGES: on, P0F: off, POSTFIX: off,
  SPF: off}
files:
  /usr/local/etc/mail/greylist.conf.sample: 755ff7c493f46b51a2abfdba3d812b512767bb157b17eb07796d727a7f81d29a
  /usr/local/etc/rc.d/milter-greylist: 3f12a5426387757e65e58423b88ec27034a478a41721adcca0fbd56c30e2a6d0
  /usr/local/libexec/milter-greylist: 61ae3eea48cc33ecdbb52b98141fbfcdbd3c6cd1cdd51bc5d90d0543786792b7
  /usr/local/man/man5/greylist.conf.5.gz: 84b6da0b07126a8ab494617e36a4f97b06ec604599af5e208622091f26951890
  /usr/local/man/man8/milter-greylist.8.gz: fab2d45af9d7ba0d893b2e7f85f590b8ba5e50d43e4ed5657c41e823ea580e35
  /usr/local/share/doc/milter-greylist/README: ed395aff47b6e2a8f08f9ae2d409bb3b93fa8333f64253a79c249d8a11dddade
  /usr/local/share/examples/milter-greylist/greylist.conf: 755ff7c493f46b51a2abfdba3d812b512767bb157b17eb07796d727a7f81d29a
  /usr/local/share/licenses/milter-greylist-4.4.3/BSD: 85e7a53b5e2d3e350e2d084fed2f94b7f63005f8e1168740e1e84aa9fa5d48ce
  /usr/local/share/licenses/milter-greylist-4.4.3/LICENSE: d9cce0db43502eb1bd8fbef7e960cfaa43b5647186f7f7379923b336209fd77b
  /usr/local/share/licenses/milter-greylist-4.4.3/catalog.mk: 8ca242885f0d8670b8c286794e4d8e98a672fb5462c00fee3134d8def56134ae
directories:
  /usr/local/share/licenses/milter-greylist-4.4.3/: n
  /usr/local/share/licenses/: y
  /usr/local/share/examples/milter-greylist/: n
  /usr/local/share/doc/milter-greylist/: n
  /usr/local/etc/mail/: y
scripts:
  post-install: |
    /bin/mkdir -p /var/milter-greylist
    /usr/sbin/chown -R mailnull:mailnull /var/milter-greylist
    [ -f /var/db/milter-greylist/greylist.db ] && printf '\n\n************************************************************\n************************************************************\n**                                                        **\n**                        WARNING                         **\n**                                                        **\n** The default dump file location has changed.            **\n** Please move greylist.db from /var/db/milter-greylist/  **\n** to /var/milter-greylist/ and update your greylist.conf **\n** accordingly.                                           **\n**                                                        **\n************************************************************\n************************************************************\n' ||true
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    [ -f /var/milter-greylist/greylist.db ] || /bin/rmdir /var/milter-greylist || true
    cd /usr/local
    cd /usr/local
message: |+
  ===> IMPORTANT NOTE

      A sample configuration file has been installed in /usr/local/etc/mail
      directory. Copy and edit it to suit your needs before launching
      milter-greylist.

      Add following lines

  dnl j,{if_addr},{cert_subject},i,{auth_authen} are already enabled by default
  define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO``, {verify}'')
  define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT``, {greylist}'')
  INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock, F=T, T=R:30s')

      to your /etc/mail/<your_host>.mc configuration.

      To run milter-greylist from startup, add miltergreylist_enable="YES"
      in your /etc/rc.conf or your /etc/rc.conf.local

      See /usr/local/share/doc/milter-greylist/README for operation details.

