diff options
author | netchild <netchild@FreeBSD.org> | 2003-09-24 13:47:38 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2003-09-24 13:47:38 +0000 |
commit | c1e1410f89b7e88aec41ac31e16eb76512c36707 (patch) | |
tree | e86721ca47461fae5d2fbac4a55001c9255f9c47 /security/antivir-milter/files | |
parent | 4b4e6c79b02c2caba48cbf6ed296582f8f85c774 (diff) | |
download | FreeBSD-ports-c1e1410f89b7e88aec41ac31e16eb76512c36707.zip FreeBSD-ports-c1e1410f89b7e88aec41ac31e16eb76512c36707.tar.gz |
Add AntiVir Milter, a mail virusscanner using the Sendmail Mail Filter API.
This is a commercial stand-alone solution written in C not a PERL script +
myriads of dependencies + some AV...
Licenses for private (individual, non-commercial) use, e.g. for protecting
your family's home network, can be applied for free of charge.
Submitted by: Marius Strobl <marius@alchemy.franken.de>
Diffstat (limited to 'security/antivir-milter/files')
-rw-r--r-- | security/antivir-milter/files/antivirupdater.sh | 3 | ||||
-rw-r--r-- | security/antivir-milter/files/patch-etc::avmilter.conf | 85 | ||||
-rw-r--r-- | security/antivir-milter/files/patch-init::rc.avmilter | 45 |
3 files changed, 133 insertions, 0 deletions
diff --git a/security/antivir-milter/files/antivirupdater.sh b/security/antivir-milter/files/antivirupdater.sh new file mode 100644 index 0000000..79d2ed7 --- /dev/null +++ b/security/antivir-milter/files/antivirupdater.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +%%PREFIX%%/AntiVir/antivir -C %%PREFIX%%/etc/antivir.conf --home-dir=%%PREFIX%%/AntiVir --update diff --git a/security/antivir-milter/files/patch-etc::avmilter.conf b/security/antivir-milter/files/patch-etc::avmilter.conf new file mode 100644 index 0000000..34a6ed3 --- /dev/null +++ b/security/antivir-milter/files/patch-etc::avmilter.conf @@ -0,0 +1,85 @@ +--- etc/avmilter.conf.orig Sun Sep 21 19:07:51 2003 ++++ etc/avmilter.conf Sun Sep 21 19:25:13 2003 +@@ -12,8 +12,8 @@ + # ------------------------------------------------------------------------ + # AntiVir Milter will run as the specified user and group. + +-# User uucp +-# Group uucp ++User daemon ++Group daemon + + + # ------------------------------------------------------------------------ +@@ -42,7 +42,7 @@ + # AntiVirDir: The antivir 'library' directory, where the VDF, + # the key, and some other files are stored. + +-# AntiVirDir /usr/lib/AntiVir ++AntiVirDir %%PREFIX%%/AntiVir + + + # ------------------------------------------------------------------------ +@@ -66,7 +66,7 @@ + # Select the directory and binary of sendmail and the arguments how to + # call sendmail. + +-# ForwardTo /usr/lib/sendmail -oem -oi ++ForwardTo /usr/sbin/sendmail -oem -oi + + + # ------------------------------------------------------------------------ +@@ -93,7 +93,7 @@ + # Block mails which are coded as a fragmented message. + # "Message Fragmentation and Reassembly" (RFC2046, section 5.2.2.1). + +-# BlockFragmentedMessage NO ++# BlockFragmentedMessage NO + + + # ------------------------------------------------------------------------ +@@ -118,7 +118,7 @@ + # ------------------------------------------------------------------------ + # User name of sender of virus alerts, if virus was found in a mail. + +-# VirusAlertsUser AntiVir ++VirusAlertsUser MAILER-DAEMON + + + # ------------------------------------------------------------------------ +@@ -169,7 +169,7 @@ + # If BlockSuspiciousArchive is YES, stop delivery of mails + # containing archives if MaxRecursionDepthInArchive has been reached. + +-# BlockSuspiciousArchive NO ++# BlockSuspiciousArchive NO + + + # ------------------------------------------------------------------------ +@@ -179,7 +179,7 @@ + # If BlockEncryptedArchive is YES, stop delivery of mails + # containing encrypted files in an archive. + +-# BlockEncryptedArchive NO ++# BlockEncryptedArchive NO + + + # ------------------------------------------------------------------------ +@@ -188,7 +188,7 @@ + # to the header of checked mail. E.g.: "X-AntiVirus: Checked by ..." + # This option is only available in commercial mode. + +-# AddXHeader YES ++# AddXHeader YES + + + # ------------------------------------------------------------------------ +@@ -203,7 +203,7 @@ + # ScanTimeout specifies the scan time of mail, in seconds, when to stop + # scanning of mails. + +-# ScanTimeout 300 ++# ScanTimeout 300 + + + # ------------------------------------------------------------------------ diff --git a/security/antivir-milter/files/patch-init::rc.avmilter b/security/antivir-milter/files/patch-init::rc.avmilter new file mode 100644 index 0000000..92d27def --- /dev/null +++ b/security/antivir-milter/files/patch-init::rc.avmilter @@ -0,0 +1,45 @@ +--- init/rc.avmilter.orig Sun Sep 21 19:51:22 2003 ++++ init/rc.avmilter Sun Sep 21 20:22:38 2003 +@@ -14,20 +14,27 @@ + + case "$1" in + start) +- echo "Starting AntiVir Milter." +- /usr/sbin/avmilter -p inet:3333@localhost ++ if [ -x %%PREFIX%%/sbin/avmilter ]; then ++ umask 0077 ++ rm -f %%PREFIX%%/AntiVir/avmilter.sock ++ %%PREFIX%%/sbin/avmilter \ ++ -C %%PREFIX%%/etc/avmilter.conf \ ++ -p local:%%PREFIX%%/AntiVir/avmilter.sock ++ umask 0022 ++ echo -n " antivir-milter" ++ fi + ;; + stop) +- echo -n "Shutting down AntiVir Milter." +- killall -TERM /usr/sbin/avmilter +- echo ++ killall -TERM avmilter ++ rm -f %%PREFIX%%/AntiVir/avmilter.sock ++ echo -n " antivir-milter" + ;; + restart) + "$0" stop + "$0" start + ;; + status) +- if [ -z "$(ps axw | grep "/usr/sbin/avmilter" | grep -v grep)" ] ++ if [ -z "$(ps axw | grep "avmilter" | grep -v grep)" ] + then + echo "FAILED avmilter is not running!" + else +@@ -35,7 +42,7 @@ + fi + ;; + *) +- echo "Usage: $0 {start|stop|restart|status}" ++ echo "Usage: `basename $0` {start|stop|restart|status}" >&2 + exit 1 + esac + |