summaryrefslogtreecommitdiff
path: root/mail/smfsav/pkg-install
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-02-17 21:16:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-02-17 21:16:46 +0000
commitc80e1983fbabc35a806e5bb81b8e4e01af02efb9 (patch)
treee287fbfa3c52c1fe70be85dcf01cfcc651e52005 /mail/smfsav/pkg-install
parentUpdate to 1.1.0. (diff)
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>
Notes
Notes: svn path=/head/; revision=207486
Diffstat (limited to 'mail/smfsav/pkg-install')
-rw-r--r--mail/smfsav/pkg-install32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/smfsav/pkg-install b/mail/smfsav/pkg-install
new file mode 100644
index 000000000000..90e611687f93
--- /dev/null
+++ b/mail/smfsav/pkg-install
@@ -0,0 +1,32 @@
+#!/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