---
name: smfsav
version: 1.4.0_1
origin: mail/smfsav
comment: Sendmail Sender Address Validator
arch: freebsd:9:x86:64
www: http://smfs.sourceforge.net/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 58445
desc: |2
    It's a lightweight, fast and reliable Sendmail milter that implements
  a real-time Sender e-Mail Address Verification technology. This technology
  can stop some kinds of SPAM with a spoofed sender's e-Mail address.
    Also it implements a real-time Recipient e-Mail Address Verification
  technology. It can be useful if your machine is a backup MX for the recipient's
  domains or if your machine forwards all e-Mail messages as a relay host for your
  domains to another internal or external e-Mail servers.
    It's a lite alternative for the spamilter, milter-sender and milter-ahead
  milters.

  WWW: http://smfs.sourceforge.net/
categories: [mail]
options: {DOCS: on}
files:
  /usr/local/etc/rc.d/smfsav: f7444a173cf9617987ecc63325e2fae1a46a89e3fbc05789e4ba8100eabb5ceb
  /usr/local/etc/smfsav.conf-dist: 169f5787838156455a78206baebeacbb243d2633b537ef46db4494fe1ede1d6b
  /usr/local/sbin/smfsav: e808602826e41e730c3302aba15695d9db913a91e696b47130c26be3c2397a9f
  /usr/local/share/doc/smfsav/CHANGES: ce279c4e36adcb9bddcd6b497296c2c8ac637d16c1a9fc2ca010f8e340c3b648
  /usr/local/share/doc/smfsav/README: 6fbdf7c1028379772454025356c7293f9accbf05e0986a961a465d3d3b150f89
  /usr/local/share/licenses/smfsav-1.4.0_1/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/smfsav-1.4.0_1/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/smfsav-1.4.0_1/catalog.mk: 2bec61c92ea66391054d6a2e26f8f4eefc8e7d460bd4de3693d595c13097f0c8
directories:
  /usr/local/share/licenses/smfsav-1.4.0_1/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/smfsav/: n
scripts:
  post-install: |
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
  install: "#!/bin/sh\n\n#\n# $FreeBSD: ports/mail/smfsav/pkg-install,v 1.2 2012/11/17
    05:59:14 svnexp Exp $\n#\n\nPATH=$PATH:/bin:/usr/sbin\nexport PATH\n\n\nif [ \"$2\"
    = \"POST-INSTALL\" ]; then\n\n    if grep \"^smfsav:\" /etc/group > /dev/null;
    then\n\t:\n\telse\n\techo \"[*] Adding group \\\"smfsav\\\"\"\n\tpw groupadd -n
    smfsav -g 666\n    fi\n\n    if grep \"^smfsav:\" /etc/passwd > /dev/null; then\n\t:\n\telse\n\techo
    \"[*] Adding user \\\"smfsav\\\"\"\n\tpw useradd -c SMFSAV -g smfsav -n smfsav
    -d /nonexistent -s /usr/sbin/nologin -u 666\n    fi\n    \n    echo \"[*] Creating
    directory \\\"/var/run/smfsav\\\"\"\n    mkdir /var/run/smfsav\n    chown smfsav:smfsav
    /var/run/smfsav\n    chmod 700 /var/run/smfsav\n\nfi\n"
  deinstall: "#!/bin/sh\n\n#\n# $FreeBSD: ports/mail/smfsav/pkg-deinstall,v 1.2 2012/11/17
    05:59:14 svnexp Exp $\n#\n\nPATH=$PATH:/bin:/usr/sbin\nexport PATH\n\nif [ \"$2\"
    = \"POST-DEINSTALL\" ]; then\n\n    if pw group show -g 666 2>&1 >/dev/null; then\n\techo
    \"[*] Removing group \\\"smfsav\\\"\"\n\tpw groupdel -g 666\n    fi\n\n    if
    pw user show -u 666 2>&1 >/dev/null; then\n\techo \"[*] Removing user \\\"smfsav\\\"\"\n\tpw
    userdel -u 666\n    fi\n\n    if [ -d /var/run/smfsav ]; then\n\techo \"[*] Removing
    directory \\\"/var/run/smfsav\\\"\"\n        rmdir /var/run/smfsav\n    fi\n\nfi\n"
message: |2

  =====================================================================================
  1. Inspect and edit the /usr/local/etc/smfsav.conf file
  2. Add these lines to your Sendmail configuration file (usually sendmail.mc):
      define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl
      INPUT_MAIL_FILTER(`smfsav', `S=unix:/var/run/smfsav/smfsav.sock, T=S:30s;R:4m')dnl
  3. Put line smfsav_enable="YES" to /etc/rc.conf file
  4. Run /usr/local/etc/rc.d/smfsav start
  =====================================================================================
