diff options
author | markd <markd> | 2004-03-07 11:18:33 +0000 |
---|---|---|
committer | markd <markd> | 2004-03-07 11:18:33 +0000 |
commit | da93b9918a9a1ba501886322274c6524c6a7a167 (patch) | |
tree | f823e5ba72fa56e194da50a437e3aae4928abb55 /mail/mimedefang/files | |
parent | 522e14a2294d90066bc847871ee2517cc4380f8f (diff) | |
download | pkgsrc-da93b9918a9a1ba501886322274c6524c6a7a167.tar.gz |
Update mimedefang to 2.40.
pkgsrc changes - add rc scripts and runtime checks for virus checkers
from Eric Schnoebelen in PR pkg/24295
- require native pthread library as pth doesnt work
Major changes from 2.39 to 2.40:
If multiple virus scanners are installed, they are all used.
Default action for viruses is now discard.
Added a new "notification" facility to allow external software to react
to changes in multiplexor state.
We now pass both the raw input message and the unpacked, decoded parts to
the virus scanner. This makes virus detection much more reliable.
Major changes from 2.38 to 2.39:
The multiplexor can be compiled with an embedded Perl interpreter to
significantly reduce the cost of starting a new slave
A memory leak in the status command was fixed.
A histo command was added so you can see how busy your installation
Major changes from 2.37 to 2.38:
The internal SMALLBUF constant was increased to handle larger SpamAssassin
reports produced by SpamAssassin version 2.60.
If a virus is found, action_notify_sender is disabled.
Major changes from 2.36 to 2.37:
Pure bug-fix release: A file descriptor leak was fixed, and we set the
close-on-exec flag on most file descriptors.
Major changes from 2.35 to 2.36:
Scalability enhancements for very busy servers.
Support for BitDefender's "bdc" virus scanner.
Other minor bug fixes.
Diffstat (limited to 'mail/mimedefang/files')
-rw-r--r-- | mail/mimedefang/files/mimedefang-multiplexor.sh | 57 | ||||
-rw-r--r-- | mail/mimedefang/files/mimedefang.sh | 53 |
2 files changed, 110 insertions, 0 deletions
diff --git a/mail/mimedefang/files/mimedefang-multiplexor.sh b/mail/mimedefang/files/mimedefang-multiplexor.sh new file mode 100644 index 00000000000..0f3b5112630 --- /dev/null +++ b/mail/mimedefang/files/mimedefang-multiplexor.sh @@ -0,0 +1,57 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: mimedefang-multiplexor.sh,v 1.1 2004/03/07 11:18:33 markd Exp $ +# +# mimedefang-multiplexor handles communications between sendmail and +# the real processor +# +## only for NetBSD +# PROVIDE: mimedefang-multiplexor +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: shutdown +## + +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin +export PATH + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + + +name="mimedefang_multiplexor" +rcvar="$name" +mimedefang_multiplexor_user=${mimedefang_multiplexor_user-"@DEFANG_USER@"} + +defangdir="@DEFANG_SPOOLDIR@" +command="@PREFIX@/bin/mimedefang-multiplexor" +pidfile="${defangdir}/${name}.pid" +command_args="-p ${pidfile}" + +# default values, may be overridden on NetBSD by setting them in /etc/rc.conf +mimedefang_multiplexor_flags=${mimedefang_multiplexor_flags-\ + "-s ${defangdir}/mimedefang-multiplexor.sock"} +mimedefang_multiplexor=${mimedefang_multiplexor:-NO} +mimedefang_multiplexor_fdlimit=${mimedefang_multiplexor_fdlimit-"128"} + +sig_stop="TERM" +sig_reload="INT" +extra_commands="reload" + +# A default limit of 64 (at least on NetBSD) may be too low for many +# people (eg with addional RBL rules) +SOFT_FDLIMIT=`ulimit -S -n` +HARD_FDLIMIT=`ulimit -H -n` + +if [ ${mimedefang_multiplexor_fdlimit} -gt ${SOFT_FDLIMIT} ]; then + if [ ${mimedefang_multiplexor_fdlimit} -le ${HARD_FDLIMIT} ]; then + ulimit -S -n ${mimedefang_multiplexor_fdlimit} + else + ulimit -S -n ${HARD_FDLIMIT} + fi +fi + +load_rc_config $name +run_rc_command "$1" diff --git a/mail/mimedefang/files/mimedefang.sh b/mail/mimedefang/files/mimedefang.sh new file mode 100644 index 00000000000..50a01568d48 --- /dev/null +++ b/mail/mimedefang/files/mimedefang.sh @@ -0,0 +1,53 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: mimedefang.sh,v 1.1 2004/03/07 11:18:33 markd Exp $ +# +# mimedefang does "in-stream" spam and virus checking using +# sendmail's MailFilter interfaces. +# +## only for NetBSD +# PROVIDE: mimedefang +# REQUIRE: LOGIN mimedefang-multiplexor +# BEFORE: mail +# KEYWORD: shutdown +## + +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin +export PATH + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +defangdir="@DEFANG_SPOOLDIR@" + +name="mimedefang" +rcvar=$name +command="@PREFIX@/bin/mimedefang" +pidfile="${defangdir}/${name}.pid" +mimedefang_user=${mimedefang_user-"@DEFANG_USER@"} +command_args="-P ${pidfile}" + +# default values, may be overridden on NetBSD by setting them in /etc/rc.conf +mimedefang_flags=${mimedefang_flags-"-p ${defangdir}/mimedefang.sock \ + -m ${defangdir}/mimedefang-multiplexor.sock"} + +mimedefang=${mimedefang:-NO} +mimedefang_fdlimit=${mimedefang_fdlimit-"128"} + +# A default limit of 64 (at least on NetBSD) may be too low for many +# people (eg with addional RBL rules) +SOFT_FDLIMIT=`ulimit -S -n` +HARD_FDLIMIT=`ulimit -H -n` + +if [ ${mimedefang_fdlimit} -gt ${SOFT_FDLIMIT} ]; then + if [ ${mimedefang_fdlimit} -le ${HARD_FDLIMIT} ]; then + ulimit -S -n ${mimedefang_fdlimit} + else + ulimit -S -n ${HARD_FDLIMIT} + fi +fi + +load_rc_config $name +run_rc_command "$1" |