freebsd-ports/mail/smfsav/pkg-install
Pav Lucistnik c80e1983fb 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/

PR:		ports/116948
Submitted by:	Anton Lysenok / Bart Tapolsky <bart@tapolsky.net.ua>
2008-02-17 21:16:46 +00:00

33 lines
588 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PATH=$PATH:/bin:/usr/sbin
export PATH
if [ "$2" = "POST-INSTALL" ]; then
if grep "^smfsav:" /etc/group > /dev/null; then
:
else
echo "[*] Adding group \"smfsav\""
pw groupadd -n smfsav -g 666
fi
if grep "^smfsav:" /etc/passwd > /dev/null; then
:
else
echo "[*] Adding user \"smfsav\""
pw useradd -c SMFSAV -g smfsav -n smfsav -d /nonexistent -s /usr/sbin/nologin -u 666
fi
echo "[*] Creating directory \"/var/run/smfsav\""
mkdir /var/run/smfsav
chown smfsav:smfsav /var/run/smfsav
chmod 700 /var/run/smfsav
fi