At 05:33 PM 8/4/2002 +0300, Gheorghe Ardelean wrote:
>Having f-prot installed I've tried to use amavisd from ports, but i have
>the same failures as described previously in my email.
>I tried amavisd and amavisd-new with sendmail (but NO milter).
Use the milter version... faster, cleaner and I have found it to be more
reliable.
With f-prot, I added the following changes to amavisd
--- amavisd Mon Jul 15 14:04:14 2002
+++ amavisd.mdt Mon Jul 15 14:08:04 2002
@@ -379,7 +379,7 @@
$scanner_errors &= $errval;
do_log(2,$output);
if ($errval) {
- if ($errval == 3) {
+ if (($errval == 3) || ($errval == 8)) {
@virusname = ($output =~ /Infection: (.+)/g);
do_virus($output);
} else {
so that it sees heuristic matches.
In your .mc file, add
define(`_FFR_MILTER', `1')dnl
INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/amavis/amavis.sock, F=T,
T=S:1m;R:2m;E:2m')dnl
add
linux_enable="YES" to /etc/rc.conf
Then grab the amavisd snapshot from either Feb or April and build it with
milter support.
/usr/sbin/amavis-milter -D -p /var/amavis/amavis.sock
/usr/sbin/amavisd
Try it, it works really well.
---Mike
--------------------------------------------------------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, [EMAIL PROTECTED]
Providing Internet since 1994 www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message