From owner-freebsd-hackers Sun Aug 4 8:11:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7742737B400 for ; Sun, 4 Aug 2002 08:11:19 -0700 (PDT) Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7830143E42 for ; Sun, 4 Aug 2002 08:11:18 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house.sentex.net (fcage [192.168.0.2]) by cage.simianscience.com (8.12.5/8.12.3) with ESMTP id g74FBFjr000519; Sun, 4 Aug 2002 11:11:16 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020804110156.0570a000@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 04 Aug 2002 11:13:37 -0400 To: Gheorghe Ardelean From: Mike Tancsa Subject: Re: anyone running amavis and sendmail on 4.6-STABLE? Cc: freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavis-20020220 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message