1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- Update to 4.24-5

- Re-write/clean up most of port's Makefile
- Remove the need for patch, use Perl to substitute strings

PR:		58715
Submitted by:	maintainer
This commit is contained in:
Sergei Kolobov 2003-11-20 22:10:36 +00:00
parent f1b089f8cd
commit 268db76822
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94550
76 changed files with 1836 additions and 18092 deletions

View File

@ -1,79 +1,190 @@
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
#
# $FreeBSD$
#
PORTNAME= mailscanner
PORTVERSION= 4.22.5
PORTREVISION= 0
PORTVERSION= 4.24.5
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
DISTNAME= MailScanner-4.22-5
DISTNAME= MailScanner-4.24-5
MAINTAINER= j.koopmann@seceidos.de
COMMENT= A powerful virus/spam scanning framework for Sendmail and Exim
COMMENT= Powerful virus/spam scanning framework for Sendmail/Exim
BUILD_DEPENDS= ${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
BUILD_DEPENDS= \
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PERL5= yes
DATADIR= ${PREFIX}/share/MailScanner
DOCSDIR= ${PREFIX}/share/doc/MailScanner
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= MailScanner.8
MAN5= MailScanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 MailScanner.conf.5 mailscanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 \
MailScanner.conf.5 mailscanner.conf.5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif
# PATCH_DIST_STRIP= -p1
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf
USE_PERL5= yes
pre-install:
# Delete WRKSRC/.install_*
${RM} -rf ${WRKSRC}/.install_*
do-build:
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/lib/MailScanner,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/MailScanner
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/etc/MailScanner.conf
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/libexec/MailScanner,g; \
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
${PERL} -pi -e \
's,/bin/bash,'${PREFIX}'/bash,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/update_virus_scanners
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'/bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
${PERL} -pi \
-e 's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
do-install:
( cd ${WRKSRC} ; ${MAKE} ${INSTALL_TARGET} BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
post-install:
.for file in ${MAN5}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man5
.endfor
.for file in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man8
#
# Step 1: Install binaries
#
${INSTALL_SCRIPT} ${WRKSRC}/bin/tnef.linux ${PREFIX}/bin/tnef
#
# Step 2: Install libexec files
#
${MKDIR} ${PREFIX}/libexec/MailScanner
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec ${INSTALL_SCRIPT} \
'{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
${PREFIX}/libexec/MailScanner/update_virus_scanners
#
# Step 3: Install etc files
#
${MKDIR} ${PREFIX}/etc/MailScanner
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules && \
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
#
# Step 4: Install files in share
#
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d -exec \
mkdir ${DATADIR}'/{}' \;
cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DATADIR}'/{}'.sample \;
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
#
# Step 5: Install lib
#
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \;
#
# Step 6: Install Start/Stop scripts
#
${INSTALL_SCRIPT} ${FILESDIR}/mailscanner.sh \
${PREFIX}/etc/rc.d/mailscanner.sh.sample
${INSTALL_SCRIPT} ${FILESDIR}/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
#
# Step 7: Docs & Manpages
#
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec mkdir ${DOCSDIR}'/{}' \; && \
${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DOCSDIR}'/{}' \;
cd ${WRKSRC}/docs/man && \
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
.endif
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
# Upgrading MailScanner.conf file... Please wait
@${WRKSRC}/bin/upgrade_MailScanner_conf ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample > ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} 2> /dev/null
@${WRKSRC}/bin/upgrade_MailScanner_conf \
${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
2> /dev/null
# Diff the files. If the files do not differ, delete the new file
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; ${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; \
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
else \
${ECHO} "Changes in MailScanner.conf found. Please look at ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
.endif
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${SED} -e 's#PREFIX#${PREFIX}#' pkg-message
renew-wrapper: install
# Renew virus wrapper scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
initial-config:
( cd ${WRKSRC} ; ${MAKE} initial-config BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
renew-autoupdate: install
# Renew autoupdate scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
renew-reports: install
# Renew reports
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
-exec ${INSTALL_DATA} '{}' ${DATADIR}'/reports/en/{}' \;
initial-config: renew-wrapper renew-autoupdate renew-reports
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
${PREFIX}/etc/MailScanner
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
.include <bsd.port.post.mk>

View File

@ -1 +1 @@
MD5 (MailScanner-4.22-5.tar.gz) = 1e1cae5094b81306b2a0aad83530506b
MD5 (MailScanner-4.24-5.tar.gz) = f43e0f6b1febf41aaf843400b1b4b3f5

View File

@ -0,0 +1,48 @@
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

View File

@ -0,0 +1,55 @@
#!/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

View File

@ -0,0 +1,117 @@
#!/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

View File

@ -1,153 +0,0 @@
--- ../MailScanner-4.22-5.old/Makefile Thu Jan 1 01:00:00 1970
+++ Makefile Mon Aug 11 12:36:06 2003
@@ -0,0 +1,150 @@
+BINOWN= root
+BINGRP= wheel
+BINMODE= 555
+SHAREOWN= root
+SHAREGRP= wheel
+SHAREMODE= 444
+
+
+INSTALL_SCRIPT= install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_DATA= install -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
+PREFIX= /usr/local
+
+OVERWRITE_FILENAMERULES=no
+OVERWRITE_REPORTS=no
+
+all:
+
+build:
+
+install: install_libexec install_etc install_share install_lib install_startstop install_bin
+
+install_bin:
+.if !exists(.install_bin_DONE)
+ ${INSTALL_SCRIPT} bin/tnef.linux ${PREFIX}/bin/tnef
+ touch .install_bin_DONE
+.endif
+
+install_libexec:
+.if !exists(.install_libexec_DONE)
+ @-mkdir ${PREFIX}/libexec/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/libexec/MailScanner 2>/dev/null
+ ${INSTALL_SCRIPT} bin/MailScanner ${PREFIX}/libexec/MailScanner
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ touch .install_libexec_DONE
+.endif
+
+
+install_etc:
+.if !exists(.install_etc_DONE)
+ @-mkdir ${PREFIX}/etc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner 2>/dev/null
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample
+
+ # depending on the setting OVERWRITE_FILENAMERULES we will copy them or append a .sample (default)
+.if (${OVERWRITE_FILENAMERULES} == "yes")
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+.else
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf.sample
+.endif
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf.sample
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf.sample
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners.conf
+
+ # rules subdir
+ @-mkdir ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ ${INSTALL_DATA} etc/rules/EXAMPLES ${PREFIX}/etc/MailScanner/rules/EXAMPLES
+ ${INSTALL_DATA} etc/rules/README ${PREFIX}/etc/MailScanner/rules/README
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
+
+ touch .install_etc_DONE
+.endif
+
+install_share:
+.if !exists(.install_share_DONE)
+ @-mkdir ${PREFIX}/share/doc 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/MailScanner
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/doc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/doc/MailScanner 2>/dev/null
+
+ # First we create subdirectories if there are any
+ ( cd docs ; find * -type d -exec mkdir ${PREFIX}'/share/doc/MailScanner/{}' \; )
+ ( cd docs ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/doc/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} INSTALL ${PREFIX}/share/doc/MailScanner/INSTALL
+ ${INSTALL_DATA} INSTALL.FreeBSD ${PREFIX}/share/doc/MailScanner/INSTALL.FreeBSD
+ ${INSTALL_DATA} INSTALL.OpenBSD ${PREFIX}/share/doc/MailScanner/INSTALL.OpenBSD
+ ${INSTALL_DATA} README ${PREFIX}/share/doc/MailScanner/README
+
+ # reports subdir
+ # Create report subdirectories and set modes
+ ( cd etc ; find reports -type d -exec mkdir ${PREFIX}'/share/MailScanner/{}' \; ) 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner/reports
+
+ # Copy the individual reports
+ # depending on the setting OVERWRITE_REPORTS we will copy them or append a .sample (default)
+.if (${OVERWRITE_REPORTS} == "yes")
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}' \; )
+.else
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}'.sample \; )
+.endif
+
+ touch .install_share_DONE
+.endif
+
+install_lib:
+.if !exists(.install_lib_DONE)
+ @-mkdir ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-mkdir ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+
+ ${INSTALL_SCRIPT} lib/MailScanner.pm ${PREFIX}/lib/MailScanner/MailScanner.pm
+
+ (cd lib/MailScanner ; find * -type f ! -name "*.orig" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \; )
+
+ touch .install_lib_DONE
+.endif
+
+install_startstop:
+.if !exists(.install_startstop_DONE)
+
+ ${INSTALL_SCRIPT} bin/mailscanner.sh ${PREFIX}/etc/rc.d/mailscanner.sh.sample
+ ${INSTALL_SCRIPT} bin/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
+
+ touch .install_startstop_DONE
+.endif
+
+initial-config: install
+ # copy all files needed for standard config
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners
+
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
+
+ ( cd etc/reports/en ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/reports/en/{}' \; );
+
+

View File

@ -1,17 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/MailScanner Mon Aug 11 12:15:30 2003
+++ bin/MailScanner Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -I/opt/MailScanner/lib
+#!/usr/bin/perl -I/usr/local/lib/MailScanner
#
# MailScanner - SMTP E-Mail Virus Scanner
# Copyright (C) 2002 Julian Field
@@ -125,7 +125,7 @@
# Find the mailscanner.conf file, with a default just in case.
my $ConfFile = $ARGV[0];
-$ConfFile = '/opt/MailScanner/etc/MailScanner.conf' unless $ConfFile;
+$ConfFile = '/usr/local/etc/MailScanner/MailScanner.conf' unless $ConfFile;
# Load the MTA modules we need
my($MTAmod, $MTADSmod);

View File

@ -1,58 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mailscanner.sh Thu Jan 1 01:00:00 1970
+++ bin/mailscanner.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,55 @@
+#!/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

View File

@ -1,120 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mta.sh Thu Jan 1 01:00:00 1970
+++ bin/mta.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,117 @@
+#!/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
+

View File

@ -1,51 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/README.FreeBSD.port Thu Jan 1 01:00:00 1970
+++ docs/README.FreeBSD.port Mon Aug 11 12:36:06 2003
@@ -0,0 +1,48 @@
+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
+

View File

@ -1,122 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.8 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.8 Mon Aug 11 12:36:06 2003
@@ -1,102 +1,17 @@
-.TH "MailScanner" "8" "4.22-4" "Julian Field" "Mail"
-.SH "NAME"
-.LP
-MailScanner \- Virus/Spam Scanner for Sendmail and Exim
-.SH "SYNOPSIS"
-.LP
-\fBMailScanner\fR [\fIconfigfile\fR]
-
-.SH "DESCRIPTION"
-.LP
-\fBMailScanner\fR starts the main MailScanner process. [\fIconfigfile\fR] should point to a valid MailScanner configuration file (see MailScanner.conf(3) for details). The default location for this file depends on the operating system.
-.br
-
-.br
-Linux: /etc/MailScanner/MailScanner.conf
-.br
-
-.br
-FreeBSD: /usr/local/etc/MailScanner/MailScanner.conf
-.br
-
-.br
-Other: /opt/MailScanner/etc/MailScanner.conf
-
-.LP
-The main process then spawns \fIn\fR number of child processes. \fIn\fR is configured in [\fIconfigfile\fR] with the option "Max Children". Each process waits for messages to appear in the "Incoming Queue Dir", processes these messages and then puts them in the "Outgoing Queue Dir". You may need to adjust the configuration of your MTA (or the startup of your MTA) to make it work with MailScanner.
-
-.SH "MTA SETUP"
-.LP
-It is important that your MTA only queues incoming mail and does not deliver it automatically. You need two mail queues (incoming and outgoing). Moreover you should setup two instances of your MTA. One that accepts incoming mail and puts it to an incoming queue and one that sends out mail that resides in the outgoing queue.
-
-.LP
-A common setup for Sendmail could look like this:
-.br
-
-.br
-1. Verify that you already have one queue (e.g. in /var/spool/mqueue).
-.br
-
-.br
-2. Create a second queue (e.g. /var/spool/mqueue.in) and apply the same owner/group/mode.
-.br
-
-.br
-3. Change your sendmail startup from
-.br
-
-.br
- sendmail \-bd \-q15m (or similar)
-.br
-
-.br
- to
-.br
-
-.br
- sendmail \-bd \-OPrivacyOptions=noetrn \-ODeliveryMode=queueonly \-OQueueDirectory=/var/spool/mqueue.in
-.br
- sendmail \-q15m
-
-.LP
-A similar setup for Exim could look like this:
-.br
-
-.br
-1. Create two queues (e.g. /var/spool/exim.in and /var/spool/exim.out) with appropriate owner/group/mode (e.g. owner=mailnull, group=mail, mode=750).
-.br
-
-.br
-2. Create two exim configurations (e.g. /usr/local/etc/exim/configure.in, /usr/local/etc/exim/configure.out).
-.br
-
-.br
-3. Make sure that the incoming exim configuration only queues mails and never delivers mail itself. This can be achieved by using the Exim config option "queue_only = true" and/or a special router definition (Exim 4 syntax):
-.br
-
-.br
- defer_router:
-.br
- driver = manualroute
-.br
- self = defer
-.br
- transport = remote_smtp
-.br
- route_list = * 127.0.0.1 byname
-.br
- verify = false
-.br
-
-.br
-4. Start two exim instances:
-.br
-
-.br
- exim \-C /usr/local/etc/exim/configure.in
-.br
- exim \-C /usr/local/etc/exim/configure.out
-
-.SH "SEE ALSO"
-.LP
-MailScanner.conf(3)
+<!-- Creator : groff version 1.19 -->
+<!-- CreationDate: Mon Aug 11 12:28:56 2003 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta name="generator" content="groff -Thtml, see www.gnu.org">
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<meta name="Content-Style" content="text/css">
+<title></title>
+</head>
+<body>
+
+<hr>
+<hr>
+</body>
+</html>

View File

@ -1,187 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.conf.5 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.conf.5 Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-.TH "MailScanner.conf" "5" "4.22-4" "Julian Field" "Mail"
+.TH "MailScanner.conf" "5" "4.23" "Julian Field" "Mail"
.SH "NAME"
.LP
MailScanner.conf \- Main configuration for MailScanner
@@ -279,9 +279,15 @@
.br
.br
-Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. Example:
+Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. This option allows for multiple strings as well. In this case, the strings should be put in double quotes (") and each string separated with commas. Examples:
.br
Allowed Sophos Error Messages = corrupt format not supported
+.br
+Allowed Sophos Error Messages = "corrupt", "format not supported"
+.br
+
+.br
+The first version will match "corrupt format not supported" only. The second version will match "corrupt" and "format not supported".
.TP
\fBSophos IDE Dir\fR
@@ -358,11 +364,13 @@
.br
.br
-Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 2 special keywords
+Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 3 special keywords
.br
HTML\-IFrame: inserting this will stop senders being warned about HTML Iframe tags, when they are not allowed.
.br
HTML\-Codebase: inserting this will stop senders being warned about HTML Object Codebase tags, when they are not allowed.
+.br
+All\-Viruses: inserting this will stop senders being warned about any virus, while still allowing you to warn senders about HTML\-based attacks.
.TP
@@ -539,7 +547,31 @@
.br
.br
-When an attachment is deleted from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+When an attachment is deleted and stored from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBDeleted Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/deleted.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/deleted.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.content.message.txt
+.br
+
+.br
+This report is sent when a message is deleted because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBStored Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/stored.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/stored.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.content.message.txt
+.br
+
+.br
+This report is sent when a message is stored because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
.TP
\fBDisinfected Report\fR
@@ -600,7 +632,8 @@
.br
When an attachment is trapped by the filename rules, this message is sent back to the sender.
-:
+
+
.TP
\fBSender Virus Report\fR
Default: /opt/MailScanner/etc/reports/en/sender.virus.report.txt
@@ -613,6 +646,7 @@
.br
When an attachment is removed because of a virus, this message is sent back to the sender.
+
.TP
\fBHide Incoming Work Dir\fR
Default: yes
@@ -623,11 +657,13 @@
.TP
\fBInclude Scanner Name in Reports\fR
-Default: no
+Default: yes
.br
.br
-Include the name of the virus scanner in each of the scanner reports. Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
+Include the name of the virus scanner in each of the scanner reports. This also includes the translation of "MailScanner" in each of the report lines resulting from one of MailScanner's own checks such as filename, filetype or dangerous HTML content. To change the name "MailScanner", look in reports/...../languages.conf.
+.br
+Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
.SH "Changes to message headers"
.TP
\fBMail Header\fR
@@ -839,17 +875,34 @@
.br
.br
-If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Virus Subject Text" text inserted at the start.
+If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Filename Subject Text" text inserted at the start.
.TP
\fBFilename Subject Text\fR
-Default: yes
+Default: {Virus?}
.br
.br
This is the text inserted at the start of the "Subject:" line if the "Filename Modify Subject" option is set.
.TP
+\fBContent Modify Subject\fR
+Default: yes
+.br
+
+.br
+If this is set, then the "Subject:" line of a message that triggered a content check without anything else wrong in the message will have the "Content Subject Text" text inserted at the start.
+
+.TP
+\fBContent Subject Text\fR
+Default: {Filename?}
+.br
+
+.br
+This is the text inserted at the start of the "Subject:" line if the "Content Modify Subject" option is set.
+
+
+.TP
\fBSpam Modify Subject\fR
Default: yes
.br
@@ -1081,6 +1134,14 @@
.br
This option would normally be a ruleset. Any messages for which the ruleset result is "yes" will always be marked as spam. This is used to create a spam "blacklist" of addresses of known spammers.
+.TP
+\fBDefinite Spam Is High Scoring\fR
+Default: no
+.br
+
+.br
+Setting this to yes means that spam found in the blacklist is treated as "High Scoring Spam" in the "Spam Actions" section below. Setting it to no means that it will be treated as "normal" spam. This can also be the filename of a ruleset.
+
.SH "SpamAssassin"
.TP
\fBUse SpamAssassin\fR
@@ -1411,6 +1472,27 @@
.br
Are you using Exim with split spool directories? If you don't understand this, the answer is probably "no". Refer to the Exim documentation for more information about split spool directories.
+
+.TP
+\fBUse Default Rules With Multiple Recipients\fR
+Default: no
+.br
+
+.br
+When trying to work out the value of configuration parameters which are using a ruleset, this controls the behaviour when a rule is checking the "To:" addresses. If this option is set to "yes", then the following happens when checking the ruleset:
+.br
+
+.br
+a) 1 recipient. Same behaviour as normal.
+.br
+b) Several recipients, but all in the same domain (domain.com for example). The rules are checked for one that matches the string "*@domain.com".
+.br
+c) Several recipients, not all in the same domain. The rules are checked for one that matches the string "*@*".
+.br
+
+.br
+If this option is set to "no", then some rules will use the result they get from the first matching rule for any of the recipients of a message, so the exact value cannot be predicted for messages with more than 1 recipient. This value *cannot* be the filename of a ruleset.
+
.SH "RULESETS"
.LP
Ruleset files should all be put in /opt/MailScanner/etc/rules (FreeBSD: /usr/local/etc/MailScanner/rules) and their filename should end in ".rules" wherever possible.

View File

@ -1,76 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/MailScanner.conf Mon Aug 11 12:15:32 2003
+++ etc/MailScanner.conf Mon Aug 11 12:36:06 2003
@@ -31,13 +31,13 @@
#
# Set the directory containing all the reports in all the languages
-%report-dir% = /opt/MailScanner/etc/reports/en
+%report-dir% = /usr/local/share/MailScanner/reports/en
# Configuration directory containing this file
-%etc-dir% = /opt/MailScanner/etc
+%etc-dir% = /usr/local/etc/MailScanner
# Rulesets directory containing your ".rules" files
-%rules-dir% = /opt/MailScanner/etc/rules
+%rules-dir% = /usr/local/etc/MailScanner/rules
#
# System settings
@@ -82,7 +82,7 @@
# Example: /var/spool/mqueue.in/*
# 3. The name of a file containing a list of directory names,
# which can in turn contain wildcards.
-# Example: /opt/MailScanner/etc/mqueue.in.list.conf
+# Example: /usr/local/etc/MailScanner/mqueue.in.list.conf
#
Incoming Queue Dir = /var/spool/mqueue.in
@@ -98,7 +98,7 @@
Quarantine Dir = /var/spool/MailScanner/quarantine
# Set where to store the process id number so you can stop MailScanner
-PID file = /opt/MailScanner/var/MailScanner.pid
+PID file = /var/run/MailScanner.pid
# To avoid resource leaks, re-start periodically
Restart Every = 14400
@@ -111,7 +111,7 @@
# Set how to invoke MTA when sending messages MailScanner has created
# (e.g. to sender/recipient saying "found a virus in your message")
# This can also be the filename of a ruleset.
-Sendmail = /usr/lib/sendmail
+Sendmail = /usr/sbin/sendmail
# Sendmail2 is provided for Exim users.
# It is the command used to attempt delivery of outgoing cleaned/disinfected
@@ -119,9 +119,9 @@
# This is not usually required for sendmail.
# This can also be the filename of a ruleset.
#For Exim users: Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_send.conf
-#For sendmail users: Sendmail2 = /usr/lib/sendmail
+#For sendmail users: Sendmail2 = /usr/sbin/sendmail
#Sendmail2 = /usr/sbin/sendmail -C /etc/exim/exim_send.conf
-Sendmail2 = /usr/lib/sendmail
+Sendmail2 = /usr/sbin/sendmail
#
# Processing Incoming Mail
@@ -165,7 +165,7 @@
# may be. It helps protect against Denial Of Service attacks in TNEF files.
#TNEF Expander = internal
# This can also be the filename of a ruleset.
-TNEF Expander = /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEF Expander = /usr/local/bin/tnef --maxsize=100000000
# The maximum length of time the TNEF Expander is allowed to run for 1 message.
# (in seconds)
@@ -1028,7 +1028,7 @@
# /etc/mail/spamassassin, and maybe others.
# If this is set then it adds to the list of places that are searched;
# otherwise it has no effect.
-#SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
+#SpamAssassin Local Rules Dir = /usr/local/etc/MailScanner/mail/spamassassin
SpamAssassin Local Rules Dir =
# The default rules are searched for here, and in prefix/share/spamassassin,

View File

@ -1,43 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/virus.scanners.conf Mon Aug 11 12:15:32 2003
+++ etc/virus.scanners.conf Mon Aug 11 12:36:06 2003
@@ -1,21 +1,21 @@
# This is a list of the names of the virus scanning engines, along with the
# filename of the command or script to run to invoke each one.
-sophos /opt/MailScanner/lib/sophos-wrapper
-f-prot /opt/MailScanner/lib/f-prot-wrapper
-mcafee /opt/MailScanner/lib/mcafee-wrapper
-rav /opt/MailScanner/lib/rav-wrapper
-kaspersky /opt/MailScanner/lib/kaspersky-wrapper
-kavdaemonclient /opt/MailScanner/lib/kavdaemonclient-wrapper
-panda /opt/MailScanner/lib/panda-wrapper
-f-secure /opt/MailScanner/lib/f-secure-wrapper
-clamav /opt/MailScanner/lib/clamav-wrapper
-trend /opt/MailScanner/lib/trend-wrapper
-antivir /opt/MailScanner/lib/antivir-wrapper
-inoculate /opt/MailScanner/lib/inoculate-wrapper
-inoculan /opt/MailScanner/lib/inoculan-wrapper
-command /opt/MailScanner/lib/command-wrapper
-nod32 /opt/MailScanner/lib/nod32-wrapper
-nod32-1.99 /opt/MailScanner/lib/nod32-wrapper
-bitdefender /opt/MailScanner/lib/bitdefender-wrapper
-sophossavi /bin/false
-none /bin/false
+sophos /usr/local/libexec/MailScanner/sophos-wrapper
+f-prot /usr/local/libexec/MailScanner/f-prot-wrapper
+mcafee /usr/local/libexec/MailScanner/mcafee-wrapper
+rav /usr/local/libexec/MailScanner/rav-wrapper
+kaspersky /usr/local/libexec/MailScanner/kaspersky-wrapper
+kavdaemonclient /usr/local/libexec/MailScanner/kavdaemonclient-wrapper
+panda /usr/local/libexec/MailScanner/panda-wrapper
+f-secure /usr/local/libexec/MailScanner/f-secure-wrapper
+clamav /usr/local/libexec/MailScanner/clamav-wrapper
+trend /usr/local/libexec/MailScanner/trend-wrapper
+antivir /usr/local/libexec/MailScanner/antivir-wrapper
+inoculate /usr/local/libexec/MailScanner/inoculate-wrapper
+inoculan /usr/local/libexec/MailScanner/inoculan-wrapper
+command /usr/local/libexec/MailScanner/command-wrapper
+nod32 /usr/local/libexec/MailScanner/nod32-wrapper
+nod32-1.99 /usr/local/libexec/MailScanner/nod32-wrapper
+bitdefender /usr/local/libexec/MailScanner/bitdefender-wrapper
+sophossavi /usr/bin/false
+none /usr/bin/false

View File

@ -1,72 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:36:06 2003
@@ -154,9 +154,9 @@
# Check the first word of these for file existence
[Simple,File]
pidfile /var/run/MailScanner.pid
-spamassassinprefsfile /opt/MailScanner/etc/spam.assassin.prefs.conf
-SpamListDefinitions /opt/MailScanner/etc/spam.lists.conf
-VirusScannerDefinitions /opt/MailScanner/etc/virus.scanners.conf
+spamassassinprefsfile /usr/local/etc/MailScanner/spam.assassin.prefs.conf
+SpamListDefinitions /usr/local/etc/MailScanner/spam.lists.conf
+VirusScannerDefinitions /usr/local/etc/MailScanner/virus.scanners.conf
# Check these to ensure they are just numbers
[Simple,Number]
@@ -197,7 +197,7 @@
SpamAssassinDefaultRulesDir
SpamAssassinInstallPrefix
SpamStarsCharacter s
-TNEFExpander /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEFExpander /usr/local/bin/tnef --maxsize=100000000
VirusScanners none # Space-separated list
#
@@ -246,23 +246,23 @@
WarnSenders 1 no 0 yes 1
[First,File]
-DeletedFilenameMessage /opt/MailScanner/etc/reports/en/deleted.filename.message.txt
-DeletedVirusMessage /opt/MailScanner/etc/reports/en/deleted.virus.message.txt
-DisinfectedReportText /opt/MailScanner/etc/reports/en/disinfected.report.txt
-inlinehtmlsig /opt/MailScanner/etc/reports/en/inline.sig.html
-inlinehtmlwarning /opt/MailScanner/etc/reports/en/inline.warning.html
+DeletedFilenameMessage /usr/local/share/MailScanner/reports/en/deleted.filename.message.txt
+DeletedVirusMessage /usr/local/share/MailScanner/reports/en/deleted.virus.message.txt
+DisinfectedReportText /usr/local/share/MailScanner/reports/en/disinfected.report.txt
+inlinehtmlsig /usr/local/share/MailScanner/reports/en/inline.sig.html
+inlinehtmlwarning /usr/local/share/MailScanner/reports/en/inline.warning.html
inlinespamwarning /etc/MailScanner/reports/en/inline.spam.warning.txt
-inlinetextsig /opt/MailScanner/etc/reports/en/inline.sig.txt
-inlinetextwarning /opt/MailScanner/etc/reports/en/inline.warning.txt
+inlinetextsig /usr/local/share/MailScanner/reports/en/inline.sig.txt
+inlinetextwarning /usr/local/share/MailScanner/reports/en/inline.warning.txt
languagestrings
-sendererrorreport /opt/MailScanner/etc/reports/en/sender.error.report.txt
-senderfilenamereport /opt/MailScanner/etc/reports/en/sender.filename.report.txt
-SenderRBLSpamReport /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt
-SenderSASpamReport /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt
-SenderBothSpamReport /opt/MailScanner/etc/reports/en/sender.spam.report.txt
-sendervirusreport /opt/MailScanner/etc/reports/en/sender.virus.report.txt
-StoredFilenameMessage /opt/MailScanner/etc/reports/en/stored.filename.message.txt
-StoredVirusMessage /opt/MailScanner/etc/reports/en/stored.virus.message.txt
+sendererrorreport /usr/local/share/MailScanner/reports/en/sender.error.report.txt
+senderfilenamereport /usr/local/share/MailScanner/reports/en/sender.filename.report.txt
+SenderRBLSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt
+SenderSASpamReport /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt
+SenderBothSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.report.txt
+sendervirusreport /usr/local/share/MailScanner/reports/en/sender.virus.report.txt
+StoredFilenameMessage /usr/local/share/MailScanner/reports/en/stored.filename.message.txt
+StoredVirusMessage /usr/local/share/MailScanner/reports/en/stored.virus.message.txt
[First,Command]
Sendmail /usr/sbin/sendmail
@@ -317,7 +317,7 @@
UseSpamAssassin 0 no 0 yes 1
[All,File]
-#FilenameRules /opt/MailScanner/etc/filename.rules.conf
+#FilenameRules /usr/local/etc/MailScanner/filename.rules.conf
FilenameRules
FiletypeRules

View File

@ -1,10 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/SystemDefs.pm Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/SystemDefs.pm Mon Aug 11 12:36:06 2003
@@ -36,6 +36,6 @@
$global::rm = '/bin/rm';
$global::cp = '/bin/cp';
$global::cat = '/bin/cat';
-$global::sed = '/bin/sed';
+$global::sed = '/usr/bin/sed';
1;

View File

@ -5,7 +5,7 @@
/ ___ \| | | | | |___| |\ | | | | | |_| | |\ |
/_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_|
See PREFIX/share/doc/MailScanner/README.FreeBSD.port,
See %%PREFIX%%/share/doc/MailScanner/README.FreeBSD.port,
http://www.mailscanner.info, the man pages MailScanner and
MailScanner.conf for further instructions.
@ -21,4 +21,14 @@
.sample files instead of real .conf files and report
templates.
If you are upgrading your port you might consider
running
make renew-wrapper
make renew-autoupdate
make renew-reports
to update your virus-wrappers, autoupdates, reports and
languages.conf
*************************************************************************

View File

@ -1,12 +1,14 @@
@comment $FreeBSD$
bin/tnef
etc/MailScanner/MailScanner.conf.sample
etc/MailScanner/filename.rules.conf.sample
etc/MailScanner/filetype.rules.conf.sample
etc/MailScanner/rules/EXAMPLES
etc/MailScanner/rules/README
etc/MailScanner/rules/spam.whitelist.rules.sample
etc/MailScanner/spam.assassin.prefs.conf.sample
etc/MailScanner/spam.lists.conf.sample
etc/MailScanner/virus.scanners.conf
etc/MailScanner/virus.scanners.conf.sample
etc/rc.d/mailscanner.sh.sample
etc/rc.d/mta.sh.sample
lib/MailScanner/MailScanner.pm
@ -17,6 +19,8 @@ lib/MailScanner/MailScanner/Exim.pm
lib/MailScanner/MailScanner/EximDiskStore.pm
lib/MailScanner/MailScanner/Lock.pm
lib/MailScanner/MailScanner/Log.pm
lib/MailScanner/MailScanner/MCP.pm
lib/MailScanner/MailScanner/MCPMessage.pm
lib/MailScanner/MailScanner/Mail.pm
lib/MailScanner/MailScanner/Message.pm
lib/MailScanner/MailScanner/MessageBatch.pm
@ -45,8 +49,11 @@ libexec/MailScanner/bitdefender-wrapper.sample
libexec/MailScanner/clamav-autoupdate.sample
libexec/MailScanner/clamav-wrapper.sample
libexec/MailScanner/command-wrapper.sample
libexec/MailScanner/etrust-autoupdate.sample
libexec/MailScanner/etrust-wrapper.sample
libexec/MailScanner/f-prot-autoupdate.sample
libexec/MailScanner/f-prot-wrapper.sample
libexec/MailScanner/f-secure-autoupdate.sample
libexec/MailScanner/f-secure-wrapper.sample
libexec/MailScanner/inoculan-wrapper.sample
libexec/MailScanner/inoculate-wrapper.sample
@ -62,7 +69,10 @@ libexec/MailScanner/rav-autoupdate.sample
libexec/MailScanner/rav-wrapper.sample
libexec/MailScanner/sophos-autoupdate.sample
libexec/MailScanner/sophos-wrapper.sample
libexec/MailScanner/trend-autoupdate.sample
libexec/MailScanner/trend-wrapper.sample
libexec/MailScanner/update_virus_scanners
%%DATADIR%%/reports/cy+en/deleted.content.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cy+en/disinfected.report.txt.sample
@ -72,14 +82,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cy+en/inline.warning.html.sample
%%DATADIR%%/reports/cy+en/inline.warning.txt.sample
%%DATADIR%%/reports/cy+en/languages.conf.sample
%%DATADIR%%/reports/cy+en/sender.content.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.error.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.filename.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.virus.report.txt.sample
%%DATADIR%%/reports/cy+en/stored.content.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.virus.message.txt.sample
%%DATADIR%%/reports/cz/deleted.content.message.txt.sample
%%DATADIR%%/reports/cz/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cz/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cz/disinfected.report.txt.sample
@ -89,15 +103,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cz/inline.warning.html.sample
%%DATADIR%%/reports/cz/inline.warning.txt.sample
%%DATADIR%%/reports/cz/languages.conf.sample
%%DATADIR%%/reports/cz/sender.content.report.txt.sample
%%DATADIR%%/reports/cz/sender.error.report.txt.sample
%%DATADIR%%/reports/cz/sender.filename.report.txt.sample
%%DATADIR%%/reports/cz/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cz/sender.virus.report.txt.sample
%%DATADIR%%/reports/cz/stored.content.message.txt.sample
%%DATADIR%%/reports/cz/stored.filename.message.txt.sample
%%DATADIR%%/reports/cz/stored.virus.message.txt.sample
%%DATADIR%%/reports/de/README.1ST.sample
%%DATADIR%%/reports/de/deleted.content.message.txt.sample
%%DATADIR%%/reports/de/deleted.filename.message.txt.sample
%%DATADIR%%/reports/de/deleted.virus.message.txt.sample
%%DATADIR%%/reports/de/disinfected.report.txt.sample
@ -107,14 +125,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/de/inline.warning.html.sample
%%DATADIR%%/reports/de/inline.warning.txt.sample
%%DATADIR%%/reports/de/languages.conf.sample
%%DATADIR%%/reports/de/sender.content.report.txt.sample
%%DATADIR%%/reports/de/sender.error.report.txt.sample
%%DATADIR%%/reports/de/sender.filename.report.txt.sample
%%DATADIR%%/reports/de/sender.mcp.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/de/sender.virus.report.txt.sample
%%DATADIR%%/reports/de/stored.content.message.txt.sample
%%DATADIR%%/reports/de/stored.filename.message.txt.sample
%%DATADIR%%/reports/de/stored.virus.message.txt.sample
%%DATADIR%%/reports/dk/deleted.content.message.txt.sample
%%DATADIR%%/reports/dk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/dk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/dk/disinfected.report.txt.sample
@ -124,14 +146,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/dk/inline.warning.html.sample
%%DATADIR%%/reports/dk/inline.warning.txt.sample
%%DATADIR%%/reports/dk/languages.conf.sample
%%DATADIR%%/reports/dk/sender.content.report.txt.sample
%%DATADIR%%/reports/dk/sender.error.report.txt.sample
%%DATADIR%%/reports/dk/sender.filename.report.txt.sample
%%DATADIR%%/reports/dk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/dk/sender.virus.report.txt.sample
%%DATADIR%%/reports/dk/stored.content.message.txt.sample
%%DATADIR%%/reports/dk/stored.filename.message.txt.sample
%%DATADIR%%/reports/dk/stored.virus.message.txt.sample
%%DATADIR%%/reports/en/deleted.content.message.txt.sample
%%DATADIR%%/reports/en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/en/disinfected.report.txt.sample
@ -141,14 +167,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/en/inline.warning.html.sample
%%DATADIR%%/reports/en/inline.warning.txt.sample
%%DATADIR%%/reports/en/languages.conf.sample
%%DATADIR%%/reports/en/sender.content.report.txt.sample
%%DATADIR%%/reports/en/sender.error.report.txt.sample
%%DATADIR%%/reports/en/sender.filename.report.txt.sample
%%DATADIR%%/reports/en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/en/sender.virus.report.txt.sample
%%DATADIR%%/reports/en/stored.content.message.txt.sample
%%DATADIR%%/reports/en/stored.filename.message.txt.sample
%%DATADIR%%/reports/en/stored.virus.message.txt.sample
%%DATADIR%%/reports/es/deleted.content.message.txt.sample
%%DATADIR%%/reports/es/deleted.filename.message.txt.sample
%%DATADIR%%/reports/es/deleted.virus.message.txt.sample
%%DATADIR%%/reports/es/disinfected.report.txt.sample
@ -158,14 +188,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/es/inline.warning.html.sample
%%DATADIR%%/reports/es/inline.warning.txt.sample
%%DATADIR%%/reports/es/languages.conf.sample
%%DATADIR%%/reports/es/sender.content.report.txt.sample
%%DATADIR%%/reports/es/sender.error.report.txt.sample
%%DATADIR%%/reports/es/sender.filename.report.txt.sample
%%DATADIR%%/reports/es/sender.mcp.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/es/sender.virus.report.txt.sample
%%DATADIR%%/reports/es/stored.content.message.txt.sample
%%DATADIR%%/reports/es/stored.filename.message.txt.sample
%%DATADIR%%/reports/es/stored.virus.message.txt.sample
%%DATADIR%%/reports/fr/deleted.content.message.txt.sample
%%DATADIR%%/reports/fr/deleted.filename.message.txt.sample
%%DATADIR%%/reports/fr/deleted.virus.message.txt.sample
%%DATADIR%%/reports/fr/disinfected.report.txt.sample
@ -175,14 +209,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/fr/inline.warning.html.sample
%%DATADIR%%/reports/fr/inline.warning.txt.sample
%%DATADIR%%/reports/fr/languages.conf.sample
%%DATADIR%%/reports/fr/sender.content.report.txt.sample
%%DATADIR%%/reports/fr/sender.error.report.txt.sample
%%DATADIR%%/reports/fr/sender.filename.report.txt.sample
%%DATADIR%%/reports/fr/sender.mcp.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/fr/sender.virus.report.txt.sample
%%DATADIR%%/reports/fr/stored.content.message.txt.sample
%%DATADIR%%/reports/fr/stored.filename.message.txt.sample
%%DATADIR%%/reports/fr/stored.virus.message.txt.sample
%%DATADIR%%/reports/hu/deleted.content.message.txt.sample
%%DATADIR%%/reports/hu/deleted.filename.message.txt.sample
%%DATADIR%%/reports/hu/deleted.virus.message.txt.sample
%%DATADIR%%/reports/hu/disinfected.report.txt.sample
@ -192,14 +230,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/hu/inline.warning.html.sample
%%DATADIR%%/reports/hu/inline.warning.txt.sample
%%DATADIR%%/reports/hu/languages.conf.sample
%%DATADIR%%/reports/hu/sender.content.report.txt.sample
%%DATADIR%%/reports/hu/sender.error.report.txt.sample
%%DATADIR%%/reports/hu/sender.filename.report.txt.sample
%%DATADIR%%/reports/hu/sender.mcp.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/hu/sender.virus.report.txt.sample
%%DATADIR%%/reports/hu/stored.content.message.txt.sample
%%DATADIR%%/reports/hu/stored.filename.message.txt.sample
%%DATADIR%%/reports/hu/stored.virus.message.txt.sample
%%DATADIR%%/reports/it/deleted.content.message.txt.sample
%%DATADIR%%/reports/it/deleted.filename.message.txt.sample
%%DATADIR%%/reports/it/deleted.virus.message.txt.sample
%%DATADIR%%/reports/it/disinfected.report.txt.sample
@ -209,14 +251,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/it/inline.warning.html.sample
%%DATADIR%%/reports/it/inline.warning.txt.sample
%%DATADIR%%/reports/it/languages.conf.sample
%%DATADIR%%/reports/it/sender.content.report.txt.sample
%%DATADIR%%/reports/it/sender.error.report.txt.sample
%%DATADIR%%/reports/it/sender.filename.report.txt.sample
%%DATADIR%%/reports/it/sender.mcp.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/it/sender.virus.report.txt.sample
%%DATADIR%%/reports/it/stored.content.message.txt.sample
%%DATADIR%%/reports/it/stored.filename.message.txt.sample
%%DATADIR%%/reports/it/stored.virus.message.txt.sample
%%DATADIR%%/reports/nl/deleted.content.message.txt.sample
%%DATADIR%%/reports/nl/deleted.filename.message.txt.sample
%%DATADIR%%/reports/nl/deleted.virus.message.txt.sample
%%DATADIR%%/reports/nl/disinfected.report.txt.sample
@ -226,14 +272,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/nl/inline.warning.html.sample
%%DATADIR%%/reports/nl/inline.warning.txt.sample
%%DATADIR%%/reports/nl/languages.conf.sample
%%DATADIR%%/reports/nl/sender.content.report.txt.sample
%%DATADIR%%/reports/nl/sender.error.report.txt.sample
%%DATADIR%%/reports/nl/sender.filename.report.txt.sample
%%DATADIR%%/reports/nl/sender.mcp.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/nl/sender.virus.report.txt.sample
%%DATADIR%%/reports/nl/stored.content.message.txt.sample
%%DATADIR%%/reports/nl/stored.filename.message.txt.sample
%%DATADIR%%/reports/nl/stored.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.content.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/disinfected.report.txt.sample
@ -243,14 +293,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/pt_br/inline.warning.html.sample
%%DATADIR%%/reports/pt_br/inline.warning.txt.sample
%%DATADIR%%/reports/pt_br/languages.conf.sample
%%DATADIR%%/reports/pt_br/sender.content.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.error.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.filename.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.mcp.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.virus.report.txt.sample
%%DATADIR%%/reports/pt_br/stored.content.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.virus.message.txt.sample
%%DATADIR%%/reports/ro/deleted.content.message.txt.sample
%%DATADIR%%/reports/ro/deleted.filename.message.txt.sample
%%DATADIR%%/reports/ro/deleted.virus.message.txt.sample
%%DATADIR%%/reports/ro/disinfected.report.txt.sample
@ -260,15 +314,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/ro/inline.warning.html.sample
%%DATADIR%%/reports/ro/inline.warning.txt.sample
%%DATADIR%%/reports/ro/languages.conf.sample
%%DATADIR%%/reports/ro/sender.content.report.txt.sample
%%DATADIR%%/reports/ro/sender.error.report.txt.sample
%%DATADIR%%/reports/ro/sender.filename.report.txt.sample
%%DATADIR%%/reports/ro/sender.mcp.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/ro/sender.virus.report.txt.sample
%%DATADIR%%/reports/ro/stored.content.message.txt.sample
%%DATADIR%%/reports/ro/stored.filename.message.txt.sample
%%DATADIR%%/reports/ro/stored.virus.message.txt.sample
%%DATADIR%%/reports/se/README.sample
%%DATADIR%%/reports/se/deleted.content.message.txt.sample
%%DATADIR%%/reports/se/deleted.filename.message.txt.sample
%%DATADIR%%/reports/se/deleted.virus.message.txt.sample
%%DATADIR%%/reports/se/disinfected.report.txt.sample
@ -278,14 +336,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/se/inline.warning.html.sample
%%DATADIR%%/reports/se/inline.warning.txt.sample
%%DATADIR%%/reports/se/languages.conf.sample
%%DATADIR%%/reports/se/sender.content.report.txt.sample
%%DATADIR%%/reports/se/sender.error.report.txt.sample
%%DATADIR%%/reports/se/sender.filename.report.txt.sample
%%DATADIR%%/reports/se/sender.mcp.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/se/sender.virus.report.txt.sample
%%DATADIR%%/reports/se/stored.content.message.txt.sample
%%DATADIR%%/reports/se/stored.filename.message.txt.sample
%%DATADIR%%/reports/se/stored.virus.message.txt.sample
%%DATADIR%%/reports/sk/deleted.content.message.txt.sample
%%DATADIR%%/reports/sk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/sk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/sk/disinfected.report.txt.sample
@ -295,12 +357,15 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/sk/inline.warning.html.sample
%%DATADIR%%/reports/sk/inline.warning.txt.sample
%%DATADIR%%/reports/sk/languages.conf.sample
%%DATADIR%%/reports/sk/sender.content.report.txt.sample
%%DATADIR%%/reports/sk/sender.error.report.txt.sample
%%DATADIR%%/reports/sk/sender.filename.report.txt.sample
%%DATADIR%%/reports/sk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/sk/sender.virus.report.txt.sample
%%DATADIR%%/reports/sk/stored.content.message.txt.sample
%%DATADIR%%/reports/sk/stored.filename.message.txt.sample
%%DATADIR%%/reports/sk/stored.virus.message.txt.sample
%%DOCSDIR%%/COPYING
@ -339,6 +404,11 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/linux.shtml
%%DOCSDIR%%/install/mailscanner.shtml
%%DOCSDIR%%/install/mcafee.shtml
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.55
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.60
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.55
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.60
%%DOCSDIR%%/install/mcp/index.html
%%DOCSDIR%%/install/mime-tools-patch.txt
%%DOCSDIR%%/install/mime-tools-patch2.txt
%%DOCSDIR%%/install/mime-tools-patch3.txt
@ -353,6 +423,7 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/tnef.shtml
%%DOCSDIR%%/install/zmailer.shtml
%%DOCSDIR%%/introduction.shtml
%%DOCSDIR%%/jobs
%%DOCSDIR%%/mailscanner_trans.gif
%%DOCSDIR%%/man/MailScanner.8
%%DOCSDIR%%/man/MailScanner.8.html
@ -367,15 +438,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/poetry.shtml
%%DOCSDIR%%/poweredby.google.gif
%%DOCSDIR%%/poweredby.transtec.gif
%%DOCSDIR%%/presentations.html
%%DOCSDIR%%/press.html
%%DOCSDIR%%/readme.shtml
%%DOCSDIR%%/reject.html
%%DOCSDIR%%/sobig.html
%%DOCSDIR%%/support.html
%%DOCSDIR%%/transtec.logo.gif
%%DOCSDIR%%/users.shtml
@dirrm share/nls/en_US.US-ASCII
@dirrm share/nls/POSIX
@dirrm %%DOCSDIR%%/man
@dirrm %%DOCSDIR%%/install/mcp
@dirrm %%DOCSDIR%%/install
@dirrm %%DOCSDIR%%/images
@dirrm %%DOCSDIR%%

View File

@ -1,79 +1,190 @@
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
#
# $FreeBSD$
#
PORTNAME= mailscanner
PORTVERSION= 4.22.5
PORTREVISION= 0
PORTVERSION= 4.24.5
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
DISTNAME= MailScanner-4.22-5
DISTNAME= MailScanner-4.24-5
MAINTAINER= j.koopmann@seceidos.de
COMMENT= A powerful virus/spam scanning framework for Sendmail and Exim
COMMENT= Powerful virus/spam scanning framework for Sendmail/Exim
BUILD_DEPENDS= ${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
BUILD_DEPENDS= \
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PERL5= yes
DATADIR= ${PREFIX}/share/MailScanner
DOCSDIR= ${PREFIX}/share/doc/MailScanner
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= MailScanner.8
MAN5= MailScanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 MailScanner.conf.5 mailscanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 \
MailScanner.conf.5 mailscanner.conf.5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif
# PATCH_DIST_STRIP= -p1
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf
USE_PERL5= yes
pre-install:
# Delete WRKSRC/.install_*
${RM} -rf ${WRKSRC}/.install_*
do-build:
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/lib/MailScanner,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/MailScanner
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/etc/MailScanner.conf
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/libexec/MailScanner,g; \
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
${PERL} -pi -e \
's,/bin/bash,'${PREFIX}'/bash,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/update_virus_scanners
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'/bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
${PERL} -pi \
-e 's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
do-install:
( cd ${WRKSRC} ; ${MAKE} ${INSTALL_TARGET} BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
post-install:
.for file in ${MAN5}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man5
.endfor
.for file in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man8
#
# Step 1: Install binaries
#
${INSTALL_SCRIPT} ${WRKSRC}/bin/tnef.linux ${PREFIX}/bin/tnef
#
# Step 2: Install libexec files
#
${MKDIR} ${PREFIX}/libexec/MailScanner
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec ${INSTALL_SCRIPT} \
'{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
${PREFIX}/libexec/MailScanner/update_virus_scanners
#
# Step 3: Install etc files
#
${MKDIR} ${PREFIX}/etc/MailScanner
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules && \
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
#
# Step 4: Install files in share
#
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d -exec \
mkdir ${DATADIR}'/{}' \;
cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DATADIR}'/{}'.sample \;
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
#
# Step 5: Install lib
#
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \;
#
# Step 6: Install Start/Stop scripts
#
${INSTALL_SCRIPT} ${FILESDIR}/mailscanner.sh \
${PREFIX}/etc/rc.d/mailscanner.sh.sample
${INSTALL_SCRIPT} ${FILESDIR}/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
#
# Step 7: Docs & Manpages
#
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec mkdir ${DOCSDIR}'/{}' \; && \
${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DOCSDIR}'/{}' \;
cd ${WRKSRC}/docs/man && \
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
.endif
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
# Upgrading MailScanner.conf file... Please wait
@${WRKSRC}/bin/upgrade_MailScanner_conf ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample > ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} 2> /dev/null
@${WRKSRC}/bin/upgrade_MailScanner_conf \
${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
2> /dev/null
# Diff the files. If the files do not differ, delete the new file
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; ${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; \
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
else \
${ECHO} "Changes in MailScanner.conf found. Please look at ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
.endif
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${SED} -e 's#PREFIX#${PREFIX}#' pkg-message
renew-wrapper: install
# Renew virus wrapper scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
initial-config:
( cd ${WRKSRC} ; ${MAKE} initial-config BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
renew-autoupdate: install
# Renew autoupdate scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
renew-reports: install
# Renew reports
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
-exec ${INSTALL_DATA} '{}' ${DATADIR}'/reports/en/{}' \;
initial-config: renew-wrapper renew-autoupdate renew-reports
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
${PREFIX}/etc/MailScanner
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
.include <bsd.port.post.mk>

View File

@ -1 +1 @@
MD5 (MailScanner-4.22-5.tar.gz) = 1e1cae5094b81306b2a0aad83530506b
MD5 (MailScanner-4.24-5.tar.gz) = f43e0f6b1febf41aaf843400b1b4b3f5

View File

@ -0,0 +1,48 @@
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

View File

@ -0,0 +1,55 @@
#!/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

View File

@ -0,0 +1,117 @@
#!/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

View File

@ -1,153 +0,0 @@
--- ../MailScanner-4.22-5.old/Makefile Thu Jan 1 01:00:00 1970
+++ Makefile Mon Aug 11 12:36:06 2003
@@ -0,0 +1,150 @@
+BINOWN= root
+BINGRP= wheel
+BINMODE= 555
+SHAREOWN= root
+SHAREGRP= wheel
+SHAREMODE= 444
+
+
+INSTALL_SCRIPT= install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_DATA= install -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
+PREFIX= /usr/local
+
+OVERWRITE_FILENAMERULES=no
+OVERWRITE_REPORTS=no
+
+all:
+
+build:
+
+install: install_libexec install_etc install_share install_lib install_startstop install_bin
+
+install_bin:
+.if !exists(.install_bin_DONE)
+ ${INSTALL_SCRIPT} bin/tnef.linux ${PREFIX}/bin/tnef
+ touch .install_bin_DONE
+.endif
+
+install_libexec:
+.if !exists(.install_libexec_DONE)
+ @-mkdir ${PREFIX}/libexec/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/libexec/MailScanner 2>/dev/null
+ ${INSTALL_SCRIPT} bin/MailScanner ${PREFIX}/libexec/MailScanner
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ touch .install_libexec_DONE
+.endif
+
+
+install_etc:
+.if !exists(.install_etc_DONE)
+ @-mkdir ${PREFIX}/etc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner 2>/dev/null
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample
+
+ # depending on the setting OVERWRITE_FILENAMERULES we will copy them or append a .sample (default)
+.if (${OVERWRITE_FILENAMERULES} == "yes")
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+.else
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf.sample
+.endif
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf.sample
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf.sample
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners.conf
+
+ # rules subdir
+ @-mkdir ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ ${INSTALL_DATA} etc/rules/EXAMPLES ${PREFIX}/etc/MailScanner/rules/EXAMPLES
+ ${INSTALL_DATA} etc/rules/README ${PREFIX}/etc/MailScanner/rules/README
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
+
+ touch .install_etc_DONE
+.endif
+
+install_share:
+.if !exists(.install_share_DONE)
+ @-mkdir ${PREFIX}/share/doc 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/MailScanner
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/doc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/doc/MailScanner 2>/dev/null
+
+ # First we create subdirectories if there are any
+ ( cd docs ; find * -type d -exec mkdir ${PREFIX}'/share/doc/MailScanner/{}' \; )
+ ( cd docs ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/doc/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} INSTALL ${PREFIX}/share/doc/MailScanner/INSTALL
+ ${INSTALL_DATA} INSTALL.FreeBSD ${PREFIX}/share/doc/MailScanner/INSTALL.FreeBSD
+ ${INSTALL_DATA} INSTALL.OpenBSD ${PREFIX}/share/doc/MailScanner/INSTALL.OpenBSD
+ ${INSTALL_DATA} README ${PREFIX}/share/doc/MailScanner/README
+
+ # reports subdir
+ # Create report subdirectories and set modes
+ ( cd etc ; find reports -type d -exec mkdir ${PREFIX}'/share/MailScanner/{}' \; ) 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner/reports
+
+ # Copy the individual reports
+ # depending on the setting OVERWRITE_REPORTS we will copy them or append a .sample (default)
+.if (${OVERWRITE_REPORTS} == "yes")
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}' \; )
+.else
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}'.sample \; )
+.endif
+
+ touch .install_share_DONE
+.endif
+
+install_lib:
+.if !exists(.install_lib_DONE)
+ @-mkdir ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-mkdir ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+
+ ${INSTALL_SCRIPT} lib/MailScanner.pm ${PREFIX}/lib/MailScanner/MailScanner.pm
+
+ (cd lib/MailScanner ; find * -type f ! -name "*.orig" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \; )
+
+ touch .install_lib_DONE
+.endif
+
+install_startstop:
+.if !exists(.install_startstop_DONE)
+
+ ${INSTALL_SCRIPT} bin/mailscanner.sh ${PREFIX}/etc/rc.d/mailscanner.sh.sample
+ ${INSTALL_SCRIPT} bin/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
+
+ touch .install_startstop_DONE
+.endif
+
+initial-config: install
+ # copy all files needed for standard config
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners
+
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
+
+ ( cd etc/reports/en ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/reports/en/{}' \; );
+
+

View File

@ -1,17 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/MailScanner Mon Aug 11 12:15:30 2003
+++ bin/MailScanner Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -I/opt/MailScanner/lib
+#!/usr/bin/perl -I/usr/local/lib/MailScanner
#
# MailScanner - SMTP E-Mail Virus Scanner
# Copyright (C) 2002 Julian Field
@@ -125,7 +125,7 @@
# Find the mailscanner.conf file, with a default just in case.
my $ConfFile = $ARGV[0];
-$ConfFile = '/opt/MailScanner/etc/MailScanner.conf' unless $ConfFile;
+$ConfFile = '/usr/local/etc/MailScanner/MailScanner.conf' unless $ConfFile;
# Load the MTA modules we need
my($MTAmod, $MTADSmod);

View File

@ -1,58 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mailscanner.sh Thu Jan 1 01:00:00 1970
+++ bin/mailscanner.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,55 @@
+#!/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

View File

@ -1,120 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mta.sh Thu Jan 1 01:00:00 1970
+++ bin/mta.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,117 @@
+#!/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
+

View File

@ -1,51 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/README.FreeBSD.port Thu Jan 1 01:00:00 1970
+++ docs/README.FreeBSD.port Mon Aug 11 12:36:06 2003
@@ -0,0 +1,48 @@
+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
+

View File

@ -1,122 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.8 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.8 Mon Aug 11 12:36:06 2003
@@ -1,102 +1,17 @@
-.TH "MailScanner" "8" "4.22-4" "Julian Field" "Mail"
-.SH "NAME"
-.LP
-MailScanner \- Virus/Spam Scanner for Sendmail and Exim
-.SH "SYNOPSIS"
-.LP
-\fBMailScanner\fR [\fIconfigfile\fR]
-
-.SH "DESCRIPTION"
-.LP
-\fBMailScanner\fR starts the main MailScanner process. [\fIconfigfile\fR] should point to a valid MailScanner configuration file (see MailScanner.conf(3) for details). The default location for this file depends on the operating system.
-.br
-
-.br
-Linux: /etc/MailScanner/MailScanner.conf
-.br
-
-.br
-FreeBSD: /usr/local/etc/MailScanner/MailScanner.conf
-.br
-
-.br
-Other: /opt/MailScanner/etc/MailScanner.conf
-
-.LP
-The main process then spawns \fIn\fR number of child processes. \fIn\fR is configured in [\fIconfigfile\fR] with the option "Max Children". Each process waits for messages to appear in the "Incoming Queue Dir", processes these messages and then puts them in the "Outgoing Queue Dir". You may need to adjust the configuration of your MTA (or the startup of your MTA) to make it work with MailScanner.
-
-.SH "MTA SETUP"
-.LP
-It is important that your MTA only queues incoming mail and does not deliver it automatically. You need two mail queues (incoming and outgoing). Moreover you should setup two instances of your MTA. One that accepts incoming mail and puts it to an incoming queue and one that sends out mail that resides in the outgoing queue.
-
-.LP
-A common setup for Sendmail could look like this:
-.br
-
-.br
-1. Verify that you already have one queue (e.g. in /var/spool/mqueue).
-.br
-
-.br
-2. Create a second queue (e.g. /var/spool/mqueue.in) and apply the same owner/group/mode.
-.br
-
-.br
-3. Change your sendmail startup from
-.br
-
-.br
- sendmail \-bd \-q15m (or similar)
-.br
-
-.br
- to
-.br
-
-.br
- sendmail \-bd \-OPrivacyOptions=noetrn \-ODeliveryMode=queueonly \-OQueueDirectory=/var/spool/mqueue.in
-.br
- sendmail \-q15m
-
-.LP
-A similar setup for Exim could look like this:
-.br
-
-.br
-1. Create two queues (e.g. /var/spool/exim.in and /var/spool/exim.out) with appropriate owner/group/mode (e.g. owner=mailnull, group=mail, mode=750).
-.br
-
-.br
-2. Create two exim configurations (e.g. /usr/local/etc/exim/configure.in, /usr/local/etc/exim/configure.out).
-.br
-
-.br
-3. Make sure that the incoming exim configuration only queues mails and never delivers mail itself. This can be achieved by using the Exim config option "queue_only = true" and/or a special router definition (Exim 4 syntax):
-.br
-
-.br
- defer_router:
-.br
- driver = manualroute
-.br
- self = defer
-.br
- transport = remote_smtp
-.br
- route_list = * 127.0.0.1 byname
-.br
- verify = false
-.br
-
-.br
-4. Start two exim instances:
-.br
-
-.br
- exim \-C /usr/local/etc/exim/configure.in
-.br
- exim \-C /usr/local/etc/exim/configure.out
-
-.SH "SEE ALSO"
-.LP
-MailScanner.conf(3)
+<!-- Creator : groff version 1.19 -->
+<!-- CreationDate: Mon Aug 11 12:28:56 2003 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta name="generator" content="groff -Thtml, see www.gnu.org">
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<meta name="Content-Style" content="text/css">
+<title></title>
+</head>
+<body>
+
+<hr>
+<hr>
+</body>
+</html>

View File

@ -1,187 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.conf.5 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.conf.5 Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-.TH "MailScanner.conf" "5" "4.22-4" "Julian Field" "Mail"
+.TH "MailScanner.conf" "5" "4.23" "Julian Field" "Mail"
.SH "NAME"
.LP
MailScanner.conf \- Main configuration for MailScanner
@@ -279,9 +279,15 @@
.br
.br
-Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. Example:
+Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. This option allows for multiple strings as well. In this case, the strings should be put in double quotes (") and each string separated with commas. Examples:
.br
Allowed Sophos Error Messages = corrupt format not supported
+.br
+Allowed Sophos Error Messages = "corrupt", "format not supported"
+.br
+
+.br
+The first version will match "corrupt format not supported" only. The second version will match "corrupt" and "format not supported".
.TP
\fBSophos IDE Dir\fR
@@ -358,11 +364,13 @@
.br
.br
-Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 2 special keywords
+Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 3 special keywords
.br
HTML\-IFrame: inserting this will stop senders being warned about HTML Iframe tags, when they are not allowed.
.br
HTML\-Codebase: inserting this will stop senders being warned about HTML Object Codebase tags, when they are not allowed.
+.br
+All\-Viruses: inserting this will stop senders being warned about any virus, while still allowing you to warn senders about HTML\-based attacks.
.TP
@@ -539,7 +547,31 @@
.br
.br
-When an attachment is deleted from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+When an attachment is deleted and stored from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBDeleted Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/deleted.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/deleted.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.content.message.txt
+.br
+
+.br
+This report is sent when a message is deleted because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBStored Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/stored.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/stored.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.content.message.txt
+.br
+
+.br
+This report is sent when a message is stored because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
.TP
\fBDisinfected Report\fR
@@ -600,7 +632,8 @@
.br
When an attachment is trapped by the filename rules, this message is sent back to the sender.
-:
+
+
.TP
\fBSender Virus Report\fR
Default: /opt/MailScanner/etc/reports/en/sender.virus.report.txt
@@ -613,6 +646,7 @@
.br
When an attachment is removed because of a virus, this message is sent back to the sender.
+
.TP
\fBHide Incoming Work Dir\fR
Default: yes
@@ -623,11 +657,13 @@
.TP
\fBInclude Scanner Name in Reports\fR
-Default: no
+Default: yes
.br
.br
-Include the name of the virus scanner in each of the scanner reports. Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
+Include the name of the virus scanner in each of the scanner reports. This also includes the translation of "MailScanner" in each of the report lines resulting from one of MailScanner's own checks such as filename, filetype or dangerous HTML content. To change the name "MailScanner", look in reports/...../languages.conf.
+.br
+Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
.SH "Changes to message headers"
.TP
\fBMail Header\fR
@@ -839,17 +875,34 @@
.br
.br
-If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Virus Subject Text" text inserted at the start.
+If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Filename Subject Text" text inserted at the start.
.TP
\fBFilename Subject Text\fR
-Default: yes
+Default: {Virus?}
.br
.br
This is the text inserted at the start of the "Subject:" line if the "Filename Modify Subject" option is set.
.TP
+\fBContent Modify Subject\fR
+Default: yes
+.br
+
+.br
+If this is set, then the "Subject:" line of a message that triggered a content check without anything else wrong in the message will have the "Content Subject Text" text inserted at the start.
+
+.TP
+\fBContent Subject Text\fR
+Default: {Filename?}
+.br
+
+.br
+This is the text inserted at the start of the "Subject:" line if the "Content Modify Subject" option is set.
+
+
+.TP
\fBSpam Modify Subject\fR
Default: yes
.br
@@ -1081,6 +1134,14 @@
.br
This option would normally be a ruleset. Any messages for which the ruleset result is "yes" will always be marked as spam. This is used to create a spam "blacklist" of addresses of known spammers.
+.TP
+\fBDefinite Spam Is High Scoring\fR
+Default: no
+.br
+
+.br
+Setting this to yes means that spam found in the blacklist is treated as "High Scoring Spam" in the "Spam Actions" section below. Setting it to no means that it will be treated as "normal" spam. This can also be the filename of a ruleset.
+
.SH "SpamAssassin"
.TP
\fBUse SpamAssassin\fR
@@ -1411,6 +1472,27 @@
.br
Are you using Exim with split spool directories? If you don't understand this, the answer is probably "no". Refer to the Exim documentation for more information about split spool directories.
+
+.TP
+\fBUse Default Rules With Multiple Recipients\fR
+Default: no
+.br
+
+.br
+When trying to work out the value of configuration parameters which are using a ruleset, this controls the behaviour when a rule is checking the "To:" addresses. If this option is set to "yes", then the following happens when checking the ruleset:
+.br
+
+.br
+a) 1 recipient. Same behaviour as normal.
+.br
+b) Several recipients, but all in the same domain (domain.com for example). The rules are checked for one that matches the string "*@domain.com".
+.br
+c) Several recipients, not all in the same domain. The rules are checked for one that matches the string "*@*".
+.br
+
+.br
+If this option is set to "no", then some rules will use the result they get from the first matching rule for any of the recipients of a message, so the exact value cannot be predicted for messages with more than 1 recipient. This value *cannot* be the filename of a ruleset.
+
.SH "RULESETS"
.LP
Ruleset files should all be put in /opt/MailScanner/etc/rules (FreeBSD: /usr/local/etc/MailScanner/rules) and their filename should end in ".rules" wherever possible.

File diff suppressed because it is too large Load Diff

View File

@ -1,76 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/MailScanner.conf Mon Aug 11 12:15:32 2003
+++ etc/MailScanner.conf Mon Aug 11 12:36:06 2003
@@ -31,13 +31,13 @@
#
# Set the directory containing all the reports in all the languages
-%report-dir% = /opt/MailScanner/etc/reports/en
+%report-dir% = /usr/local/share/MailScanner/reports/en
# Configuration directory containing this file
-%etc-dir% = /opt/MailScanner/etc
+%etc-dir% = /usr/local/etc/MailScanner
# Rulesets directory containing your ".rules" files
-%rules-dir% = /opt/MailScanner/etc/rules
+%rules-dir% = /usr/local/etc/MailScanner/rules
#
# System settings
@@ -82,7 +82,7 @@
# Example: /var/spool/mqueue.in/*
# 3. The name of a file containing a list of directory names,
# which can in turn contain wildcards.
-# Example: /opt/MailScanner/etc/mqueue.in.list.conf
+# Example: /usr/local/etc/MailScanner/mqueue.in.list.conf
#
Incoming Queue Dir = /var/spool/mqueue.in
@@ -98,7 +98,7 @@
Quarantine Dir = /var/spool/MailScanner/quarantine
# Set where to store the process id number so you can stop MailScanner
-PID file = /opt/MailScanner/var/MailScanner.pid
+PID file = /var/run/MailScanner.pid
# To avoid resource leaks, re-start periodically
Restart Every = 14400
@@ -111,7 +111,7 @@
# Set how to invoke MTA when sending messages MailScanner has created
# (e.g. to sender/recipient saying "found a virus in your message")
# This can also be the filename of a ruleset.
-Sendmail = /usr/lib/sendmail
+Sendmail = /usr/sbin/sendmail
# Sendmail2 is provided for Exim users.
# It is the command used to attempt delivery of outgoing cleaned/disinfected
@@ -119,9 +119,9 @@
# This is not usually required for sendmail.
# This can also be the filename of a ruleset.
#For Exim users: Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_send.conf
-#For sendmail users: Sendmail2 = /usr/lib/sendmail
+#For sendmail users: Sendmail2 = /usr/sbin/sendmail
#Sendmail2 = /usr/sbin/sendmail -C /etc/exim/exim_send.conf
-Sendmail2 = /usr/lib/sendmail
+Sendmail2 = /usr/sbin/sendmail
#
# Processing Incoming Mail
@@ -165,7 +165,7 @@
# may be. It helps protect against Denial Of Service attacks in TNEF files.
#TNEF Expander = internal
# This can also be the filename of a ruleset.
-TNEF Expander = /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEF Expander = /usr/local/bin/tnef --maxsize=100000000
# The maximum length of time the TNEF Expander is allowed to run for 1 message.
# (in seconds)
@@ -1028,7 +1028,7 @@
# /etc/mail/spamassassin, and maybe others.
# If this is set then it adds to the list of places that are searched;
# otherwise it has no effect.
-#SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
+#SpamAssassin Local Rules Dir = /usr/local/etc/MailScanner/mail/spamassassin
SpamAssassin Local Rules Dir =
# The default rules are searched for here, and in prefix/share/spamassassin,

View File

@ -1,43 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/virus.scanners.conf Mon Aug 11 12:15:32 2003
+++ etc/virus.scanners.conf Mon Aug 11 12:36:06 2003
@@ -1,21 +1,21 @@
# This is a list of the names of the virus scanning engines, along with the
# filename of the command or script to run to invoke each one.
-sophos /opt/MailScanner/lib/sophos-wrapper
-f-prot /opt/MailScanner/lib/f-prot-wrapper
-mcafee /opt/MailScanner/lib/mcafee-wrapper
-rav /opt/MailScanner/lib/rav-wrapper
-kaspersky /opt/MailScanner/lib/kaspersky-wrapper
-kavdaemonclient /opt/MailScanner/lib/kavdaemonclient-wrapper
-panda /opt/MailScanner/lib/panda-wrapper
-f-secure /opt/MailScanner/lib/f-secure-wrapper
-clamav /opt/MailScanner/lib/clamav-wrapper
-trend /opt/MailScanner/lib/trend-wrapper
-antivir /opt/MailScanner/lib/antivir-wrapper
-inoculate /opt/MailScanner/lib/inoculate-wrapper
-inoculan /opt/MailScanner/lib/inoculan-wrapper
-command /opt/MailScanner/lib/command-wrapper
-nod32 /opt/MailScanner/lib/nod32-wrapper
-nod32-1.99 /opt/MailScanner/lib/nod32-wrapper
-bitdefender /opt/MailScanner/lib/bitdefender-wrapper
-sophossavi /bin/false
-none /bin/false
+sophos /usr/local/libexec/MailScanner/sophos-wrapper
+f-prot /usr/local/libexec/MailScanner/f-prot-wrapper
+mcafee /usr/local/libexec/MailScanner/mcafee-wrapper
+rav /usr/local/libexec/MailScanner/rav-wrapper
+kaspersky /usr/local/libexec/MailScanner/kaspersky-wrapper
+kavdaemonclient /usr/local/libexec/MailScanner/kavdaemonclient-wrapper
+panda /usr/local/libexec/MailScanner/panda-wrapper
+f-secure /usr/local/libexec/MailScanner/f-secure-wrapper
+clamav /usr/local/libexec/MailScanner/clamav-wrapper
+trend /usr/local/libexec/MailScanner/trend-wrapper
+antivir /usr/local/libexec/MailScanner/antivir-wrapper
+inoculate /usr/local/libexec/MailScanner/inoculate-wrapper
+inoculan /usr/local/libexec/MailScanner/inoculan-wrapper
+command /usr/local/libexec/MailScanner/command-wrapper
+nod32 /usr/local/libexec/MailScanner/nod32-wrapper
+nod32-1.99 /usr/local/libexec/MailScanner/nod32-wrapper
+bitdefender /usr/local/libexec/MailScanner/bitdefender-wrapper
+sophossavi /usr/bin/false
+none /usr/bin/false

View File

@ -1,72 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:36:06 2003
@@ -154,9 +154,9 @@
# Check the first word of these for file existence
[Simple,File]
pidfile /var/run/MailScanner.pid
-spamassassinprefsfile /opt/MailScanner/etc/spam.assassin.prefs.conf
-SpamListDefinitions /opt/MailScanner/etc/spam.lists.conf
-VirusScannerDefinitions /opt/MailScanner/etc/virus.scanners.conf
+spamassassinprefsfile /usr/local/etc/MailScanner/spam.assassin.prefs.conf
+SpamListDefinitions /usr/local/etc/MailScanner/spam.lists.conf
+VirusScannerDefinitions /usr/local/etc/MailScanner/virus.scanners.conf
# Check these to ensure they are just numbers
[Simple,Number]
@@ -197,7 +197,7 @@
SpamAssassinDefaultRulesDir
SpamAssassinInstallPrefix
SpamStarsCharacter s
-TNEFExpander /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEFExpander /usr/local/bin/tnef --maxsize=100000000
VirusScanners none # Space-separated list
#
@@ -246,23 +246,23 @@
WarnSenders 1 no 0 yes 1
[First,File]
-DeletedFilenameMessage /opt/MailScanner/etc/reports/en/deleted.filename.message.txt
-DeletedVirusMessage /opt/MailScanner/etc/reports/en/deleted.virus.message.txt
-DisinfectedReportText /opt/MailScanner/etc/reports/en/disinfected.report.txt
-inlinehtmlsig /opt/MailScanner/etc/reports/en/inline.sig.html
-inlinehtmlwarning /opt/MailScanner/etc/reports/en/inline.warning.html
+DeletedFilenameMessage /usr/local/share/MailScanner/reports/en/deleted.filename.message.txt
+DeletedVirusMessage /usr/local/share/MailScanner/reports/en/deleted.virus.message.txt
+DisinfectedReportText /usr/local/share/MailScanner/reports/en/disinfected.report.txt
+inlinehtmlsig /usr/local/share/MailScanner/reports/en/inline.sig.html
+inlinehtmlwarning /usr/local/share/MailScanner/reports/en/inline.warning.html
inlinespamwarning /etc/MailScanner/reports/en/inline.spam.warning.txt
-inlinetextsig /opt/MailScanner/etc/reports/en/inline.sig.txt
-inlinetextwarning /opt/MailScanner/etc/reports/en/inline.warning.txt
+inlinetextsig /usr/local/share/MailScanner/reports/en/inline.sig.txt
+inlinetextwarning /usr/local/share/MailScanner/reports/en/inline.warning.txt
languagestrings
-sendererrorreport /opt/MailScanner/etc/reports/en/sender.error.report.txt
-senderfilenamereport /opt/MailScanner/etc/reports/en/sender.filename.report.txt
-SenderRBLSpamReport /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt
-SenderSASpamReport /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt
-SenderBothSpamReport /opt/MailScanner/etc/reports/en/sender.spam.report.txt
-sendervirusreport /opt/MailScanner/etc/reports/en/sender.virus.report.txt
-StoredFilenameMessage /opt/MailScanner/etc/reports/en/stored.filename.message.txt
-StoredVirusMessage /opt/MailScanner/etc/reports/en/stored.virus.message.txt
+sendererrorreport /usr/local/share/MailScanner/reports/en/sender.error.report.txt
+senderfilenamereport /usr/local/share/MailScanner/reports/en/sender.filename.report.txt
+SenderRBLSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt
+SenderSASpamReport /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt
+SenderBothSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.report.txt
+sendervirusreport /usr/local/share/MailScanner/reports/en/sender.virus.report.txt
+StoredFilenameMessage /usr/local/share/MailScanner/reports/en/stored.filename.message.txt
+StoredVirusMessage /usr/local/share/MailScanner/reports/en/stored.virus.message.txt
[First,Command]
Sendmail /usr/sbin/sendmail
@@ -317,7 +317,7 @@
UseSpamAssassin 0 no 0 yes 1
[All,File]
-#FilenameRules /opt/MailScanner/etc/filename.rules.conf
+#FilenameRules /usr/local/etc/MailScanner/filename.rules.conf
FilenameRules
FiletypeRules

View File

@ -1,10 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/SystemDefs.pm Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/SystemDefs.pm Mon Aug 11 12:36:06 2003
@@ -36,6 +36,6 @@
$global::rm = '/bin/rm';
$global::cp = '/bin/cp';
$global::cat = '/bin/cat';
-$global::sed = '/bin/sed';
+$global::sed = '/usr/bin/sed';
1;

View File

@ -5,7 +5,7 @@
/ ___ \| | | | | |___| |\ | | | | | |_| | |\ |
/_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_|
See PREFIX/share/doc/MailScanner/README.FreeBSD.port,
See %%PREFIX%%/share/doc/MailScanner/README.FreeBSD.port,
http://www.mailscanner.info, the man pages MailScanner and
MailScanner.conf for further instructions.
@ -21,4 +21,14 @@
.sample files instead of real .conf files and report
templates.
If you are upgrading your port you might consider
running
make renew-wrapper
make renew-autoupdate
make renew-reports
to update your virus-wrappers, autoupdates, reports and
languages.conf
*************************************************************************

View File

@ -1,12 +1,14 @@
@comment $FreeBSD$
bin/tnef
etc/MailScanner/MailScanner.conf.sample
etc/MailScanner/filename.rules.conf.sample
etc/MailScanner/filetype.rules.conf.sample
etc/MailScanner/rules/EXAMPLES
etc/MailScanner/rules/README
etc/MailScanner/rules/spam.whitelist.rules.sample
etc/MailScanner/spam.assassin.prefs.conf.sample
etc/MailScanner/spam.lists.conf.sample
etc/MailScanner/virus.scanners.conf
etc/MailScanner/virus.scanners.conf.sample
etc/rc.d/mailscanner.sh.sample
etc/rc.d/mta.sh.sample
lib/MailScanner/MailScanner.pm
@ -17,6 +19,8 @@ lib/MailScanner/MailScanner/Exim.pm
lib/MailScanner/MailScanner/EximDiskStore.pm
lib/MailScanner/MailScanner/Lock.pm
lib/MailScanner/MailScanner/Log.pm
lib/MailScanner/MailScanner/MCP.pm
lib/MailScanner/MailScanner/MCPMessage.pm
lib/MailScanner/MailScanner/Mail.pm
lib/MailScanner/MailScanner/Message.pm
lib/MailScanner/MailScanner/MessageBatch.pm
@ -45,8 +49,11 @@ libexec/MailScanner/bitdefender-wrapper.sample
libexec/MailScanner/clamav-autoupdate.sample
libexec/MailScanner/clamav-wrapper.sample
libexec/MailScanner/command-wrapper.sample
libexec/MailScanner/etrust-autoupdate.sample
libexec/MailScanner/etrust-wrapper.sample
libexec/MailScanner/f-prot-autoupdate.sample
libexec/MailScanner/f-prot-wrapper.sample
libexec/MailScanner/f-secure-autoupdate.sample
libexec/MailScanner/f-secure-wrapper.sample
libexec/MailScanner/inoculan-wrapper.sample
libexec/MailScanner/inoculate-wrapper.sample
@ -62,7 +69,10 @@ libexec/MailScanner/rav-autoupdate.sample
libexec/MailScanner/rav-wrapper.sample
libexec/MailScanner/sophos-autoupdate.sample
libexec/MailScanner/sophos-wrapper.sample
libexec/MailScanner/trend-autoupdate.sample
libexec/MailScanner/trend-wrapper.sample
libexec/MailScanner/update_virus_scanners
%%DATADIR%%/reports/cy+en/deleted.content.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cy+en/disinfected.report.txt.sample
@ -72,14 +82,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cy+en/inline.warning.html.sample
%%DATADIR%%/reports/cy+en/inline.warning.txt.sample
%%DATADIR%%/reports/cy+en/languages.conf.sample
%%DATADIR%%/reports/cy+en/sender.content.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.error.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.filename.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.virus.report.txt.sample
%%DATADIR%%/reports/cy+en/stored.content.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.virus.message.txt.sample
%%DATADIR%%/reports/cz/deleted.content.message.txt.sample
%%DATADIR%%/reports/cz/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cz/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cz/disinfected.report.txt.sample
@ -89,15 +103,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cz/inline.warning.html.sample
%%DATADIR%%/reports/cz/inline.warning.txt.sample
%%DATADIR%%/reports/cz/languages.conf.sample
%%DATADIR%%/reports/cz/sender.content.report.txt.sample
%%DATADIR%%/reports/cz/sender.error.report.txt.sample
%%DATADIR%%/reports/cz/sender.filename.report.txt.sample
%%DATADIR%%/reports/cz/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cz/sender.virus.report.txt.sample
%%DATADIR%%/reports/cz/stored.content.message.txt.sample
%%DATADIR%%/reports/cz/stored.filename.message.txt.sample
%%DATADIR%%/reports/cz/stored.virus.message.txt.sample
%%DATADIR%%/reports/de/README.1ST.sample
%%DATADIR%%/reports/de/deleted.content.message.txt.sample
%%DATADIR%%/reports/de/deleted.filename.message.txt.sample
%%DATADIR%%/reports/de/deleted.virus.message.txt.sample
%%DATADIR%%/reports/de/disinfected.report.txt.sample
@ -107,14 +125,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/de/inline.warning.html.sample
%%DATADIR%%/reports/de/inline.warning.txt.sample
%%DATADIR%%/reports/de/languages.conf.sample
%%DATADIR%%/reports/de/sender.content.report.txt.sample
%%DATADIR%%/reports/de/sender.error.report.txt.sample
%%DATADIR%%/reports/de/sender.filename.report.txt.sample
%%DATADIR%%/reports/de/sender.mcp.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/de/sender.virus.report.txt.sample
%%DATADIR%%/reports/de/stored.content.message.txt.sample
%%DATADIR%%/reports/de/stored.filename.message.txt.sample
%%DATADIR%%/reports/de/stored.virus.message.txt.sample
%%DATADIR%%/reports/dk/deleted.content.message.txt.sample
%%DATADIR%%/reports/dk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/dk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/dk/disinfected.report.txt.sample
@ -124,14 +146,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/dk/inline.warning.html.sample
%%DATADIR%%/reports/dk/inline.warning.txt.sample
%%DATADIR%%/reports/dk/languages.conf.sample
%%DATADIR%%/reports/dk/sender.content.report.txt.sample
%%DATADIR%%/reports/dk/sender.error.report.txt.sample
%%DATADIR%%/reports/dk/sender.filename.report.txt.sample
%%DATADIR%%/reports/dk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/dk/sender.virus.report.txt.sample
%%DATADIR%%/reports/dk/stored.content.message.txt.sample
%%DATADIR%%/reports/dk/stored.filename.message.txt.sample
%%DATADIR%%/reports/dk/stored.virus.message.txt.sample
%%DATADIR%%/reports/en/deleted.content.message.txt.sample
%%DATADIR%%/reports/en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/en/disinfected.report.txt.sample
@ -141,14 +167,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/en/inline.warning.html.sample
%%DATADIR%%/reports/en/inline.warning.txt.sample
%%DATADIR%%/reports/en/languages.conf.sample
%%DATADIR%%/reports/en/sender.content.report.txt.sample
%%DATADIR%%/reports/en/sender.error.report.txt.sample
%%DATADIR%%/reports/en/sender.filename.report.txt.sample
%%DATADIR%%/reports/en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/en/sender.virus.report.txt.sample
%%DATADIR%%/reports/en/stored.content.message.txt.sample
%%DATADIR%%/reports/en/stored.filename.message.txt.sample
%%DATADIR%%/reports/en/stored.virus.message.txt.sample
%%DATADIR%%/reports/es/deleted.content.message.txt.sample
%%DATADIR%%/reports/es/deleted.filename.message.txt.sample
%%DATADIR%%/reports/es/deleted.virus.message.txt.sample
%%DATADIR%%/reports/es/disinfected.report.txt.sample
@ -158,14 +188,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/es/inline.warning.html.sample
%%DATADIR%%/reports/es/inline.warning.txt.sample
%%DATADIR%%/reports/es/languages.conf.sample
%%DATADIR%%/reports/es/sender.content.report.txt.sample
%%DATADIR%%/reports/es/sender.error.report.txt.sample
%%DATADIR%%/reports/es/sender.filename.report.txt.sample
%%DATADIR%%/reports/es/sender.mcp.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/es/sender.virus.report.txt.sample
%%DATADIR%%/reports/es/stored.content.message.txt.sample
%%DATADIR%%/reports/es/stored.filename.message.txt.sample
%%DATADIR%%/reports/es/stored.virus.message.txt.sample
%%DATADIR%%/reports/fr/deleted.content.message.txt.sample
%%DATADIR%%/reports/fr/deleted.filename.message.txt.sample
%%DATADIR%%/reports/fr/deleted.virus.message.txt.sample
%%DATADIR%%/reports/fr/disinfected.report.txt.sample
@ -175,14 +209,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/fr/inline.warning.html.sample
%%DATADIR%%/reports/fr/inline.warning.txt.sample
%%DATADIR%%/reports/fr/languages.conf.sample
%%DATADIR%%/reports/fr/sender.content.report.txt.sample
%%DATADIR%%/reports/fr/sender.error.report.txt.sample
%%DATADIR%%/reports/fr/sender.filename.report.txt.sample
%%DATADIR%%/reports/fr/sender.mcp.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/fr/sender.virus.report.txt.sample
%%DATADIR%%/reports/fr/stored.content.message.txt.sample
%%DATADIR%%/reports/fr/stored.filename.message.txt.sample
%%DATADIR%%/reports/fr/stored.virus.message.txt.sample
%%DATADIR%%/reports/hu/deleted.content.message.txt.sample
%%DATADIR%%/reports/hu/deleted.filename.message.txt.sample
%%DATADIR%%/reports/hu/deleted.virus.message.txt.sample
%%DATADIR%%/reports/hu/disinfected.report.txt.sample
@ -192,14 +230,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/hu/inline.warning.html.sample
%%DATADIR%%/reports/hu/inline.warning.txt.sample
%%DATADIR%%/reports/hu/languages.conf.sample
%%DATADIR%%/reports/hu/sender.content.report.txt.sample
%%DATADIR%%/reports/hu/sender.error.report.txt.sample
%%DATADIR%%/reports/hu/sender.filename.report.txt.sample
%%DATADIR%%/reports/hu/sender.mcp.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/hu/sender.virus.report.txt.sample
%%DATADIR%%/reports/hu/stored.content.message.txt.sample
%%DATADIR%%/reports/hu/stored.filename.message.txt.sample
%%DATADIR%%/reports/hu/stored.virus.message.txt.sample
%%DATADIR%%/reports/it/deleted.content.message.txt.sample
%%DATADIR%%/reports/it/deleted.filename.message.txt.sample
%%DATADIR%%/reports/it/deleted.virus.message.txt.sample
%%DATADIR%%/reports/it/disinfected.report.txt.sample
@ -209,14 +251,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/it/inline.warning.html.sample
%%DATADIR%%/reports/it/inline.warning.txt.sample
%%DATADIR%%/reports/it/languages.conf.sample
%%DATADIR%%/reports/it/sender.content.report.txt.sample
%%DATADIR%%/reports/it/sender.error.report.txt.sample
%%DATADIR%%/reports/it/sender.filename.report.txt.sample
%%DATADIR%%/reports/it/sender.mcp.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/it/sender.virus.report.txt.sample
%%DATADIR%%/reports/it/stored.content.message.txt.sample
%%DATADIR%%/reports/it/stored.filename.message.txt.sample
%%DATADIR%%/reports/it/stored.virus.message.txt.sample
%%DATADIR%%/reports/nl/deleted.content.message.txt.sample
%%DATADIR%%/reports/nl/deleted.filename.message.txt.sample
%%DATADIR%%/reports/nl/deleted.virus.message.txt.sample
%%DATADIR%%/reports/nl/disinfected.report.txt.sample
@ -226,14 +272,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/nl/inline.warning.html.sample
%%DATADIR%%/reports/nl/inline.warning.txt.sample
%%DATADIR%%/reports/nl/languages.conf.sample
%%DATADIR%%/reports/nl/sender.content.report.txt.sample
%%DATADIR%%/reports/nl/sender.error.report.txt.sample
%%DATADIR%%/reports/nl/sender.filename.report.txt.sample
%%DATADIR%%/reports/nl/sender.mcp.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/nl/sender.virus.report.txt.sample
%%DATADIR%%/reports/nl/stored.content.message.txt.sample
%%DATADIR%%/reports/nl/stored.filename.message.txt.sample
%%DATADIR%%/reports/nl/stored.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.content.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/disinfected.report.txt.sample
@ -243,14 +293,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/pt_br/inline.warning.html.sample
%%DATADIR%%/reports/pt_br/inline.warning.txt.sample
%%DATADIR%%/reports/pt_br/languages.conf.sample
%%DATADIR%%/reports/pt_br/sender.content.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.error.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.filename.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.mcp.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.virus.report.txt.sample
%%DATADIR%%/reports/pt_br/stored.content.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.virus.message.txt.sample
%%DATADIR%%/reports/ro/deleted.content.message.txt.sample
%%DATADIR%%/reports/ro/deleted.filename.message.txt.sample
%%DATADIR%%/reports/ro/deleted.virus.message.txt.sample
%%DATADIR%%/reports/ro/disinfected.report.txt.sample
@ -260,15 +314,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/ro/inline.warning.html.sample
%%DATADIR%%/reports/ro/inline.warning.txt.sample
%%DATADIR%%/reports/ro/languages.conf.sample
%%DATADIR%%/reports/ro/sender.content.report.txt.sample
%%DATADIR%%/reports/ro/sender.error.report.txt.sample
%%DATADIR%%/reports/ro/sender.filename.report.txt.sample
%%DATADIR%%/reports/ro/sender.mcp.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/ro/sender.virus.report.txt.sample
%%DATADIR%%/reports/ro/stored.content.message.txt.sample
%%DATADIR%%/reports/ro/stored.filename.message.txt.sample
%%DATADIR%%/reports/ro/stored.virus.message.txt.sample
%%DATADIR%%/reports/se/README.sample
%%DATADIR%%/reports/se/deleted.content.message.txt.sample
%%DATADIR%%/reports/se/deleted.filename.message.txt.sample
%%DATADIR%%/reports/se/deleted.virus.message.txt.sample
%%DATADIR%%/reports/se/disinfected.report.txt.sample
@ -278,14 +336,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/se/inline.warning.html.sample
%%DATADIR%%/reports/se/inline.warning.txt.sample
%%DATADIR%%/reports/se/languages.conf.sample
%%DATADIR%%/reports/se/sender.content.report.txt.sample
%%DATADIR%%/reports/se/sender.error.report.txt.sample
%%DATADIR%%/reports/se/sender.filename.report.txt.sample
%%DATADIR%%/reports/se/sender.mcp.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/se/sender.virus.report.txt.sample
%%DATADIR%%/reports/se/stored.content.message.txt.sample
%%DATADIR%%/reports/se/stored.filename.message.txt.sample
%%DATADIR%%/reports/se/stored.virus.message.txt.sample
%%DATADIR%%/reports/sk/deleted.content.message.txt.sample
%%DATADIR%%/reports/sk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/sk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/sk/disinfected.report.txt.sample
@ -295,12 +357,15 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/sk/inline.warning.html.sample
%%DATADIR%%/reports/sk/inline.warning.txt.sample
%%DATADIR%%/reports/sk/languages.conf.sample
%%DATADIR%%/reports/sk/sender.content.report.txt.sample
%%DATADIR%%/reports/sk/sender.error.report.txt.sample
%%DATADIR%%/reports/sk/sender.filename.report.txt.sample
%%DATADIR%%/reports/sk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/sk/sender.virus.report.txt.sample
%%DATADIR%%/reports/sk/stored.content.message.txt.sample
%%DATADIR%%/reports/sk/stored.filename.message.txt.sample
%%DATADIR%%/reports/sk/stored.virus.message.txt.sample
%%DOCSDIR%%/COPYING
@ -339,6 +404,11 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/linux.shtml
%%DOCSDIR%%/install/mailscanner.shtml
%%DOCSDIR%%/install/mcafee.shtml
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.55
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.60
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.55
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.60
%%DOCSDIR%%/install/mcp/index.html
%%DOCSDIR%%/install/mime-tools-patch.txt
%%DOCSDIR%%/install/mime-tools-patch2.txt
%%DOCSDIR%%/install/mime-tools-patch3.txt
@ -353,6 +423,7 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/tnef.shtml
%%DOCSDIR%%/install/zmailer.shtml
%%DOCSDIR%%/introduction.shtml
%%DOCSDIR%%/jobs
%%DOCSDIR%%/mailscanner_trans.gif
%%DOCSDIR%%/man/MailScanner.8
%%DOCSDIR%%/man/MailScanner.8.html
@ -367,15 +438,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/poetry.shtml
%%DOCSDIR%%/poweredby.google.gif
%%DOCSDIR%%/poweredby.transtec.gif
%%DOCSDIR%%/presentations.html
%%DOCSDIR%%/press.html
%%DOCSDIR%%/readme.shtml
%%DOCSDIR%%/reject.html
%%DOCSDIR%%/sobig.html
%%DOCSDIR%%/support.html
%%DOCSDIR%%/transtec.logo.gif
%%DOCSDIR%%/users.shtml
@dirrm share/nls/en_US.US-ASCII
@dirrm share/nls/POSIX
@dirrm %%DOCSDIR%%/man
@dirrm %%DOCSDIR%%/install/mcp
@dirrm %%DOCSDIR%%/install
@dirrm %%DOCSDIR%%/images
@dirrm %%DOCSDIR%%

View File

@ -1,79 +1,190 @@
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
#
# $FreeBSD$
#
PORTNAME= mailscanner
PORTVERSION= 4.22.5
PORTREVISION= 0
PORTVERSION= 4.24.5
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
DISTNAME= MailScanner-4.22-5
DISTNAME= MailScanner-4.24-5
MAINTAINER= j.koopmann@seceidos.de
COMMENT= A powerful virus/spam scanning framework for Sendmail and Exim
COMMENT= Powerful virus/spam scanning framework for Sendmail/Exim
BUILD_DEPENDS= ${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
BUILD_DEPENDS= \
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PERL5= yes
DATADIR= ${PREFIX}/share/MailScanner
DOCSDIR= ${PREFIX}/share/doc/MailScanner
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= MailScanner.8
MAN5= MailScanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 MailScanner.conf.5 mailscanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 \
MailScanner.conf.5 mailscanner.conf.5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif
# PATCH_DIST_STRIP= -p1
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf
USE_PERL5= yes
pre-install:
# Delete WRKSRC/.install_*
${RM} -rf ${WRKSRC}/.install_*
do-build:
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/lib/MailScanner,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/MailScanner
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/etc/MailScanner.conf
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/libexec/MailScanner,g; \
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
${PERL} -pi -e \
's,/bin/bash,'${PREFIX}'/bash,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/update_virus_scanners
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'/bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
${PERL} -pi \
-e 's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
do-install:
( cd ${WRKSRC} ; ${MAKE} ${INSTALL_TARGET} BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
post-install:
.for file in ${MAN5}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man5
.endfor
.for file in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man8
#
# Step 1: Install binaries
#
${INSTALL_SCRIPT} ${WRKSRC}/bin/tnef.linux ${PREFIX}/bin/tnef
#
# Step 2: Install libexec files
#
${MKDIR} ${PREFIX}/libexec/MailScanner
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec ${INSTALL_SCRIPT} \
'{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
${PREFIX}/libexec/MailScanner/update_virus_scanners
#
# Step 3: Install etc files
#
${MKDIR} ${PREFIX}/etc/MailScanner
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules && \
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
#
# Step 4: Install files in share
#
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d -exec \
mkdir ${DATADIR}'/{}' \;
cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DATADIR}'/{}'.sample \;
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
#
# Step 5: Install lib
#
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \;
#
# Step 6: Install Start/Stop scripts
#
${INSTALL_SCRIPT} ${FILESDIR}/mailscanner.sh \
${PREFIX}/etc/rc.d/mailscanner.sh.sample
${INSTALL_SCRIPT} ${FILESDIR}/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
#
# Step 7: Docs & Manpages
#
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec mkdir ${DOCSDIR}'/{}' \; && \
${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DOCSDIR}'/{}' \;
cd ${WRKSRC}/docs/man && \
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
.endif
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
# Upgrading MailScanner.conf file... Please wait
@${WRKSRC}/bin/upgrade_MailScanner_conf ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample > ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} 2> /dev/null
@${WRKSRC}/bin/upgrade_MailScanner_conf \
${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
2> /dev/null
# Diff the files. If the files do not differ, delete the new file
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; ${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; \
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
else \
${ECHO} "Changes in MailScanner.conf found. Please look at ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
.endif
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${SED} -e 's#PREFIX#${PREFIX}#' pkg-message
renew-wrapper: install
# Renew virus wrapper scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
initial-config:
( cd ${WRKSRC} ; ${MAKE} initial-config BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
renew-autoupdate: install
# Renew autoupdate scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
renew-reports: install
# Renew reports
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
-exec ${INSTALL_DATA} '{}' ${DATADIR}'/reports/en/{}' \;
initial-config: renew-wrapper renew-autoupdate renew-reports
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
${PREFIX}/etc/MailScanner
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
.include <bsd.port.post.mk>

View File

@ -1 +1 @@
MD5 (MailScanner-4.22-5.tar.gz) = 1e1cae5094b81306b2a0aad83530506b
MD5 (MailScanner-4.24-5.tar.gz) = f43e0f6b1febf41aaf843400b1b4b3f5

View File

@ -0,0 +1,48 @@
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

View File

@ -0,0 +1,55 @@
#!/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

View File

@ -0,0 +1,117 @@
#!/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

View File

@ -1,153 +0,0 @@
--- ../MailScanner-4.22-5.old/Makefile Thu Jan 1 01:00:00 1970
+++ Makefile Mon Aug 11 12:36:06 2003
@@ -0,0 +1,150 @@
+BINOWN= root
+BINGRP= wheel
+BINMODE= 555
+SHAREOWN= root
+SHAREGRP= wheel
+SHAREMODE= 444
+
+
+INSTALL_SCRIPT= install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_DATA= install -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
+PREFIX= /usr/local
+
+OVERWRITE_FILENAMERULES=no
+OVERWRITE_REPORTS=no
+
+all:
+
+build:
+
+install: install_libexec install_etc install_share install_lib install_startstop install_bin
+
+install_bin:
+.if !exists(.install_bin_DONE)
+ ${INSTALL_SCRIPT} bin/tnef.linux ${PREFIX}/bin/tnef
+ touch .install_bin_DONE
+.endif
+
+install_libexec:
+.if !exists(.install_libexec_DONE)
+ @-mkdir ${PREFIX}/libexec/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/libexec/MailScanner 2>/dev/null
+ ${INSTALL_SCRIPT} bin/MailScanner ${PREFIX}/libexec/MailScanner
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ touch .install_libexec_DONE
+.endif
+
+
+install_etc:
+.if !exists(.install_etc_DONE)
+ @-mkdir ${PREFIX}/etc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner 2>/dev/null
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample
+
+ # depending on the setting OVERWRITE_FILENAMERULES we will copy them or append a .sample (default)
+.if (${OVERWRITE_FILENAMERULES} == "yes")
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+.else
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf.sample
+.endif
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf.sample
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf.sample
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners.conf
+
+ # rules subdir
+ @-mkdir ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ ${INSTALL_DATA} etc/rules/EXAMPLES ${PREFIX}/etc/MailScanner/rules/EXAMPLES
+ ${INSTALL_DATA} etc/rules/README ${PREFIX}/etc/MailScanner/rules/README
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
+
+ touch .install_etc_DONE
+.endif
+
+install_share:
+.if !exists(.install_share_DONE)
+ @-mkdir ${PREFIX}/share/doc 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/MailScanner
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/doc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/doc/MailScanner 2>/dev/null
+
+ # First we create subdirectories if there are any
+ ( cd docs ; find * -type d -exec mkdir ${PREFIX}'/share/doc/MailScanner/{}' \; )
+ ( cd docs ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/doc/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} INSTALL ${PREFIX}/share/doc/MailScanner/INSTALL
+ ${INSTALL_DATA} INSTALL.FreeBSD ${PREFIX}/share/doc/MailScanner/INSTALL.FreeBSD
+ ${INSTALL_DATA} INSTALL.OpenBSD ${PREFIX}/share/doc/MailScanner/INSTALL.OpenBSD
+ ${INSTALL_DATA} README ${PREFIX}/share/doc/MailScanner/README
+
+ # reports subdir
+ # Create report subdirectories and set modes
+ ( cd etc ; find reports -type d -exec mkdir ${PREFIX}'/share/MailScanner/{}' \; ) 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner/reports
+
+ # Copy the individual reports
+ # depending on the setting OVERWRITE_REPORTS we will copy them or append a .sample (default)
+.if (${OVERWRITE_REPORTS} == "yes")
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}' \; )
+.else
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}'.sample \; )
+.endif
+
+ touch .install_share_DONE
+.endif
+
+install_lib:
+.if !exists(.install_lib_DONE)
+ @-mkdir ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-mkdir ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+
+ ${INSTALL_SCRIPT} lib/MailScanner.pm ${PREFIX}/lib/MailScanner/MailScanner.pm
+
+ (cd lib/MailScanner ; find * -type f ! -name "*.orig" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \; )
+
+ touch .install_lib_DONE
+.endif
+
+install_startstop:
+.if !exists(.install_startstop_DONE)
+
+ ${INSTALL_SCRIPT} bin/mailscanner.sh ${PREFIX}/etc/rc.d/mailscanner.sh.sample
+ ${INSTALL_SCRIPT} bin/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
+
+ touch .install_startstop_DONE
+.endif
+
+initial-config: install
+ # copy all files needed for standard config
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners
+
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
+
+ ( cd etc/reports/en ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/reports/en/{}' \; );
+
+

View File

@ -1,17 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/MailScanner Mon Aug 11 12:15:30 2003
+++ bin/MailScanner Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -I/opt/MailScanner/lib
+#!/usr/bin/perl -I/usr/local/lib/MailScanner
#
# MailScanner - SMTP E-Mail Virus Scanner
# Copyright (C) 2002 Julian Field
@@ -125,7 +125,7 @@
# Find the mailscanner.conf file, with a default just in case.
my $ConfFile = $ARGV[0];
-$ConfFile = '/opt/MailScanner/etc/MailScanner.conf' unless $ConfFile;
+$ConfFile = '/usr/local/etc/MailScanner/MailScanner.conf' unless $ConfFile;
# Load the MTA modules we need
my($MTAmod, $MTADSmod);

View File

@ -1,58 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mailscanner.sh Thu Jan 1 01:00:00 1970
+++ bin/mailscanner.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,55 @@
+#!/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

View File

@ -1,120 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mta.sh Thu Jan 1 01:00:00 1970
+++ bin/mta.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,117 @@
+#!/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
+

View File

@ -1,51 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/README.FreeBSD.port Thu Jan 1 01:00:00 1970
+++ docs/README.FreeBSD.port Mon Aug 11 12:36:06 2003
@@ -0,0 +1,48 @@
+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
+

View File

@ -1,122 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.8 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.8 Mon Aug 11 12:36:06 2003
@@ -1,102 +1,17 @@
-.TH "MailScanner" "8" "4.22-4" "Julian Field" "Mail"
-.SH "NAME"
-.LP
-MailScanner \- Virus/Spam Scanner for Sendmail and Exim
-.SH "SYNOPSIS"
-.LP
-\fBMailScanner\fR [\fIconfigfile\fR]
-
-.SH "DESCRIPTION"
-.LP
-\fBMailScanner\fR starts the main MailScanner process. [\fIconfigfile\fR] should point to a valid MailScanner configuration file (see MailScanner.conf(3) for details). The default location for this file depends on the operating system.
-.br
-
-.br
-Linux: /etc/MailScanner/MailScanner.conf
-.br
-
-.br
-FreeBSD: /usr/local/etc/MailScanner/MailScanner.conf
-.br
-
-.br
-Other: /opt/MailScanner/etc/MailScanner.conf
-
-.LP
-The main process then spawns \fIn\fR number of child processes. \fIn\fR is configured in [\fIconfigfile\fR] with the option "Max Children". Each process waits for messages to appear in the "Incoming Queue Dir", processes these messages and then puts them in the "Outgoing Queue Dir". You may need to adjust the configuration of your MTA (or the startup of your MTA) to make it work with MailScanner.
-
-.SH "MTA SETUP"
-.LP
-It is important that your MTA only queues incoming mail and does not deliver it automatically. You need two mail queues (incoming and outgoing). Moreover you should setup two instances of your MTA. One that accepts incoming mail and puts it to an incoming queue and one that sends out mail that resides in the outgoing queue.
-
-.LP
-A common setup for Sendmail could look like this:
-.br
-
-.br
-1. Verify that you already have one queue (e.g. in /var/spool/mqueue).
-.br
-
-.br
-2. Create a second queue (e.g. /var/spool/mqueue.in) and apply the same owner/group/mode.
-.br
-
-.br
-3. Change your sendmail startup from
-.br
-
-.br
- sendmail \-bd \-q15m (or similar)
-.br
-
-.br
- to
-.br
-
-.br
- sendmail \-bd \-OPrivacyOptions=noetrn \-ODeliveryMode=queueonly \-OQueueDirectory=/var/spool/mqueue.in
-.br
- sendmail \-q15m
-
-.LP
-A similar setup for Exim could look like this:
-.br
-
-.br
-1. Create two queues (e.g. /var/spool/exim.in and /var/spool/exim.out) with appropriate owner/group/mode (e.g. owner=mailnull, group=mail, mode=750).
-.br
-
-.br
-2. Create two exim configurations (e.g. /usr/local/etc/exim/configure.in, /usr/local/etc/exim/configure.out).
-.br
-
-.br
-3. Make sure that the incoming exim configuration only queues mails and never delivers mail itself. This can be achieved by using the Exim config option "queue_only = true" and/or a special router definition (Exim 4 syntax):
-.br
-
-.br
- defer_router:
-.br
- driver = manualroute
-.br
- self = defer
-.br
- transport = remote_smtp
-.br
- route_list = * 127.0.0.1 byname
-.br
- verify = false
-.br
-
-.br
-4. Start two exim instances:
-.br
-
-.br
- exim \-C /usr/local/etc/exim/configure.in
-.br
- exim \-C /usr/local/etc/exim/configure.out
-
-.SH "SEE ALSO"
-.LP
-MailScanner.conf(3)
+<!-- Creator : groff version 1.19 -->
+<!-- CreationDate: Mon Aug 11 12:28:56 2003 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta name="generator" content="groff -Thtml, see www.gnu.org">
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<meta name="Content-Style" content="text/css">
+<title></title>
+</head>
+<body>
+
+<hr>
+<hr>
+</body>
+</html>

View File

@ -1,187 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.conf.5 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.conf.5 Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-.TH "MailScanner.conf" "5" "4.22-4" "Julian Field" "Mail"
+.TH "MailScanner.conf" "5" "4.23" "Julian Field" "Mail"
.SH "NAME"
.LP
MailScanner.conf \- Main configuration for MailScanner
@@ -279,9 +279,15 @@
.br
.br
-Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. Example:
+Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. This option allows for multiple strings as well. In this case, the strings should be put in double quotes (") and each string separated with commas. Examples:
.br
Allowed Sophos Error Messages = corrupt format not supported
+.br
+Allowed Sophos Error Messages = "corrupt", "format not supported"
+.br
+
+.br
+The first version will match "corrupt format not supported" only. The second version will match "corrupt" and "format not supported".
.TP
\fBSophos IDE Dir\fR
@@ -358,11 +364,13 @@
.br
.br
-Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 2 special keywords
+Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 3 special keywords
.br
HTML\-IFrame: inserting this will stop senders being warned about HTML Iframe tags, when they are not allowed.
.br
HTML\-Codebase: inserting this will stop senders being warned about HTML Object Codebase tags, when they are not allowed.
+.br
+All\-Viruses: inserting this will stop senders being warned about any virus, while still allowing you to warn senders about HTML\-based attacks.
.TP
@@ -539,7 +547,31 @@
.br
.br
-When an attachment is deleted from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+When an attachment is deleted and stored from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBDeleted Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/deleted.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/deleted.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.content.message.txt
+.br
+
+.br
+This report is sent when a message is deleted because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBStored Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/stored.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/stored.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.content.message.txt
+.br
+
+.br
+This report is sent when a message is stored because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
.TP
\fBDisinfected Report\fR
@@ -600,7 +632,8 @@
.br
When an attachment is trapped by the filename rules, this message is sent back to the sender.
-:
+
+
.TP
\fBSender Virus Report\fR
Default: /opt/MailScanner/etc/reports/en/sender.virus.report.txt
@@ -613,6 +646,7 @@
.br
When an attachment is removed because of a virus, this message is sent back to the sender.
+
.TP
\fBHide Incoming Work Dir\fR
Default: yes
@@ -623,11 +657,13 @@
.TP
\fBInclude Scanner Name in Reports\fR
-Default: no
+Default: yes
.br
.br
-Include the name of the virus scanner in each of the scanner reports. Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
+Include the name of the virus scanner in each of the scanner reports. This also includes the translation of "MailScanner" in each of the report lines resulting from one of MailScanner's own checks such as filename, filetype or dangerous HTML content. To change the name "MailScanner", look in reports/...../languages.conf.
+.br
+Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
.SH "Changes to message headers"
.TP
\fBMail Header\fR
@@ -839,17 +875,34 @@
.br
.br
-If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Virus Subject Text" text inserted at the start.
+If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Filename Subject Text" text inserted at the start.
.TP
\fBFilename Subject Text\fR
-Default: yes
+Default: {Virus?}
.br
.br
This is the text inserted at the start of the "Subject:" line if the "Filename Modify Subject" option is set.
.TP
+\fBContent Modify Subject\fR
+Default: yes
+.br
+
+.br
+If this is set, then the "Subject:" line of a message that triggered a content check without anything else wrong in the message will have the "Content Subject Text" text inserted at the start.
+
+.TP
+\fBContent Subject Text\fR
+Default: {Filename?}
+.br
+
+.br
+This is the text inserted at the start of the "Subject:" line if the "Content Modify Subject" option is set.
+
+
+.TP
\fBSpam Modify Subject\fR
Default: yes
.br
@@ -1081,6 +1134,14 @@
.br
This option would normally be a ruleset. Any messages for which the ruleset result is "yes" will always be marked as spam. This is used to create a spam "blacklist" of addresses of known spammers.
+.TP
+\fBDefinite Spam Is High Scoring\fR
+Default: no
+.br
+
+.br
+Setting this to yes means that spam found in the blacklist is treated as "High Scoring Spam" in the "Spam Actions" section below. Setting it to no means that it will be treated as "normal" spam. This can also be the filename of a ruleset.
+
.SH "SpamAssassin"
.TP
\fBUse SpamAssassin\fR
@@ -1411,6 +1472,27 @@
.br
Are you using Exim with split spool directories? If you don't understand this, the answer is probably "no". Refer to the Exim documentation for more information about split spool directories.
+
+.TP
+\fBUse Default Rules With Multiple Recipients\fR
+Default: no
+.br
+
+.br
+When trying to work out the value of configuration parameters which are using a ruleset, this controls the behaviour when a rule is checking the "To:" addresses. If this option is set to "yes", then the following happens when checking the ruleset:
+.br
+
+.br
+a) 1 recipient. Same behaviour as normal.
+.br
+b) Several recipients, but all in the same domain (domain.com for example). The rules are checked for one that matches the string "*@domain.com".
+.br
+c) Several recipients, not all in the same domain. The rules are checked for one that matches the string "*@*".
+.br
+
+.br
+If this option is set to "no", then some rules will use the result they get from the first matching rule for any of the recipients of a message, so the exact value cannot be predicted for messages with more than 1 recipient. This value *cannot* be the filename of a ruleset.
+
.SH "RULESETS"
.LP
Ruleset files should all be put in /opt/MailScanner/etc/rules (FreeBSD: /usr/local/etc/MailScanner/rules) and their filename should end in ".rules" wherever possible.

View File

@ -1,76 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/MailScanner.conf Mon Aug 11 12:15:32 2003
+++ etc/MailScanner.conf Mon Aug 11 12:36:06 2003
@@ -31,13 +31,13 @@
#
# Set the directory containing all the reports in all the languages
-%report-dir% = /opt/MailScanner/etc/reports/en
+%report-dir% = /usr/local/share/MailScanner/reports/en
# Configuration directory containing this file
-%etc-dir% = /opt/MailScanner/etc
+%etc-dir% = /usr/local/etc/MailScanner
# Rulesets directory containing your ".rules" files
-%rules-dir% = /opt/MailScanner/etc/rules
+%rules-dir% = /usr/local/etc/MailScanner/rules
#
# System settings
@@ -82,7 +82,7 @@
# Example: /var/spool/mqueue.in/*
# 3. The name of a file containing a list of directory names,
# which can in turn contain wildcards.
-# Example: /opt/MailScanner/etc/mqueue.in.list.conf
+# Example: /usr/local/etc/MailScanner/mqueue.in.list.conf
#
Incoming Queue Dir = /var/spool/mqueue.in
@@ -98,7 +98,7 @@
Quarantine Dir = /var/spool/MailScanner/quarantine
# Set where to store the process id number so you can stop MailScanner
-PID file = /opt/MailScanner/var/MailScanner.pid
+PID file = /var/run/MailScanner.pid
# To avoid resource leaks, re-start periodically
Restart Every = 14400
@@ -111,7 +111,7 @@
# Set how to invoke MTA when sending messages MailScanner has created
# (e.g. to sender/recipient saying "found a virus in your message")
# This can also be the filename of a ruleset.
-Sendmail = /usr/lib/sendmail
+Sendmail = /usr/sbin/sendmail
# Sendmail2 is provided for Exim users.
# It is the command used to attempt delivery of outgoing cleaned/disinfected
@@ -119,9 +119,9 @@
# This is not usually required for sendmail.
# This can also be the filename of a ruleset.
#For Exim users: Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_send.conf
-#For sendmail users: Sendmail2 = /usr/lib/sendmail
+#For sendmail users: Sendmail2 = /usr/sbin/sendmail
#Sendmail2 = /usr/sbin/sendmail -C /etc/exim/exim_send.conf
-Sendmail2 = /usr/lib/sendmail
+Sendmail2 = /usr/sbin/sendmail
#
# Processing Incoming Mail
@@ -165,7 +165,7 @@
# may be. It helps protect against Denial Of Service attacks in TNEF files.
#TNEF Expander = internal
# This can also be the filename of a ruleset.
-TNEF Expander = /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEF Expander = /usr/local/bin/tnef --maxsize=100000000
# The maximum length of time the TNEF Expander is allowed to run for 1 message.
# (in seconds)
@@ -1028,7 +1028,7 @@
# /etc/mail/spamassassin, and maybe others.
# If this is set then it adds to the list of places that are searched;
# otherwise it has no effect.
-#SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
+#SpamAssassin Local Rules Dir = /usr/local/etc/MailScanner/mail/spamassassin
SpamAssassin Local Rules Dir =
# The default rules are searched for here, and in prefix/share/spamassassin,

View File

@ -1,43 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/virus.scanners.conf Mon Aug 11 12:15:32 2003
+++ etc/virus.scanners.conf Mon Aug 11 12:36:06 2003
@@ -1,21 +1,21 @@
# This is a list of the names of the virus scanning engines, along with the
# filename of the command or script to run to invoke each one.
-sophos /opt/MailScanner/lib/sophos-wrapper
-f-prot /opt/MailScanner/lib/f-prot-wrapper
-mcafee /opt/MailScanner/lib/mcafee-wrapper
-rav /opt/MailScanner/lib/rav-wrapper
-kaspersky /opt/MailScanner/lib/kaspersky-wrapper
-kavdaemonclient /opt/MailScanner/lib/kavdaemonclient-wrapper
-panda /opt/MailScanner/lib/panda-wrapper
-f-secure /opt/MailScanner/lib/f-secure-wrapper
-clamav /opt/MailScanner/lib/clamav-wrapper
-trend /opt/MailScanner/lib/trend-wrapper
-antivir /opt/MailScanner/lib/antivir-wrapper
-inoculate /opt/MailScanner/lib/inoculate-wrapper
-inoculan /opt/MailScanner/lib/inoculan-wrapper
-command /opt/MailScanner/lib/command-wrapper
-nod32 /opt/MailScanner/lib/nod32-wrapper
-nod32-1.99 /opt/MailScanner/lib/nod32-wrapper
-bitdefender /opt/MailScanner/lib/bitdefender-wrapper
-sophossavi /bin/false
-none /bin/false
+sophos /usr/local/libexec/MailScanner/sophos-wrapper
+f-prot /usr/local/libexec/MailScanner/f-prot-wrapper
+mcafee /usr/local/libexec/MailScanner/mcafee-wrapper
+rav /usr/local/libexec/MailScanner/rav-wrapper
+kaspersky /usr/local/libexec/MailScanner/kaspersky-wrapper
+kavdaemonclient /usr/local/libexec/MailScanner/kavdaemonclient-wrapper
+panda /usr/local/libexec/MailScanner/panda-wrapper
+f-secure /usr/local/libexec/MailScanner/f-secure-wrapper
+clamav /usr/local/libexec/MailScanner/clamav-wrapper
+trend /usr/local/libexec/MailScanner/trend-wrapper
+antivir /usr/local/libexec/MailScanner/antivir-wrapper
+inoculate /usr/local/libexec/MailScanner/inoculate-wrapper
+inoculan /usr/local/libexec/MailScanner/inoculan-wrapper
+command /usr/local/libexec/MailScanner/command-wrapper
+nod32 /usr/local/libexec/MailScanner/nod32-wrapper
+nod32-1.99 /usr/local/libexec/MailScanner/nod32-wrapper
+bitdefender /usr/local/libexec/MailScanner/bitdefender-wrapper
+sophossavi /usr/bin/false
+none /usr/bin/false

View File

@ -1,72 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:36:06 2003
@@ -154,9 +154,9 @@
# Check the first word of these for file existence
[Simple,File]
pidfile /var/run/MailScanner.pid
-spamassassinprefsfile /opt/MailScanner/etc/spam.assassin.prefs.conf
-SpamListDefinitions /opt/MailScanner/etc/spam.lists.conf
-VirusScannerDefinitions /opt/MailScanner/etc/virus.scanners.conf
+spamassassinprefsfile /usr/local/etc/MailScanner/spam.assassin.prefs.conf
+SpamListDefinitions /usr/local/etc/MailScanner/spam.lists.conf
+VirusScannerDefinitions /usr/local/etc/MailScanner/virus.scanners.conf
# Check these to ensure they are just numbers
[Simple,Number]
@@ -197,7 +197,7 @@
SpamAssassinDefaultRulesDir
SpamAssassinInstallPrefix
SpamStarsCharacter s
-TNEFExpander /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEFExpander /usr/local/bin/tnef --maxsize=100000000
VirusScanners none # Space-separated list
#
@@ -246,23 +246,23 @@
WarnSenders 1 no 0 yes 1
[First,File]
-DeletedFilenameMessage /opt/MailScanner/etc/reports/en/deleted.filename.message.txt
-DeletedVirusMessage /opt/MailScanner/etc/reports/en/deleted.virus.message.txt
-DisinfectedReportText /opt/MailScanner/etc/reports/en/disinfected.report.txt
-inlinehtmlsig /opt/MailScanner/etc/reports/en/inline.sig.html
-inlinehtmlwarning /opt/MailScanner/etc/reports/en/inline.warning.html
+DeletedFilenameMessage /usr/local/share/MailScanner/reports/en/deleted.filename.message.txt
+DeletedVirusMessage /usr/local/share/MailScanner/reports/en/deleted.virus.message.txt
+DisinfectedReportText /usr/local/share/MailScanner/reports/en/disinfected.report.txt
+inlinehtmlsig /usr/local/share/MailScanner/reports/en/inline.sig.html
+inlinehtmlwarning /usr/local/share/MailScanner/reports/en/inline.warning.html
inlinespamwarning /etc/MailScanner/reports/en/inline.spam.warning.txt
-inlinetextsig /opt/MailScanner/etc/reports/en/inline.sig.txt
-inlinetextwarning /opt/MailScanner/etc/reports/en/inline.warning.txt
+inlinetextsig /usr/local/share/MailScanner/reports/en/inline.sig.txt
+inlinetextwarning /usr/local/share/MailScanner/reports/en/inline.warning.txt
languagestrings
-sendererrorreport /opt/MailScanner/etc/reports/en/sender.error.report.txt
-senderfilenamereport /opt/MailScanner/etc/reports/en/sender.filename.report.txt
-SenderRBLSpamReport /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt
-SenderSASpamReport /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt
-SenderBothSpamReport /opt/MailScanner/etc/reports/en/sender.spam.report.txt
-sendervirusreport /opt/MailScanner/etc/reports/en/sender.virus.report.txt
-StoredFilenameMessage /opt/MailScanner/etc/reports/en/stored.filename.message.txt
-StoredVirusMessage /opt/MailScanner/etc/reports/en/stored.virus.message.txt
+sendererrorreport /usr/local/share/MailScanner/reports/en/sender.error.report.txt
+senderfilenamereport /usr/local/share/MailScanner/reports/en/sender.filename.report.txt
+SenderRBLSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt
+SenderSASpamReport /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt
+SenderBothSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.report.txt
+sendervirusreport /usr/local/share/MailScanner/reports/en/sender.virus.report.txt
+StoredFilenameMessage /usr/local/share/MailScanner/reports/en/stored.filename.message.txt
+StoredVirusMessage /usr/local/share/MailScanner/reports/en/stored.virus.message.txt
[First,Command]
Sendmail /usr/sbin/sendmail
@@ -317,7 +317,7 @@
UseSpamAssassin 0 no 0 yes 1
[All,File]
-#FilenameRules /opt/MailScanner/etc/filename.rules.conf
+#FilenameRules /usr/local/etc/MailScanner/filename.rules.conf
FilenameRules
FiletypeRules

View File

@ -1,10 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/SystemDefs.pm Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/SystemDefs.pm Mon Aug 11 12:36:06 2003
@@ -36,6 +36,6 @@
$global::rm = '/bin/rm';
$global::cp = '/bin/cp';
$global::cat = '/bin/cat';
-$global::sed = '/bin/sed';
+$global::sed = '/usr/bin/sed';
1;

View File

@ -5,7 +5,7 @@
/ ___ \| | | | | |___| |\ | | | | | |_| | |\ |
/_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_|
See PREFIX/share/doc/MailScanner/README.FreeBSD.port,
See %%PREFIX%%/share/doc/MailScanner/README.FreeBSD.port,
http://www.mailscanner.info, the man pages MailScanner and
MailScanner.conf for further instructions.
@ -21,4 +21,14 @@
.sample files instead of real .conf files and report
templates.
If you are upgrading your port you might consider
running
make renew-wrapper
make renew-autoupdate
make renew-reports
to update your virus-wrappers, autoupdates, reports and
languages.conf
*************************************************************************

View File

@ -1,12 +1,14 @@
@comment $FreeBSD$
bin/tnef
etc/MailScanner/MailScanner.conf.sample
etc/MailScanner/filename.rules.conf.sample
etc/MailScanner/filetype.rules.conf.sample
etc/MailScanner/rules/EXAMPLES
etc/MailScanner/rules/README
etc/MailScanner/rules/spam.whitelist.rules.sample
etc/MailScanner/spam.assassin.prefs.conf.sample
etc/MailScanner/spam.lists.conf.sample
etc/MailScanner/virus.scanners.conf
etc/MailScanner/virus.scanners.conf.sample
etc/rc.d/mailscanner.sh.sample
etc/rc.d/mta.sh.sample
lib/MailScanner/MailScanner.pm
@ -17,6 +19,8 @@ lib/MailScanner/MailScanner/Exim.pm
lib/MailScanner/MailScanner/EximDiskStore.pm
lib/MailScanner/MailScanner/Lock.pm
lib/MailScanner/MailScanner/Log.pm
lib/MailScanner/MailScanner/MCP.pm
lib/MailScanner/MailScanner/MCPMessage.pm
lib/MailScanner/MailScanner/Mail.pm
lib/MailScanner/MailScanner/Message.pm
lib/MailScanner/MailScanner/MessageBatch.pm
@ -45,8 +49,11 @@ libexec/MailScanner/bitdefender-wrapper.sample
libexec/MailScanner/clamav-autoupdate.sample
libexec/MailScanner/clamav-wrapper.sample
libexec/MailScanner/command-wrapper.sample
libexec/MailScanner/etrust-autoupdate.sample
libexec/MailScanner/etrust-wrapper.sample
libexec/MailScanner/f-prot-autoupdate.sample
libexec/MailScanner/f-prot-wrapper.sample
libexec/MailScanner/f-secure-autoupdate.sample
libexec/MailScanner/f-secure-wrapper.sample
libexec/MailScanner/inoculan-wrapper.sample
libexec/MailScanner/inoculate-wrapper.sample
@ -62,7 +69,10 @@ libexec/MailScanner/rav-autoupdate.sample
libexec/MailScanner/rav-wrapper.sample
libexec/MailScanner/sophos-autoupdate.sample
libexec/MailScanner/sophos-wrapper.sample
libexec/MailScanner/trend-autoupdate.sample
libexec/MailScanner/trend-wrapper.sample
libexec/MailScanner/update_virus_scanners
%%DATADIR%%/reports/cy+en/deleted.content.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cy+en/disinfected.report.txt.sample
@ -72,14 +82,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cy+en/inline.warning.html.sample
%%DATADIR%%/reports/cy+en/inline.warning.txt.sample
%%DATADIR%%/reports/cy+en/languages.conf.sample
%%DATADIR%%/reports/cy+en/sender.content.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.error.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.filename.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.virus.report.txt.sample
%%DATADIR%%/reports/cy+en/stored.content.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.virus.message.txt.sample
%%DATADIR%%/reports/cz/deleted.content.message.txt.sample
%%DATADIR%%/reports/cz/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cz/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cz/disinfected.report.txt.sample
@ -89,15 +103,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cz/inline.warning.html.sample
%%DATADIR%%/reports/cz/inline.warning.txt.sample
%%DATADIR%%/reports/cz/languages.conf.sample
%%DATADIR%%/reports/cz/sender.content.report.txt.sample
%%DATADIR%%/reports/cz/sender.error.report.txt.sample
%%DATADIR%%/reports/cz/sender.filename.report.txt.sample
%%DATADIR%%/reports/cz/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cz/sender.virus.report.txt.sample
%%DATADIR%%/reports/cz/stored.content.message.txt.sample
%%DATADIR%%/reports/cz/stored.filename.message.txt.sample
%%DATADIR%%/reports/cz/stored.virus.message.txt.sample
%%DATADIR%%/reports/de/README.1ST.sample
%%DATADIR%%/reports/de/deleted.content.message.txt.sample
%%DATADIR%%/reports/de/deleted.filename.message.txt.sample
%%DATADIR%%/reports/de/deleted.virus.message.txt.sample
%%DATADIR%%/reports/de/disinfected.report.txt.sample
@ -107,14 +125,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/de/inline.warning.html.sample
%%DATADIR%%/reports/de/inline.warning.txt.sample
%%DATADIR%%/reports/de/languages.conf.sample
%%DATADIR%%/reports/de/sender.content.report.txt.sample
%%DATADIR%%/reports/de/sender.error.report.txt.sample
%%DATADIR%%/reports/de/sender.filename.report.txt.sample
%%DATADIR%%/reports/de/sender.mcp.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/de/sender.virus.report.txt.sample
%%DATADIR%%/reports/de/stored.content.message.txt.sample
%%DATADIR%%/reports/de/stored.filename.message.txt.sample
%%DATADIR%%/reports/de/stored.virus.message.txt.sample
%%DATADIR%%/reports/dk/deleted.content.message.txt.sample
%%DATADIR%%/reports/dk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/dk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/dk/disinfected.report.txt.sample
@ -124,14 +146,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/dk/inline.warning.html.sample
%%DATADIR%%/reports/dk/inline.warning.txt.sample
%%DATADIR%%/reports/dk/languages.conf.sample
%%DATADIR%%/reports/dk/sender.content.report.txt.sample
%%DATADIR%%/reports/dk/sender.error.report.txt.sample
%%DATADIR%%/reports/dk/sender.filename.report.txt.sample
%%DATADIR%%/reports/dk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/dk/sender.virus.report.txt.sample
%%DATADIR%%/reports/dk/stored.content.message.txt.sample
%%DATADIR%%/reports/dk/stored.filename.message.txt.sample
%%DATADIR%%/reports/dk/stored.virus.message.txt.sample
%%DATADIR%%/reports/en/deleted.content.message.txt.sample
%%DATADIR%%/reports/en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/en/disinfected.report.txt.sample
@ -141,14 +167,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/en/inline.warning.html.sample
%%DATADIR%%/reports/en/inline.warning.txt.sample
%%DATADIR%%/reports/en/languages.conf.sample
%%DATADIR%%/reports/en/sender.content.report.txt.sample
%%DATADIR%%/reports/en/sender.error.report.txt.sample
%%DATADIR%%/reports/en/sender.filename.report.txt.sample
%%DATADIR%%/reports/en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/en/sender.virus.report.txt.sample
%%DATADIR%%/reports/en/stored.content.message.txt.sample
%%DATADIR%%/reports/en/stored.filename.message.txt.sample
%%DATADIR%%/reports/en/stored.virus.message.txt.sample
%%DATADIR%%/reports/es/deleted.content.message.txt.sample
%%DATADIR%%/reports/es/deleted.filename.message.txt.sample
%%DATADIR%%/reports/es/deleted.virus.message.txt.sample
%%DATADIR%%/reports/es/disinfected.report.txt.sample
@ -158,14 +188,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/es/inline.warning.html.sample
%%DATADIR%%/reports/es/inline.warning.txt.sample
%%DATADIR%%/reports/es/languages.conf.sample
%%DATADIR%%/reports/es/sender.content.report.txt.sample
%%DATADIR%%/reports/es/sender.error.report.txt.sample
%%DATADIR%%/reports/es/sender.filename.report.txt.sample
%%DATADIR%%/reports/es/sender.mcp.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/es/sender.virus.report.txt.sample
%%DATADIR%%/reports/es/stored.content.message.txt.sample
%%DATADIR%%/reports/es/stored.filename.message.txt.sample
%%DATADIR%%/reports/es/stored.virus.message.txt.sample
%%DATADIR%%/reports/fr/deleted.content.message.txt.sample
%%DATADIR%%/reports/fr/deleted.filename.message.txt.sample
%%DATADIR%%/reports/fr/deleted.virus.message.txt.sample
%%DATADIR%%/reports/fr/disinfected.report.txt.sample
@ -175,14 +209,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/fr/inline.warning.html.sample
%%DATADIR%%/reports/fr/inline.warning.txt.sample
%%DATADIR%%/reports/fr/languages.conf.sample
%%DATADIR%%/reports/fr/sender.content.report.txt.sample
%%DATADIR%%/reports/fr/sender.error.report.txt.sample
%%DATADIR%%/reports/fr/sender.filename.report.txt.sample
%%DATADIR%%/reports/fr/sender.mcp.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/fr/sender.virus.report.txt.sample
%%DATADIR%%/reports/fr/stored.content.message.txt.sample
%%DATADIR%%/reports/fr/stored.filename.message.txt.sample
%%DATADIR%%/reports/fr/stored.virus.message.txt.sample
%%DATADIR%%/reports/hu/deleted.content.message.txt.sample
%%DATADIR%%/reports/hu/deleted.filename.message.txt.sample
%%DATADIR%%/reports/hu/deleted.virus.message.txt.sample
%%DATADIR%%/reports/hu/disinfected.report.txt.sample
@ -192,14 +230,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/hu/inline.warning.html.sample
%%DATADIR%%/reports/hu/inline.warning.txt.sample
%%DATADIR%%/reports/hu/languages.conf.sample
%%DATADIR%%/reports/hu/sender.content.report.txt.sample
%%DATADIR%%/reports/hu/sender.error.report.txt.sample
%%DATADIR%%/reports/hu/sender.filename.report.txt.sample
%%DATADIR%%/reports/hu/sender.mcp.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/hu/sender.virus.report.txt.sample
%%DATADIR%%/reports/hu/stored.content.message.txt.sample
%%DATADIR%%/reports/hu/stored.filename.message.txt.sample
%%DATADIR%%/reports/hu/stored.virus.message.txt.sample
%%DATADIR%%/reports/it/deleted.content.message.txt.sample
%%DATADIR%%/reports/it/deleted.filename.message.txt.sample
%%DATADIR%%/reports/it/deleted.virus.message.txt.sample
%%DATADIR%%/reports/it/disinfected.report.txt.sample
@ -209,14 +251,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/it/inline.warning.html.sample
%%DATADIR%%/reports/it/inline.warning.txt.sample
%%DATADIR%%/reports/it/languages.conf.sample
%%DATADIR%%/reports/it/sender.content.report.txt.sample
%%DATADIR%%/reports/it/sender.error.report.txt.sample
%%DATADIR%%/reports/it/sender.filename.report.txt.sample
%%DATADIR%%/reports/it/sender.mcp.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/it/sender.virus.report.txt.sample
%%DATADIR%%/reports/it/stored.content.message.txt.sample
%%DATADIR%%/reports/it/stored.filename.message.txt.sample
%%DATADIR%%/reports/it/stored.virus.message.txt.sample
%%DATADIR%%/reports/nl/deleted.content.message.txt.sample
%%DATADIR%%/reports/nl/deleted.filename.message.txt.sample
%%DATADIR%%/reports/nl/deleted.virus.message.txt.sample
%%DATADIR%%/reports/nl/disinfected.report.txt.sample
@ -226,14 +272,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/nl/inline.warning.html.sample
%%DATADIR%%/reports/nl/inline.warning.txt.sample
%%DATADIR%%/reports/nl/languages.conf.sample
%%DATADIR%%/reports/nl/sender.content.report.txt.sample
%%DATADIR%%/reports/nl/sender.error.report.txt.sample
%%DATADIR%%/reports/nl/sender.filename.report.txt.sample
%%DATADIR%%/reports/nl/sender.mcp.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/nl/sender.virus.report.txt.sample
%%DATADIR%%/reports/nl/stored.content.message.txt.sample
%%DATADIR%%/reports/nl/stored.filename.message.txt.sample
%%DATADIR%%/reports/nl/stored.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.content.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/disinfected.report.txt.sample
@ -243,14 +293,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/pt_br/inline.warning.html.sample
%%DATADIR%%/reports/pt_br/inline.warning.txt.sample
%%DATADIR%%/reports/pt_br/languages.conf.sample
%%DATADIR%%/reports/pt_br/sender.content.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.error.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.filename.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.mcp.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.virus.report.txt.sample
%%DATADIR%%/reports/pt_br/stored.content.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.virus.message.txt.sample
%%DATADIR%%/reports/ro/deleted.content.message.txt.sample
%%DATADIR%%/reports/ro/deleted.filename.message.txt.sample
%%DATADIR%%/reports/ro/deleted.virus.message.txt.sample
%%DATADIR%%/reports/ro/disinfected.report.txt.sample
@ -260,15 +314,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/ro/inline.warning.html.sample
%%DATADIR%%/reports/ro/inline.warning.txt.sample
%%DATADIR%%/reports/ro/languages.conf.sample
%%DATADIR%%/reports/ro/sender.content.report.txt.sample
%%DATADIR%%/reports/ro/sender.error.report.txt.sample
%%DATADIR%%/reports/ro/sender.filename.report.txt.sample
%%DATADIR%%/reports/ro/sender.mcp.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/ro/sender.virus.report.txt.sample
%%DATADIR%%/reports/ro/stored.content.message.txt.sample
%%DATADIR%%/reports/ro/stored.filename.message.txt.sample
%%DATADIR%%/reports/ro/stored.virus.message.txt.sample
%%DATADIR%%/reports/se/README.sample
%%DATADIR%%/reports/se/deleted.content.message.txt.sample
%%DATADIR%%/reports/se/deleted.filename.message.txt.sample
%%DATADIR%%/reports/se/deleted.virus.message.txt.sample
%%DATADIR%%/reports/se/disinfected.report.txt.sample
@ -278,14 +336,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/se/inline.warning.html.sample
%%DATADIR%%/reports/se/inline.warning.txt.sample
%%DATADIR%%/reports/se/languages.conf.sample
%%DATADIR%%/reports/se/sender.content.report.txt.sample
%%DATADIR%%/reports/se/sender.error.report.txt.sample
%%DATADIR%%/reports/se/sender.filename.report.txt.sample
%%DATADIR%%/reports/se/sender.mcp.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/se/sender.virus.report.txt.sample
%%DATADIR%%/reports/se/stored.content.message.txt.sample
%%DATADIR%%/reports/se/stored.filename.message.txt.sample
%%DATADIR%%/reports/se/stored.virus.message.txt.sample
%%DATADIR%%/reports/sk/deleted.content.message.txt.sample
%%DATADIR%%/reports/sk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/sk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/sk/disinfected.report.txt.sample
@ -295,12 +357,15 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/sk/inline.warning.html.sample
%%DATADIR%%/reports/sk/inline.warning.txt.sample
%%DATADIR%%/reports/sk/languages.conf.sample
%%DATADIR%%/reports/sk/sender.content.report.txt.sample
%%DATADIR%%/reports/sk/sender.error.report.txt.sample
%%DATADIR%%/reports/sk/sender.filename.report.txt.sample
%%DATADIR%%/reports/sk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/sk/sender.virus.report.txt.sample
%%DATADIR%%/reports/sk/stored.content.message.txt.sample
%%DATADIR%%/reports/sk/stored.filename.message.txt.sample
%%DATADIR%%/reports/sk/stored.virus.message.txt.sample
%%DOCSDIR%%/COPYING
@ -339,6 +404,11 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/linux.shtml
%%DOCSDIR%%/install/mailscanner.shtml
%%DOCSDIR%%/install/mcafee.shtml
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.55
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.60
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.55
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.60
%%DOCSDIR%%/install/mcp/index.html
%%DOCSDIR%%/install/mime-tools-patch.txt
%%DOCSDIR%%/install/mime-tools-patch2.txt
%%DOCSDIR%%/install/mime-tools-patch3.txt
@ -353,6 +423,7 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/tnef.shtml
%%DOCSDIR%%/install/zmailer.shtml
%%DOCSDIR%%/introduction.shtml
%%DOCSDIR%%/jobs
%%DOCSDIR%%/mailscanner_trans.gif
%%DOCSDIR%%/man/MailScanner.8
%%DOCSDIR%%/man/MailScanner.8.html
@ -367,15 +438,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/poetry.shtml
%%DOCSDIR%%/poweredby.google.gif
%%DOCSDIR%%/poweredby.transtec.gif
%%DOCSDIR%%/presentations.html
%%DOCSDIR%%/press.html
%%DOCSDIR%%/readme.shtml
%%DOCSDIR%%/reject.html
%%DOCSDIR%%/sobig.html
%%DOCSDIR%%/support.html
%%DOCSDIR%%/transtec.logo.gif
%%DOCSDIR%%/users.shtml
@dirrm share/nls/en_US.US-ASCII
@dirrm share/nls/POSIX
@dirrm %%DOCSDIR%%/man
@dirrm %%DOCSDIR%%/install/mcp
@dirrm %%DOCSDIR%%/install
@dirrm %%DOCSDIR%%/images
@dirrm %%DOCSDIR%%

View File

@ -1,79 +1,190 @@
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
#
# $FreeBSD$
#
PORTNAME= mailscanner
PORTVERSION= 4.22.5
PORTREVISION= 0
PORTVERSION= 4.24.5
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
DISTNAME= MailScanner-4.22-5
DISTNAME= MailScanner-4.24-5
MAINTAINER= j.koopmann@seceidos.de
COMMENT= A powerful virus/spam scanning framework for Sendmail and Exim
COMMENT= Powerful virus/spam scanning framework for Sendmail/Exim
BUILD_DEPENDS= ${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
BUILD_DEPENDS= \
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PERL5= yes
DATADIR= ${PREFIX}/share/MailScanner
DOCSDIR= ${PREFIX}/share/doc/MailScanner
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= MailScanner.8
MAN5= MailScanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 MailScanner.conf.5 mailscanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 \
MailScanner.conf.5 mailscanner.conf.5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
.endif
# PATCH_DIST_STRIP= -p1
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf
USE_PERL5= yes
pre-install:
# Delete WRKSRC/.install_*
${RM} -rf ${WRKSRC}/.install_*
do-build:
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/lib/MailScanner,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/MailScanner
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/etc/MailScanner.conf
${PERL} -pi -e \
's,/opt/MailScanner/lib,'${PREFIX}'/libexec/MailScanner,g; \
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
${PERL} -pi -e \
's,/bin/bash,'${PREFIX}'/bash,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/bin/update_virus_scanners
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,'${PREFIX}'/bin,g; \
s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
${PERL} -pi \
-e 's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
do-install:
( cd ${WRKSRC} ; ${MAKE} ${INSTALL_TARGET} BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
post-install:
.for file in ${MAN5}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man5
.endfor
.for file in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/docs/man/${file} ${PREFIX}/man/man8
#
# Step 1: Install binaries
#
${INSTALL_SCRIPT} ${WRKSRC}/bin/tnef.linux ${PREFIX}/bin/tnef
#
# Step 2: Install libexec files
#
${MKDIR} ${PREFIX}/libexec/MailScanner
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec ${INSTALL_SCRIPT} \
'{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
${PREFIX}/libexec/MailScanner/update_virus_scanners
#
# Step 3: Install etc files
#
${MKDIR} ${PREFIX}/etc/MailScanner
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules && \
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
#
# Step 4: Install files in share
#
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d -exec \
mkdir ${DATADIR}'/{}' \;
cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DATADIR}'/{}'.sample \;
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
#
# Step 5: Install lib
#
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \;
#
# Step 6: Install Start/Stop scripts
#
${INSTALL_SCRIPT} ${FILESDIR}/mailscanner.sh \
${PREFIX}/etc/rc.d/mailscanner.sh.sample
${INSTALL_SCRIPT} ${FILESDIR}/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
#
# Step 7: Docs & Manpages
#
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec mkdir ${DOCSDIR}'/{}' \; && \
${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_DATA} '{}' ${DOCSDIR}'/{}' \;
cd ${WRKSRC}/docs/man && \
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
.endif
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
# Upgrading MailScanner.conf file... Please wait
@${WRKSRC}/bin/upgrade_MailScanner_conf ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample > ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} 2> /dev/null
@${WRKSRC}/bin/upgrade_MailScanner_conf \
${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
2> /dev/null
# Diff the files. If the files do not differ, delete the new file
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; ${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; \
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
else \
${ECHO} "Changes in MailScanner.conf found. Please look at ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
.endif
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${SED} -e 's#PREFIX#${PREFIX}#' pkg-message
renew-wrapper: install
# Renew virus wrapper scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
initial-config:
( cd ${WRKSRC} ; ${MAKE} initial-config BINOWN="${BINOWN}" BINGRP="${BINGRP}" BINMODE="${BINMODE}" SHAREOWN="${SHAREOWN}" SHAREGRP="{SHAREGRP}" SHAREMODE="${SHAREMODE}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_DATA="${INSTALL_DATA}" PREFIX="${PREFIX}" WRKSPACE="${WRKSPACE}" OVERWRITE_FILENAMERULES="${OVERWRITE_FILENAMERULES}" OVERWRITE_REPORTS="${OVERWRITE_REPORTS}" )
renew-autoupdate: install
# Renew autoupdate scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
renew-reports: install
# Renew reports
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
-exec ${INSTALL_DATA} '{}' ${DATADIR}'/reports/en/{}' \;
initial-config: renew-wrapper renew-autoupdate renew-reports
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
${PREFIX}/etc/MailScanner
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
.include <bsd.port.post.mk>

View File

@ -1 +1 @@
MD5 (MailScanner-4.22-5.tar.gz) = 1e1cae5094b81306b2a0aad83530506b
MD5 (MailScanner-4.24-5.tar.gz) = f43e0f6b1febf41aaf843400b1b4b3f5

View File

@ -0,0 +1,48 @@
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

View File

@ -0,0 +1,55 @@
#!/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

View File

@ -0,0 +1,117 @@
#!/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

View File

@ -1,153 +0,0 @@
--- ../MailScanner-4.22-5.old/Makefile Thu Jan 1 01:00:00 1970
+++ Makefile Mon Aug 11 12:36:06 2003
@@ -0,0 +1,150 @@
+BINOWN= root
+BINGRP= wheel
+BINMODE= 555
+SHAREOWN= root
+SHAREGRP= wheel
+SHAREMODE= 444
+
+
+INSTALL_SCRIPT= install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
+INSTALL_DATA= install -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}
+PREFIX= /usr/local
+
+OVERWRITE_FILENAMERULES=no
+OVERWRITE_REPORTS=no
+
+all:
+
+build:
+
+install: install_libexec install_etc install_share install_lib install_startstop install_bin
+
+install_bin:
+.if !exists(.install_bin_DONE)
+ ${INSTALL_SCRIPT} bin/tnef.linux ${PREFIX}/bin/tnef
+ touch .install_bin_DONE
+.endif
+
+install_libexec:
+.if !exists(.install_libexec_DONE)
+ @-mkdir ${PREFIX}/libexec/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/libexec/MailScanner 2>/dev/null
+ ${INSTALL_SCRIPT} bin/MailScanner ${PREFIX}/libexec/MailScanner
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \; )
+
+ touch .install_libexec_DONE
+.endif
+
+
+install_etc:
+.if !exists(.install_etc_DONE)
+ @-mkdir ${PREFIX}/etc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner 2>/dev/null
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf.sample
+
+ # depending on the setting OVERWRITE_FILENAMERULES we will copy them or append a .sample (default)
+.if (${OVERWRITE_FILENAMERULES} == "yes")
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+.else
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf.sample
+.endif
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf.sample
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf.sample
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners.conf
+
+ # rules subdir
+ @-mkdir ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/etc/MailScanner/rules 2>/dev/null
+ ${INSTALL_DATA} etc/rules/EXAMPLES ${PREFIX}/etc/MailScanner/rules/EXAMPLES
+ ${INSTALL_DATA} etc/rules/README ${PREFIX}/etc/MailScanner/rules/README
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
+
+ touch .install_etc_DONE
+.endif
+
+install_share:
+.if !exists(.install_share_DONE)
+ @-mkdir ${PREFIX}/share/doc 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/MailScanner
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner 2>/dev/null
+
+ @-mkdir ${PREFIX}/share/doc/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/doc/MailScanner 2>/dev/null
+
+ # First we create subdirectories if there are any
+ ( cd docs ; find * -type d -exec mkdir ${PREFIX}'/share/doc/MailScanner/{}' \; )
+ ( cd docs ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/doc/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} INSTALL ${PREFIX}/share/doc/MailScanner/INSTALL
+ ${INSTALL_DATA} INSTALL.FreeBSD ${PREFIX}/share/doc/MailScanner/INSTALL.FreeBSD
+ ${INSTALL_DATA} INSTALL.OpenBSD ${PREFIX}/share/doc/MailScanner/INSTALL.OpenBSD
+ ${INSTALL_DATA} README ${PREFIX}/share/doc/MailScanner/README
+
+ # reports subdir
+ # Create report subdirectories and set modes
+ ( cd etc ; find reports -type d -exec mkdir ${PREFIX}'/share/MailScanner/{}' \; ) 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/share/MailScanner/reports
+
+ # Copy the individual reports
+ # depending on the setting OVERWRITE_REPORTS we will copy them or append a .sample (default)
+.if (${OVERWRITE_REPORTS} == "yes")
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}' \; )
+.else
+ ( cd etc ; find reports -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/{}'.sample \; )
+.endif
+
+ touch .install_share_DONE
+.endif
+
+install_lib:
+.if !exists(.install_lib_DONE)
+ @-mkdir ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-mkdir ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner 2>/dev/null
+ @-chmod -R ${BINMODE} ${PREFIX}/lib/MailScanner/MailScanner 2>/dev/null
+
+ ${INSTALL_SCRIPT} lib/MailScanner.pm ${PREFIX}/lib/MailScanner/MailScanner.pm
+
+ (cd lib/MailScanner ; find * -type f ! -name "*.orig" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \; )
+
+ touch .install_lib_DONE
+.endif
+
+install_startstop:
+.if !exists(.install_startstop_DONE)
+
+ ${INSTALL_SCRIPT} bin/mailscanner.sh ${PREFIX}/etc/rc.d/mailscanner.sh.sample
+ ${INSTALL_SCRIPT} bin/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
+
+ touch .install_startstop_DONE
+.endif
+
+initial-config: install
+ # copy all files needed for standard config
+
+ # copy wrapper scripts
+ ( cd lib ; find * -name "*-wrapper" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ # copy autoupdate scripts
+ ( cd lib ; find * -name "*-autoupdate" -exec ${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}' \; )
+
+ ${INSTALL_DATA} etc/MailScanner.conf ${PREFIX}/etc/MailScanner/MailScanner.conf
+ ${INSTALL_DATA} etc/filename.rules.conf ${PREFIX}/etc/MailScanner/filename.rules.conf
+
+
+ ${INSTALL_DATA} etc/spam.assassin.prefs.conf ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf
+ ${INSTALL_DATA} etc/spam.lists.conf ${PREFIX}/etc/MailScanner/spam.lists.conf
+ ${INSTALL_DATA} etc/virus.scanners.conf ${PREFIX}/etc/MailScanner/virus.scanners
+
+ ${INSTALL_DATA} etc/rules/spam.whitelist.rules ${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
+
+ ( cd etc/reports/en ; find * -type f ! -name "*.orig" -exec ${INSTALL_DATA} '{}' ${PREFIX}'/share/MailScanner/reports/en/{}' \; );
+
+

View File

@ -1,17 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/MailScanner Mon Aug 11 12:15:30 2003
+++ bin/MailScanner Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -I/opt/MailScanner/lib
+#!/usr/bin/perl -I/usr/local/lib/MailScanner
#
# MailScanner - SMTP E-Mail Virus Scanner
# Copyright (C) 2002 Julian Field
@@ -125,7 +125,7 @@
# Find the mailscanner.conf file, with a default just in case.
my $ConfFile = $ARGV[0];
-$ConfFile = '/opt/MailScanner/etc/MailScanner.conf' unless $ConfFile;
+$ConfFile = '/usr/local/etc/MailScanner/MailScanner.conf' unless $ConfFile;
# Load the MTA modules we need
my($MTAmod, $MTADSmod);

View File

@ -1,58 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mailscanner.sh Thu Jan 1 01:00:00 1970
+++ bin/mailscanner.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,55 @@
+#!/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

View File

@ -1,120 +0,0 @@
--- ../MailScanner-4.22-5.old/bin/mta.sh Thu Jan 1 01:00:00 1970
+++ bin/mta.sh Mon Aug 11 12:36:06 2003
@@ -0,0 +1,117 @@
+#!/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
+

View File

@ -1,51 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/README.FreeBSD.port Thu Jan 1 01:00:00 1970
+++ docs/README.FreeBSD.port Mon Aug 11 12:36:06 2003
@@ -0,0 +1,48 @@
+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
+

View File

@ -1,122 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.8 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.8 Mon Aug 11 12:36:06 2003
@@ -1,102 +1,17 @@
-.TH "MailScanner" "8" "4.22-4" "Julian Field" "Mail"
-.SH "NAME"
-.LP
-MailScanner \- Virus/Spam Scanner for Sendmail and Exim
-.SH "SYNOPSIS"
-.LP
-\fBMailScanner\fR [\fIconfigfile\fR]
-
-.SH "DESCRIPTION"
-.LP
-\fBMailScanner\fR starts the main MailScanner process. [\fIconfigfile\fR] should point to a valid MailScanner configuration file (see MailScanner.conf(3) for details). The default location for this file depends on the operating system.
-.br
-
-.br
-Linux: /etc/MailScanner/MailScanner.conf
-.br
-
-.br
-FreeBSD: /usr/local/etc/MailScanner/MailScanner.conf
-.br
-
-.br
-Other: /opt/MailScanner/etc/MailScanner.conf
-
-.LP
-The main process then spawns \fIn\fR number of child processes. \fIn\fR is configured in [\fIconfigfile\fR] with the option "Max Children". Each process waits for messages to appear in the "Incoming Queue Dir", processes these messages and then puts them in the "Outgoing Queue Dir". You may need to adjust the configuration of your MTA (or the startup of your MTA) to make it work with MailScanner.
-
-.SH "MTA SETUP"
-.LP
-It is important that your MTA only queues incoming mail and does not deliver it automatically. You need two mail queues (incoming and outgoing). Moreover you should setup two instances of your MTA. One that accepts incoming mail and puts it to an incoming queue and one that sends out mail that resides in the outgoing queue.
-
-.LP
-A common setup for Sendmail could look like this:
-.br
-
-.br
-1. Verify that you already have one queue (e.g. in /var/spool/mqueue).
-.br
-
-.br
-2. Create a second queue (e.g. /var/spool/mqueue.in) and apply the same owner/group/mode.
-.br
-
-.br
-3. Change your sendmail startup from
-.br
-
-.br
- sendmail \-bd \-q15m (or similar)
-.br
-
-.br
- to
-.br
-
-.br
- sendmail \-bd \-OPrivacyOptions=noetrn \-ODeliveryMode=queueonly \-OQueueDirectory=/var/spool/mqueue.in
-.br
- sendmail \-q15m
-
-.LP
-A similar setup for Exim could look like this:
-.br
-
-.br
-1. Create two queues (e.g. /var/spool/exim.in and /var/spool/exim.out) with appropriate owner/group/mode (e.g. owner=mailnull, group=mail, mode=750).
-.br
-
-.br
-2. Create two exim configurations (e.g. /usr/local/etc/exim/configure.in, /usr/local/etc/exim/configure.out).
-.br
-
-.br
-3. Make sure that the incoming exim configuration only queues mails and never delivers mail itself. This can be achieved by using the Exim config option "queue_only = true" and/or a special router definition (Exim 4 syntax):
-.br
-
-.br
- defer_router:
-.br
- driver = manualroute
-.br
- self = defer
-.br
- transport = remote_smtp
-.br
- route_list = * 127.0.0.1 byname
-.br
- verify = false
-.br
-
-.br
-4. Start two exim instances:
-.br
-
-.br
- exim \-C /usr/local/etc/exim/configure.in
-.br
- exim \-C /usr/local/etc/exim/configure.out
-
-.SH "SEE ALSO"
-.LP
-MailScanner.conf(3)
+<!-- Creator : groff version 1.19 -->
+<!-- CreationDate: Mon Aug 11 12:28:56 2003 -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta name="generator" content="groff -Thtml, see www.gnu.org">
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<meta name="Content-Style" content="text/css">
+<title></title>
+</head>
+<body>
+
+<hr>
+<hr>
+</body>
+</html>

View File

@ -1,187 +0,0 @@
--- ../MailScanner-4.22-5.old/docs/man/MailScanner.conf.5 Mon Aug 11 12:15:30 2003
+++ docs/man/MailScanner.conf.5 Mon Aug 11 12:36:06 2003
@@ -1,4 +1,4 @@
-.TH "MailScanner.conf" "5" "4.22-4" "Julian Field" "Mail"
+.TH "MailScanner.conf" "5" "4.23" "Julian Field" "Mail"
.SH "NAME"
.LP
MailScanner.conf \- Main configuration for MailScanner
@@ -279,9 +279,15 @@
.br
.br
-Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. Example:
+Anything on the next line that appears in brackets at the end of a line of output from Sophos will cause the error/infection to be ignored. Use of this option is dangerous, and should only be used if you are having trouble with lots of corrupt PDF files, for example. This option allows for multiple strings as well. In this case, the strings should be put in double quotes (") and each string separated with commas. Examples:
.br
Allowed Sophos Error Messages = corrupt format not supported
+.br
+Allowed Sophos Error Messages = "corrupt", "format not supported"
+.br
+
+.br
+The first version will match "corrupt format not supported" only. The second version will match "corrupt" and "format not supported".
.TP
\fBSophos IDE Dir\fR
@@ -358,11 +364,13 @@
.br
.br
-Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 2 special keywords
+Messages whose virus reports contain any of the words listed here will be treated as "silent" viruses. No messages will be sent back to the senders of these viruses, and the delivery to the recipient of the message can be controlled by the next option "Still Deliver Silent Viruses". This is primarily designed for viruses such as "Klez" and "Bugbear" which put fake addresses on messages they send, so there is no point informing the sender of the message, as it won't actually be them who sent it anyway. Other words that can be put in this list are the 3 special keywords
.br
HTML\-IFrame: inserting this will stop senders being warned about HTML Iframe tags, when they are not allowed.
.br
HTML\-Codebase: inserting this will stop senders being warned about HTML Object Codebase tags, when they are not allowed.
+.br
+All\-Viruses: inserting this will stop senders being warned about any virus, while still allowing you to warn senders about HTML\-based attacks.
.TP
@@ -539,7 +547,31 @@
.br
.br
-When an attachment is deleted from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+When an attachment is deleted and stored from a message (and the attachment has been stored in the quarantine) because the filename failed the filename rules in force for the message, it is replaced by the contents of this file. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBDeleted Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/deleted.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/deleted.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.content.message.txt
+.br
+
+.br
+This report is sent when a message is deleted because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
+
+.TP
+\fBStored Bad Content Message Report\fR
+Default: /opt/MailScanner/etc/reports/en/stored.content.message.txt
+.br
+Default Linux: /etc/MailScanner/reports/en/stored.content.message.txt
+.br
+Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.content.message.txt
+.br
+
+.br
+This report is sent when a message is stored because it contained bad or dangerous content. A few variable substitutions can be made in this file, an example of each of which is contained in the supplied sample file.
.TP
\fBDisinfected Report\fR
@@ -600,7 +632,8 @@
.br
When an attachment is trapped by the filename rules, this message is sent back to the sender.
-:
+
+
.TP
\fBSender Virus Report\fR
Default: /opt/MailScanner/etc/reports/en/sender.virus.report.txt
@@ -613,6 +646,7 @@
.br
When an attachment is removed because of a virus, this message is sent back to the sender.
+
.TP
\fBHide Incoming Work Dir\fR
Default: yes
@@ -623,11 +657,13 @@
.TP
\fBInclude Scanner Name in Reports\fR
-Default: no
+Default: yes
.br
.br
-Include the name of the virus scanner in each of the scanner reports. Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
+Include the name of the virus scanner in each of the scanner reports. This also includes the translation of "MailScanner" in each of the report lines resulting from one of MailScanner's own checks such as filename, filetype or dangerous HTML content. To change the name "MailScanner", look in reports/...../languages.conf.
+.br
+Very useful if you use several virus scanners, but a bad idea if you don't want to let your customers know which scanners you use.
.SH "Changes to message headers"
.TP
\fBMail Header\fR
@@ -839,17 +875,34 @@
.br
.br
-If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Virus Subject Text" text inserted at the start.
+If this is set, then the "Subject:" line of a message that had an attachment with a dangerous filename will have the "Filename Subject Text" text inserted at the start.
.TP
\fBFilename Subject Text\fR
-Default: yes
+Default: {Virus?}
.br
.br
This is the text inserted at the start of the "Subject:" line if the "Filename Modify Subject" option is set.
.TP
+\fBContent Modify Subject\fR
+Default: yes
+.br
+
+.br
+If this is set, then the "Subject:" line of a message that triggered a content check without anything else wrong in the message will have the "Content Subject Text" text inserted at the start.
+
+.TP
+\fBContent Subject Text\fR
+Default: {Filename?}
+.br
+
+.br
+This is the text inserted at the start of the "Subject:" line if the "Content Modify Subject" option is set.
+
+
+.TP
\fBSpam Modify Subject\fR
Default: yes
.br
@@ -1081,6 +1134,14 @@
.br
This option would normally be a ruleset. Any messages for which the ruleset result is "yes" will always be marked as spam. This is used to create a spam "blacklist" of addresses of known spammers.
+.TP
+\fBDefinite Spam Is High Scoring\fR
+Default: no
+.br
+
+.br
+Setting this to yes means that spam found in the blacklist is treated as "High Scoring Spam" in the "Spam Actions" section below. Setting it to no means that it will be treated as "normal" spam. This can also be the filename of a ruleset.
+
.SH "SpamAssassin"
.TP
\fBUse SpamAssassin\fR
@@ -1411,6 +1472,27 @@
.br
Are you using Exim with split spool directories? If you don't understand this, the answer is probably "no". Refer to the Exim documentation for more information about split spool directories.
+
+.TP
+\fBUse Default Rules With Multiple Recipients\fR
+Default: no
+.br
+
+.br
+When trying to work out the value of configuration parameters which are using a ruleset, this controls the behaviour when a rule is checking the "To:" addresses. If this option is set to "yes", then the following happens when checking the ruleset:
+.br
+
+.br
+a) 1 recipient. Same behaviour as normal.
+.br
+b) Several recipients, but all in the same domain (domain.com for example). The rules are checked for one that matches the string "*@domain.com".
+.br
+c) Several recipients, not all in the same domain. The rules are checked for one that matches the string "*@*".
+.br
+
+.br
+If this option is set to "no", then some rules will use the result they get from the first matching rule for any of the recipients of a message, so the exact value cannot be predicted for messages with more than 1 recipient. This value *cannot* be the filename of a ruleset.
+
.SH "RULESETS"
.LP
Ruleset files should all be put in /opt/MailScanner/etc/rules (FreeBSD: /usr/local/etc/MailScanner/rules) and their filename should end in ".rules" wherever possible.

File diff suppressed because it is too large Load Diff

View File

@ -1,76 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/MailScanner.conf Mon Aug 11 12:15:32 2003
+++ etc/MailScanner.conf Mon Aug 11 12:36:06 2003
@@ -31,13 +31,13 @@
#
# Set the directory containing all the reports in all the languages
-%report-dir% = /opt/MailScanner/etc/reports/en
+%report-dir% = /usr/local/share/MailScanner/reports/en
# Configuration directory containing this file
-%etc-dir% = /opt/MailScanner/etc
+%etc-dir% = /usr/local/etc/MailScanner
# Rulesets directory containing your ".rules" files
-%rules-dir% = /opt/MailScanner/etc/rules
+%rules-dir% = /usr/local/etc/MailScanner/rules
#
# System settings
@@ -82,7 +82,7 @@
# Example: /var/spool/mqueue.in/*
# 3. The name of a file containing a list of directory names,
# which can in turn contain wildcards.
-# Example: /opt/MailScanner/etc/mqueue.in.list.conf
+# Example: /usr/local/etc/MailScanner/mqueue.in.list.conf
#
Incoming Queue Dir = /var/spool/mqueue.in
@@ -98,7 +98,7 @@
Quarantine Dir = /var/spool/MailScanner/quarantine
# Set where to store the process id number so you can stop MailScanner
-PID file = /opt/MailScanner/var/MailScanner.pid
+PID file = /var/run/MailScanner.pid
# To avoid resource leaks, re-start periodically
Restart Every = 14400
@@ -111,7 +111,7 @@
# Set how to invoke MTA when sending messages MailScanner has created
# (e.g. to sender/recipient saying "found a virus in your message")
# This can also be the filename of a ruleset.
-Sendmail = /usr/lib/sendmail
+Sendmail = /usr/sbin/sendmail
# Sendmail2 is provided for Exim users.
# It is the command used to attempt delivery of outgoing cleaned/disinfected
@@ -119,9 +119,9 @@
# This is not usually required for sendmail.
# This can also be the filename of a ruleset.
#For Exim users: Sendmail2 = /usr/sbin/exim -C /etc/exim/exim_send.conf
-#For sendmail users: Sendmail2 = /usr/lib/sendmail
+#For sendmail users: Sendmail2 = /usr/sbin/sendmail
#Sendmail2 = /usr/sbin/sendmail -C /etc/exim/exim_send.conf
-Sendmail2 = /usr/lib/sendmail
+Sendmail2 = /usr/sbin/sendmail
#
# Processing Incoming Mail
@@ -165,7 +165,7 @@
# may be. It helps protect against Denial Of Service attacks in TNEF files.
#TNEF Expander = internal
# This can also be the filename of a ruleset.
-TNEF Expander = /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEF Expander = /usr/local/bin/tnef --maxsize=100000000
# The maximum length of time the TNEF Expander is allowed to run for 1 message.
# (in seconds)
@@ -1028,7 +1028,7 @@
# /etc/mail/spamassassin, and maybe others.
# If this is set then it adds to the list of places that are searched;
# otherwise it has no effect.
-#SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
+#SpamAssassin Local Rules Dir = /usr/local/etc/MailScanner/mail/spamassassin
SpamAssassin Local Rules Dir =
# The default rules are searched for here, and in prefix/share/spamassassin,

View File

@ -1,43 +0,0 @@
--- ../MailScanner-4.22-5.old/etc/virus.scanners.conf Mon Aug 11 12:15:32 2003
+++ etc/virus.scanners.conf Mon Aug 11 12:36:06 2003
@@ -1,21 +1,21 @@
# This is a list of the names of the virus scanning engines, along with the
# filename of the command or script to run to invoke each one.
-sophos /opt/MailScanner/lib/sophos-wrapper
-f-prot /opt/MailScanner/lib/f-prot-wrapper
-mcafee /opt/MailScanner/lib/mcafee-wrapper
-rav /opt/MailScanner/lib/rav-wrapper
-kaspersky /opt/MailScanner/lib/kaspersky-wrapper
-kavdaemonclient /opt/MailScanner/lib/kavdaemonclient-wrapper
-panda /opt/MailScanner/lib/panda-wrapper
-f-secure /opt/MailScanner/lib/f-secure-wrapper
-clamav /opt/MailScanner/lib/clamav-wrapper
-trend /opt/MailScanner/lib/trend-wrapper
-antivir /opt/MailScanner/lib/antivir-wrapper
-inoculate /opt/MailScanner/lib/inoculate-wrapper
-inoculan /opt/MailScanner/lib/inoculan-wrapper
-command /opt/MailScanner/lib/command-wrapper
-nod32 /opt/MailScanner/lib/nod32-wrapper
-nod32-1.99 /opt/MailScanner/lib/nod32-wrapper
-bitdefender /opt/MailScanner/lib/bitdefender-wrapper
-sophossavi /bin/false
-none /bin/false
+sophos /usr/local/libexec/MailScanner/sophos-wrapper
+f-prot /usr/local/libexec/MailScanner/f-prot-wrapper
+mcafee /usr/local/libexec/MailScanner/mcafee-wrapper
+rav /usr/local/libexec/MailScanner/rav-wrapper
+kaspersky /usr/local/libexec/MailScanner/kaspersky-wrapper
+kavdaemonclient /usr/local/libexec/MailScanner/kavdaemonclient-wrapper
+panda /usr/local/libexec/MailScanner/panda-wrapper
+f-secure /usr/local/libexec/MailScanner/f-secure-wrapper
+clamav /usr/local/libexec/MailScanner/clamav-wrapper
+trend /usr/local/libexec/MailScanner/trend-wrapper
+antivir /usr/local/libexec/MailScanner/antivir-wrapper
+inoculate /usr/local/libexec/MailScanner/inoculate-wrapper
+inoculan /usr/local/libexec/MailScanner/inoculan-wrapper
+command /usr/local/libexec/MailScanner/command-wrapper
+nod32 /usr/local/libexec/MailScanner/nod32-wrapper
+nod32-1.99 /usr/local/libexec/MailScanner/nod32-wrapper
+bitdefender /usr/local/libexec/MailScanner/bitdefender-wrapper
+sophossavi /usr/bin/false
+none /usr/bin/false

View File

@ -1,72 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/ConfigDefs.pl Mon Aug 11 12:36:06 2003
@@ -154,9 +154,9 @@
# Check the first word of these for file existence
[Simple,File]
pidfile /var/run/MailScanner.pid
-spamassassinprefsfile /opt/MailScanner/etc/spam.assassin.prefs.conf
-SpamListDefinitions /opt/MailScanner/etc/spam.lists.conf
-VirusScannerDefinitions /opt/MailScanner/etc/virus.scanners.conf
+spamassassinprefsfile /usr/local/etc/MailScanner/spam.assassin.prefs.conf
+SpamListDefinitions /usr/local/etc/MailScanner/spam.lists.conf
+VirusScannerDefinitions /usr/local/etc/MailScanner/virus.scanners.conf
# Check these to ensure they are just numbers
[Simple,Number]
@@ -197,7 +197,7 @@
SpamAssassinDefaultRulesDir
SpamAssassinInstallPrefix
SpamStarsCharacter s
-TNEFExpander /opt/MailScanner/bin/tnef --maxsize=100000000
+TNEFExpander /usr/local/bin/tnef --maxsize=100000000
VirusScanners none # Space-separated list
#
@@ -246,23 +246,23 @@
WarnSenders 1 no 0 yes 1
[First,File]
-DeletedFilenameMessage /opt/MailScanner/etc/reports/en/deleted.filename.message.txt
-DeletedVirusMessage /opt/MailScanner/etc/reports/en/deleted.virus.message.txt
-DisinfectedReportText /opt/MailScanner/etc/reports/en/disinfected.report.txt
-inlinehtmlsig /opt/MailScanner/etc/reports/en/inline.sig.html
-inlinehtmlwarning /opt/MailScanner/etc/reports/en/inline.warning.html
+DeletedFilenameMessage /usr/local/share/MailScanner/reports/en/deleted.filename.message.txt
+DeletedVirusMessage /usr/local/share/MailScanner/reports/en/deleted.virus.message.txt
+DisinfectedReportText /usr/local/share/MailScanner/reports/en/disinfected.report.txt
+inlinehtmlsig /usr/local/share/MailScanner/reports/en/inline.sig.html
+inlinehtmlwarning /usr/local/share/MailScanner/reports/en/inline.warning.html
inlinespamwarning /etc/MailScanner/reports/en/inline.spam.warning.txt
-inlinetextsig /opt/MailScanner/etc/reports/en/inline.sig.txt
-inlinetextwarning /opt/MailScanner/etc/reports/en/inline.warning.txt
+inlinetextsig /usr/local/share/MailScanner/reports/en/inline.sig.txt
+inlinetextwarning /usr/local/share/MailScanner/reports/en/inline.warning.txt
languagestrings
-sendererrorreport /opt/MailScanner/etc/reports/en/sender.error.report.txt
-senderfilenamereport /opt/MailScanner/etc/reports/en/sender.filename.report.txt
-SenderRBLSpamReport /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt
-SenderSASpamReport /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt
-SenderBothSpamReport /opt/MailScanner/etc/reports/en/sender.spam.report.txt
-sendervirusreport /opt/MailScanner/etc/reports/en/sender.virus.report.txt
-StoredFilenameMessage /opt/MailScanner/etc/reports/en/stored.filename.message.txt
-StoredVirusMessage /opt/MailScanner/etc/reports/en/stored.virus.message.txt
+sendererrorreport /usr/local/share/MailScanner/reports/en/sender.error.report.txt
+senderfilenamereport /usr/local/share/MailScanner/reports/en/sender.filename.report.txt
+SenderRBLSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt
+SenderSASpamReport /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt
+SenderBothSpamReport /usr/local/share/MailScanner/reports/en/sender.spam.report.txt
+sendervirusreport /usr/local/share/MailScanner/reports/en/sender.virus.report.txt
+StoredFilenameMessage /usr/local/share/MailScanner/reports/en/stored.filename.message.txt
+StoredVirusMessage /usr/local/share/MailScanner/reports/en/stored.virus.message.txt
[First,Command]
Sendmail /usr/sbin/sendmail
@@ -317,7 +317,7 @@
UseSpamAssassin 0 no 0 yes 1
[All,File]
-#FilenameRules /opt/MailScanner/etc/filename.rules.conf
+#FilenameRules /usr/local/etc/MailScanner/filename.rules.conf
FilenameRules
FiletypeRules

View File

@ -1,10 +0,0 @@
--- ../MailScanner-4.22-5.old/lib/MailScanner/SystemDefs.pm Mon Aug 11 12:15:30 2003
+++ lib/MailScanner/SystemDefs.pm Mon Aug 11 12:36:06 2003
@@ -36,6 +36,6 @@
$global::rm = '/bin/rm';
$global::cp = '/bin/cp';
$global::cat = '/bin/cat';
-$global::sed = '/bin/sed';
+$global::sed = '/usr/bin/sed';
1;

View File

@ -5,7 +5,7 @@
/ ___ \| | | | | |___| |\ | | | | | |_| | |\ |
/_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_|
See PREFIX/share/doc/MailScanner/README.FreeBSD.port,
See %%PREFIX%%/share/doc/MailScanner/README.FreeBSD.port,
http://www.mailscanner.info, the man pages MailScanner and
MailScanner.conf for further instructions.
@ -21,4 +21,14 @@
.sample files instead of real .conf files and report
templates.
If you are upgrading your port you might consider
running
make renew-wrapper
make renew-autoupdate
make renew-reports
to update your virus-wrappers, autoupdates, reports and
languages.conf
*************************************************************************

View File

@ -1,12 +1,14 @@
@comment $FreeBSD$
bin/tnef
etc/MailScanner/MailScanner.conf.sample
etc/MailScanner/filename.rules.conf.sample
etc/MailScanner/filetype.rules.conf.sample
etc/MailScanner/rules/EXAMPLES
etc/MailScanner/rules/README
etc/MailScanner/rules/spam.whitelist.rules.sample
etc/MailScanner/spam.assassin.prefs.conf.sample
etc/MailScanner/spam.lists.conf.sample
etc/MailScanner/virus.scanners.conf
etc/MailScanner/virus.scanners.conf.sample
etc/rc.d/mailscanner.sh.sample
etc/rc.d/mta.sh.sample
lib/MailScanner/MailScanner.pm
@ -17,6 +19,8 @@ lib/MailScanner/MailScanner/Exim.pm
lib/MailScanner/MailScanner/EximDiskStore.pm
lib/MailScanner/MailScanner/Lock.pm
lib/MailScanner/MailScanner/Log.pm
lib/MailScanner/MailScanner/MCP.pm
lib/MailScanner/MailScanner/MCPMessage.pm
lib/MailScanner/MailScanner/Mail.pm
lib/MailScanner/MailScanner/Message.pm
lib/MailScanner/MailScanner/MessageBatch.pm
@ -45,8 +49,11 @@ libexec/MailScanner/bitdefender-wrapper.sample
libexec/MailScanner/clamav-autoupdate.sample
libexec/MailScanner/clamav-wrapper.sample
libexec/MailScanner/command-wrapper.sample
libexec/MailScanner/etrust-autoupdate.sample
libexec/MailScanner/etrust-wrapper.sample
libexec/MailScanner/f-prot-autoupdate.sample
libexec/MailScanner/f-prot-wrapper.sample
libexec/MailScanner/f-secure-autoupdate.sample
libexec/MailScanner/f-secure-wrapper.sample
libexec/MailScanner/inoculan-wrapper.sample
libexec/MailScanner/inoculate-wrapper.sample
@ -62,7 +69,10 @@ libexec/MailScanner/rav-autoupdate.sample
libexec/MailScanner/rav-wrapper.sample
libexec/MailScanner/sophos-autoupdate.sample
libexec/MailScanner/sophos-wrapper.sample
libexec/MailScanner/trend-autoupdate.sample
libexec/MailScanner/trend-wrapper.sample
libexec/MailScanner/update_virus_scanners
%%DATADIR%%/reports/cy+en/deleted.content.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cy+en/disinfected.report.txt.sample
@ -72,14 +82,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cy+en/inline.warning.html.sample
%%DATADIR%%/reports/cy+en/inline.warning.txt.sample
%%DATADIR%%/reports/cy+en/languages.conf.sample
%%DATADIR%%/reports/cy+en/sender.content.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.error.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.filename.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cy+en/sender.virus.report.txt.sample
%%DATADIR%%/reports/cy+en/stored.content.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.filename.message.txt.sample
%%DATADIR%%/reports/cy+en/stored.virus.message.txt.sample
%%DATADIR%%/reports/cz/deleted.content.message.txt.sample
%%DATADIR%%/reports/cz/deleted.filename.message.txt.sample
%%DATADIR%%/reports/cz/deleted.virus.message.txt.sample
%%DATADIR%%/reports/cz/disinfected.report.txt.sample
@ -89,15 +103,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/cz/inline.warning.html.sample
%%DATADIR%%/reports/cz/inline.warning.txt.sample
%%DATADIR%%/reports/cz/languages.conf.sample
%%DATADIR%%/reports/cz/sender.content.report.txt.sample
%%DATADIR%%/reports/cz/sender.error.report.txt.sample
%%DATADIR%%/reports/cz/sender.filename.report.txt.sample
%%DATADIR%%/reports/cz/sender.mcp.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.report.txt.sample
%%DATADIR%%/reports/cz/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/cz/sender.virus.report.txt.sample
%%DATADIR%%/reports/cz/stored.content.message.txt.sample
%%DATADIR%%/reports/cz/stored.filename.message.txt.sample
%%DATADIR%%/reports/cz/stored.virus.message.txt.sample
%%DATADIR%%/reports/de/README.1ST.sample
%%DATADIR%%/reports/de/deleted.content.message.txt.sample
%%DATADIR%%/reports/de/deleted.filename.message.txt.sample
%%DATADIR%%/reports/de/deleted.virus.message.txt.sample
%%DATADIR%%/reports/de/disinfected.report.txt.sample
@ -107,14 +125,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/de/inline.warning.html.sample
%%DATADIR%%/reports/de/inline.warning.txt.sample
%%DATADIR%%/reports/de/languages.conf.sample
%%DATADIR%%/reports/de/sender.content.report.txt.sample
%%DATADIR%%/reports/de/sender.error.report.txt.sample
%%DATADIR%%/reports/de/sender.filename.report.txt.sample
%%DATADIR%%/reports/de/sender.mcp.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.report.txt.sample
%%DATADIR%%/reports/de/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/de/sender.virus.report.txt.sample
%%DATADIR%%/reports/de/stored.content.message.txt.sample
%%DATADIR%%/reports/de/stored.filename.message.txt.sample
%%DATADIR%%/reports/de/stored.virus.message.txt.sample
%%DATADIR%%/reports/dk/deleted.content.message.txt.sample
%%DATADIR%%/reports/dk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/dk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/dk/disinfected.report.txt.sample
@ -124,14 +146,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/dk/inline.warning.html.sample
%%DATADIR%%/reports/dk/inline.warning.txt.sample
%%DATADIR%%/reports/dk/languages.conf.sample
%%DATADIR%%/reports/dk/sender.content.report.txt.sample
%%DATADIR%%/reports/dk/sender.error.report.txt.sample
%%DATADIR%%/reports/dk/sender.filename.report.txt.sample
%%DATADIR%%/reports/dk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.report.txt.sample
%%DATADIR%%/reports/dk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/dk/sender.virus.report.txt.sample
%%DATADIR%%/reports/dk/stored.content.message.txt.sample
%%DATADIR%%/reports/dk/stored.filename.message.txt.sample
%%DATADIR%%/reports/dk/stored.virus.message.txt.sample
%%DATADIR%%/reports/en/deleted.content.message.txt.sample
%%DATADIR%%/reports/en/deleted.filename.message.txt.sample
%%DATADIR%%/reports/en/deleted.virus.message.txt.sample
%%DATADIR%%/reports/en/disinfected.report.txt.sample
@ -141,14 +167,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/en/inline.warning.html.sample
%%DATADIR%%/reports/en/inline.warning.txt.sample
%%DATADIR%%/reports/en/languages.conf.sample
%%DATADIR%%/reports/en/sender.content.report.txt.sample
%%DATADIR%%/reports/en/sender.error.report.txt.sample
%%DATADIR%%/reports/en/sender.filename.report.txt.sample
%%DATADIR%%/reports/en/sender.mcp.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.report.txt.sample
%%DATADIR%%/reports/en/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/en/sender.virus.report.txt.sample
%%DATADIR%%/reports/en/stored.content.message.txt.sample
%%DATADIR%%/reports/en/stored.filename.message.txt.sample
%%DATADIR%%/reports/en/stored.virus.message.txt.sample
%%DATADIR%%/reports/es/deleted.content.message.txt.sample
%%DATADIR%%/reports/es/deleted.filename.message.txt.sample
%%DATADIR%%/reports/es/deleted.virus.message.txt.sample
%%DATADIR%%/reports/es/disinfected.report.txt.sample
@ -158,14 +188,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/es/inline.warning.html.sample
%%DATADIR%%/reports/es/inline.warning.txt.sample
%%DATADIR%%/reports/es/languages.conf.sample
%%DATADIR%%/reports/es/sender.content.report.txt.sample
%%DATADIR%%/reports/es/sender.error.report.txt.sample
%%DATADIR%%/reports/es/sender.filename.report.txt.sample
%%DATADIR%%/reports/es/sender.mcp.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.report.txt.sample
%%DATADIR%%/reports/es/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/es/sender.virus.report.txt.sample
%%DATADIR%%/reports/es/stored.content.message.txt.sample
%%DATADIR%%/reports/es/stored.filename.message.txt.sample
%%DATADIR%%/reports/es/stored.virus.message.txt.sample
%%DATADIR%%/reports/fr/deleted.content.message.txt.sample
%%DATADIR%%/reports/fr/deleted.filename.message.txt.sample
%%DATADIR%%/reports/fr/deleted.virus.message.txt.sample
%%DATADIR%%/reports/fr/disinfected.report.txt.sample
@ -175,14 +209,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/fr/inline.warning.html.sample
%%DATADIR%%/reports/fr/inline.warning.txt.sample
%%DATADIR%%/reports/fr/languages.conf.sample
%%DATADIR%%/reports/fr/sender.content.report.txt.sample
%%DATADIR%%/reports/fr/sender.error.report.txt.sample
%%DATADIR%%/reports/fr/sender.filename.report.txt.sample
%%DATADIR%%/reports/fr/sender.mcp.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.report.txt.sample
%%DATADIR%%/reports/fr/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/fr/sender.virus.report.txt.sample
%%DATADIR%%/reports/fr/stored.content.message.txt.sample
%%DATADIR%%/reports/fr/stored.filename.message.txt.sample
%%DATADIR%%/reports/fr/stored.virus.message.txt.sample
%%DATADIR%%/reports/hu/deleted.content.message.txt.sample
%%DATADIR%%/reports/hu/deleted.filename.message.txt.sample
%%DATADIR%%/reports/hu/deleted.virus.message.txt.sample
%%DATADIR%%/reports/hu/disinfected.report.txt.sample
@ -192,14 +230,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/hu/inline.warning.html.sample
%%DATADIR%%/reports/hu/inline.warning.txt.sample
%%DATADIR%%/reports/hu/languages.conf.sample
%%DATADIR%%/reports/hu/sender.content.report.txt.sample
%%DATADIR%%/reports/hu/sender.error.report.txt.sample
%%DATADIR%%/reports/hu/sender.filename.report.txt.sample
%%DATADIR%%/reports/hu/sender.mcp.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.report.txt.sample
%%DATADIR%%/reports/hu/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/hu/sender.virus.report.txt.sample
%%DATADIR%%/reports/hu/stored.content.message.txt.sample
%%DATADIR%%/reports/hu/stored.filename.message.txt.sample
%%DATADIR%%/reports/hu/stored.virus.message.txt.sample
%%DATADIR%%/reports/it/deleted.content.message.txt.sample
%%DATADIR%%/reports/it/deleted.filename.message.txt.sample
%%DATADIR%%/reports/it/deleted.virus.message.txt.sample
%%DATADIR%%/reports/it/disinfected.report.txt.sample
@ -209,14 +251,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/it/inline.warning.html.sample
%%DATADIR%%/reports/it/inline.warning.txt.sample
%%DATADIR%%/reports/it/languages.conf.sample
%%DATADIR%%/reports/it/sender.content.report.txt.sample
%%DATADIR%%/reports/it/sender.error.report.txt.sample
%%DATADIR%%/reports/it/sender.filename.report.txt.sample
%%DATADIR%%/reports/it/sender.mcp.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.report.txt.sample
%%DATADIR%%/reports/it/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/it/sender.virus.report.txt.sample
%%DATADIR%%/reports/it/stored.content.message.txt.sample
%%DATADIR%%/reports/it/stored.filename.message.txt.sample
%%DATADIR%%/reports/it/stored.virus.message.txt.sample
%%DATADIR%%/reports/nl/deleted.content.message.txt.sample
%%DATADIR%%/reports/nl/deleted.filename.message.txt.sample
%%DATADIR%%/reports/nl/deleted.virus.message.txt.sample
%%DATADIR%%/reports/nl/disinfected.report.txt.sample
@ -226,14 +272,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/nl/inline.warning.html.sample
%%DATADIR%%/reports/nl/inline.warning.txt.sample
%%DATADIR%%/reports/nl/languages.conf.sample
%%DATADIR%%/reports/nl/sender.content.report.txt.sample
%%DATADIR%%/reports/nl/sender.error.report.txt.sample
%%DATADIR%%/reports/nl/sender.filename.report.txt.sample
%%DATADIR%%/reports/nl/sender.mcp.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.report.txt.sample
%%DATADIR%%/reports/nl/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/nl/sender.virus.report.txt.sample
%%DATADIR%%/reports/nl/stored.content.message.txt.sample
%%DATADIR%%/reports/nl/stored.filename.message.txt.sample
%%DATADIR%%/reports/nl/stored.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.content.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/deleted.virus.message.txt.sample
%%DATADIR%%/reports/pt_br/disinfected.report.txt.sample
@ -243,14 +293,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/pt_br/inline.warning.html.sample
%%DATADIR%%/reports/pt_br/inline.warning.txt.sample
%%DATADIR%%/reports/pt_br/languages.conf.sample
%%DATADIR%%/reports/pt_br/sender.content.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.error.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.filename.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.mcp.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/pt_br/sender.virus.report.txt.sample
%%DATADIR%%/reports/pt_br/stored.content.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.filename.message.txt.sample
%%DATADIR%%/reports/pt_br/stored.virus.message.txt.sample
%%DATADIR%%/reports/ro/deleted.content.message.txt.sample
%%DATADIR%%/reports/ro/deleted.filename.message.txt.sample
%%DATADIR%%/reports/ro/deleted.virus.message.txt.sample
%%DATADIR%%/reports/ro/disinfected.report.txt.sample
@ -260,15 +314,19 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/ro/inline.warning.html.sample
%%DATADIR%%/reports/ro/inline.warning.txt.sample
%%DATADIR%%/reports/ro/languages.conf.sample
%%DATADIR%%/reports/ro/sender.content.report.txt.sample
%%DATADIR%%/reports/ro/sender.error.report.txt.sample
%%DATADIR%%/reports/ro/sender.filename.report.txt.sample
%%DATADIR%%/reports/ro/sender.mcp.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.report.txt.sample
%%DATADIR%%/reports/ro/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/ro/sender.virus.report.txt.sample
%%DATADIR%%/reports/ro/stored.content.message.txt.sample
%%DATADIR%%/reports/ro/stored.filename.message.txt.sample
%%DATADIR%%/reports/ro/stored.virus.message.txt.sample
%%DATADIR%%/reports/se/README.sample
%%DATADIR%%/reports/se/deleted.content.message.txt.sample
%%DATADIR%%/reports/se/deleted.filename.message.txt.sample
%%DATADIR%%/reports/se/deleted.virus.message.txt.sample
%%DATADIR%%/reports/se/disinfected.report.txt.sample
@ -278,14 +336,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/se/inline.warning.html.sample
%%DATADIR%%/reports/se/inline.warning.txt.sample
%%DATADIR%%/reports/se/languages.conf.sample
%%DATADIR%%/reports/se/sender.content.report.txt.sample
%%DATADIR%%/reports/se/sender.error.report.txt.sample
%%DATADIR%%/reports/se/sender.filename.report.txt.sample
%%DATADIR%%/reports/se/sender.mcp.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.report.txt.sample
%%DATADIR%%/reports/se/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/se/sender.virus.report.txt.sample
%%DATADIR%%/reports/se/stored.content.message.txt.sample
%%DATADIR%%/reports/se/stored.filename.message.txt.sample
%%DATADIR%%/reports/se/stored.virus.message.txt.sample
%%DATADIR%%/reports/sk/deleted.content.message.txt.sample
%%DATADIR%%/reports/sk/deleted.filename.message.txt.sample
%%DATADIR%%/reports/sk/deleted.virus.message.txt.sample
%%DATADIR%%/reports/sk/disinfected.report.txt.sample
@ -295,12 +357,15 @@ libexec/MailScanner/trend-wrapper.sample
%%DATADIR%%/reports/sk/inline.warning.html.sample
%%DATADIR%%/reports/sk/inline.warning.txt.sample
%%DATADIR%%/reports/sk/languages.conf.sample
%%DATADIR%%/reports/sk/sender.content.report.txt.sample
%%DATADIR%%/reports/sk/sender.error.report.txt.sample
%%DATADIR%%/reports/sk/sender.filename.report.txt.sample
%%DATADIR%%/reports/sk/sender.mcp.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.rbl.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.report.txt.sample
%%DATADIR%%/reports/sk/sender.spam.sa.report.txt.sample
%%DATADIR%%/reports/sk/sender.virus.report.txt.sample
%%DATADIR%%/reports/sk/stored.content.message.txt.sample
%%DATADIR%%/reports/sk/stored.filename.message.txt.sample
%%DATADIR%%/reports/sk/stored.virus.message.txt.sample
%%DOCSDIR%%/COPYING
@ -339,6 +404,11 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/linux.shtml
%%DOCSDIR%%/install/mailscanner.shtml
%%DOCSDIR%%/install/mcafee.shtml
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.55
%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.60
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.55
%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.60
%%DOCSDIR%%/install/mcp/index.html
%%DOCSDIR%%/install/mime-tools-patch.txt
%%DOCSDIR%%/install/mime-tools-patch2.txt
%%DOCSDIR%%/install/mime-tools-patch3.txt
@ -353,6 +423,7 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/install/tnef.shtml
%%DOCSDIR%%/install/zmailer.shtml
%%DOCSDIR%%/introduction.shtml
%%DOCSDIR%%/jobs
%%DOCSDIR%%/mailscanner_trans.gif
%%DOCSDIR%%/man/MailScanner.8
%%DOCSDIR%%/man/MailScanner.8.html
@ -367,15 +438,18 @@ libexec/MailScanner/trend-wrapper.sample
%%DOCSDIR%%/poetry.shtml
%%DOCSDIR%%/poweredby.google.gif
%%DOCSDIR%%/poweredby.transtec.gif
%%DOCSDIR%%/presentations.html
%%DOCSDIR%%/press.html
%%DOCSDIR%%/readme.shtml
%%DOCSDIR%%/reject.html
%%DOCSDIR%%/sobig.html
%%DOCSDIR%%/support.html
%%DOCSDIR%%/transtec.logo.gif
%%DOCSDIR%%/users.shtml
@dirrm share/nls/en_US.US-ASCII
@dirrm share/nls/POSIX
@dirrm %%DOCSDIR%%/man
@dirrm %%DOCSDIR%%/install/mcp
@dirrm %%DOCSDIR%%/install
@dirrm %%DOCSDIR%%/images
@dirrm %%DOCSDIR%%