---
name: greyfix
version: 0.3.9
origin: mail/greyfix
comment: A greylisting policy daemon for Postfix
arch: freebsd:9:x86:64
www: http://www.kim-minh.com/pub/greyfix/
maintainer: k@stereochro.me
prefix: /usr/local
licenselogic: single
flatsize: 22208
desc: |
  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/
deps:
  db41: {origin: databases/db41, version: 4.1.25_4}
categories: [mail]
files:
  /usr/local/sbin/greyfix: 24a1da4dd2859062f7894ac18182b2707f2407d5c026cf65a5549b6fff453e8d
directories:
  /var/db/greyfix/: y
scripts:
  post-install: |
    mkdir -m 700 -p /var/db/greyfix && chown nobody /var/db/greyfix
    cd /
  pre-deinstall: |
    cd /
  post-deinstall: |
    cd /
message: |
  Edit Postfix's master configuration file, master.cf, and add the following:

      greyfix    unix  -       n       n       -       -       spawn
        user=nobody argv=/usr/local/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:

      /usr/local/etc/rc.d/postfix reload
