summaryrefslogtreecommitdiff
path: root/mail/mailscanner/files
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mailscanner/files')
-rw-r--r--mail/mailscanner/files/README.FreeBSD.port48
-rw-r--r--mail/mailscanner/files/mailscanner.sh55
-rw-r--r--mail/mailscanner/files/mta.sh117
3 files changed, 0 insertions, 220 deletions
diff --git a/mail/mailscanner/files/README.FreeBSD.port b/mail/mailscanner/files/README.FreeBSD.port
deleted file mode 100644
index 55b28caaf497..000000000000
--- a/mail/mailscanner/files/README.FreeBSD.port
+++ /dev/null
@@ -1,48 +0,0 @@
-The MailScanner port is using the original MailScanner tarball from
-www.mailscanner.info. This tarball puts all the MailScanner files in
-subdirectories
-
-bin MailScanner binary / MailScanner start script etc.
-etc MailScanner config files / rules / report templates
-lib Virus wrapper and autoupdate scripts / MailScanner Perl libraries
-docs Documentation
-var pid file
-
-In order to make this FreeBSD compliant the port installs those files
-in the following directories:
-
-/usr/local/libexec/MailScanner MailScanner binary, virus wrapper/autoupdate
-/usr/local/lib/MailScanner MailScanner Perl libraries
-/usr/local/share/MailScanner MailScanner report templates
-/usr/local/share/doc/MailScanner Documentation
-/usr/local/etc/MailScanner MailScanner config files / rules
-/usr/local/etc/rc.d start/stop scripts
-
-The port installs two start/stop scripts in /usr/local/etc/rc.d:
-
-mailscanner.sh.sample
-mta.sh.sample
-
-My suggestion is to use these scripts instead of the usual FreeBSD MTA startup
-process. This of course means that you will have to disable MTA startup
-in rc.conf completely. Put this in your rc.conf:
-
-sendmail_enable="NO"
-
-Then adjust sendmail.sh or exim.sh to your configuration. Have a look at the
-MailScanner manpage for MTA setup hints.
-
-When upgrading the port it will try to look for new options/variables in
-MailScanner.conf using Julians upgrade_MailScanner_conf script. If it finds
-changes it will create a newly merged MailScanner.conf and copy it to
-/usr/local/etc/MailScanner/MailScanner.conf.new.PORTVERSION.
-
-
-If you have suggestions for this port please let me know and drop me an e-mail at
-
-j.koopmann@seceidos.de
-
-
-Thanks,
- Jan-Peter Koopmann
-
diff --git a/mail/mailscanner/files/mailscanner.sh b/mail/mailscanner/files/mailscanner.sh
deleted file mode 100644
index 67b7bbcbe50e..000000000000
--- a/mail/mailscanner/files/mailscanner.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-
-msbindir=/usr/local/libexec/MailScanner
-process=MailScanner
-config=/usr/local/etc/MailScanner/MailScanner.conf
-PIDFILE=/var/run/MailScanner.pid
-
-start_ms()
-{
- pid=`ps -axww |
- grep '[ ]'$msbindir/$process |
- awk '{print $1}'`
-
- if [ "x$pid" = "x" ]; then
- # Quietly try to raise the open_files limit
- ulimit -n 2000 >/dev/null 2>&1
- # Restart it
- PATH=${msbindir}:$PATH
- echo Starting MailScanner...
- cd $msbindir
- $process $config
- else
- echo MailScanner running with pid $pid
- fi
-}
-
-stop_ms()
-{
- echo Stopping MailScanner...
- kill -TERM -- -`cat $PIDFILE` 2>/dev/null
- sleep 5
-}
-
-_action=${1:-start}
-
-case ${_action} in
-start)
- start_ms
- ;;
-
-stop)
- stop_ms
- ;;
-
-restart)
- stop_ms
- start_ms
- ;;
-
-*)
- echo "Usage: `basename $0` {start|stop|restart}" >&2
- exit 64
- ;;
-esac
-exit 0
diff --git a/mail/mailscanner/files/mta.sh b/mail/mailscanner/files/mta.sh
deleted file mode 100644
index 7bce65f9d8d8..000000000000
--- a/mail/mailscanner/files/mta.sh
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/sh
-
-outgoing_queue_time=15m
-mta=exim
-
-case "$mta" in
- exim)
- program=/usr/local/sbin/exim
-
- if [ -f /usr/local/etc/exim/configure.in ]; then
- incoming_config=/usr/local/etc/exim/configure.in
- else
- incoming_config=/usr/local/etc/exim/configure
- fi
-
- outgoing_config=/usr/local/etc/exim/configure.out
-
- inpidfile=/var/run/exim_in.pid
- outpidfile=/var/run/exim_out.pid
- subpidfile=
-
- incoming_args="-C ${incoming_config} -oP ${inpidfile} -bd"
- outgoing_args="-C ${outgoing_config} -oP ${outpidfile} -q${outgoing_queue_time}"
- submitqueue_args=
- ;;
-
- sendmail)
- program=/usr/sbin/sendmail
-
- incoming_queue=/var/spool/mqueue.in
-
- submit_queue_time=${outgoing_queue_time}
-
- inpidfile=/var/run/sendmail_in.pid
- outpidfile=/var/run/sendmail_out.pid
- subpidfile=/var/spool/clientmqueue/sm-client.pid
-
- incoming_args="-L sm-mta-in -bd \
- -OPrivacyOptions=noetrn \
- -OQueueDirectory=${incoming_queue} \
- -ODeliveryMode=queueonly \
- -OPidFile=${inpidfile}"
- outgoing_args="-L sm-mta-out -q${outgoing_queue_time} \
- -OPidFile=${outpidfile}"
- submitqueue_args="-L sm-msp-queue -Ac -q${submit_queue_time} \
- -OPidFile=${subpidfile}"
- ;;
-
- *)
- echo "ERROR: I don't know the MTA '$mta'. Check your settings." >&2
- exit 2
- ;;
-esac
-
-start_mta()
-{
- echo -n " `basename ${program}`(incoming)"
- ${program} ${incoming_args}
-
- echo -n " `basename ${program}`(outgoing)"
- ${program} ${outgoing_args}
-}
-
-start_mspq ()
-{
- if [ "${submitqueue_args}" ]; then
- echo -n " `basename ${program}`(submitqueue)"
- ${program} ${submitqueue_args}
- fi
-}
-
-stop_mta()
-{
- echo "Stopping `basename ${program}` (incoming)"
- kill -TERM `head -1 ${inpidfile}` 2>/dev/null
-
- echo "Stopping `basename ${program}` (outgoing)"
- kill -TERM `head -1 ${outpidfile}` 2>/dev/null
-}
-
-stop_mspq ()
-{
- if [ "${submitqueue_args}" ]; then
- echo "Stopping `basename ${program}` (submitqueue)"
- kill -TERM `head -1 ${subpidfile}` 2>/dev/null
- fi
-}
-
-
-_action=${1:-start}
-
-case ${_action} in
-start)
- start_mta
- start_mspq
- ;;
-
-stop)
- stop_mta
- stop_mspq
- ;;
-
-restart)
- stop_mta
- stop_mspq
- sleep 5
- start_mta
- start_mspq
- ;;
-
-*)
- echo "Usage: `basename $0` {start|stop|restart}" >&2
- exit 64
- ;;
-esac
-exit 0
-