summaryrefslogtreecommitdiff
path: root/mail/spamilter/files/spamilter.sh
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2004-06-11 05:54:37 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2004-06-11 05:54:37 +0000
commit1d6794a9716e17e7df059adb175c21182ba6eab4 (patch)
tree221bf90e6da493337efb95b2df9d3542ba1b79ef /mail/spamilter/files/spamilter.sh
parentRegister new conflicts on xorg-fontserver. (diff)
Spamilter is a Sendmail milter written entierly in C, and therefore
is faster and less cpu intensive than other interperative based solutions. It blocks spam using the following methods; * Configurable Realtime DNS Blacklists * Sender Address verification * Configurable Black and White lists * Invalid MTA hostname verfication * Basic Virus/Worm file attachment rejection for files ending in .pif, .scr, etc.. via MsExtChk filter * SPF via libspf Also; * Realtime firewall blocking of MTA hosts with invalid host names via MtaHostIpfw filter * Realtime rate limited connection blocking via firewall rule injection All actions are logged via syslog with both the sender and the recipient. From this, report generation and notification to recipients showing activity becomes extremely simple. WWW: http://www.wanlink.com/spamilter/index.php
Notes
Notes: svn path=/head/; revision=111253
Diffstat (limited to 'mail/spamilter/files/spamilter.sh')
-rw-r--r--mail/spamilter/files/spamilter.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/spamilter/files/spamilter.sh b/mail/spamilter/files/spamilter.sh
new file mode 100644
index 000000000000..db0c3f1df62e
--- /dev/null
+++ b/mail/spamilter/files/spamilter.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+if ! test -x %%PREFIX%%/bin/spamilter
+then
+ exit 0
+fi
+case "$1" in
+start)
+ rm -f /tmp/Spamilter.pid
+ %%PREFIX%%/bin/spamilter &&
+ echo -n ' spamilter'
+ ;;
+stop)
+ if test -r /tmp/Spamilter.pid
+ then
+ kill `head -1 /tmp/Spamilter.pid`
+ else
+ echo " spamilter: not running" 2>&1
+ fi
+ rm -f /tmp/Spamilter.pid
+ ;;
+reload)
+ if test -r /tmp/Spamilter.pid
+ then
+ kill -USR1 `head -1 /tmp/Spamilter.pid`
+ else
+ echo " spamilter: not running" 2>&1
+ fi
+ ;;
+*)
+ echo "Usage: ${0##*/}: { start | stop | reload }" >&2
+ exit 64
+ ;;
+esac