From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RWyVW-0001SU-F1 for garchives@archives.gentoo.org; Sat, 03 Dec 2011 22:56:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4448521C054; Sat, 3 Dec 2011 22:56:14 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) by pigeon.gentoo.org (Postfix) with ESMTP id 22A6D21C057 for ; Sat, 3 Dec 2011 22:54:26 +0000 (UTC) Received: from [172.17.29.6] (unknown [65.213.236.242]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id 5F74037AFA for ; Sat, 3 Dec 2011 17:54:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1322952865; bh=+eRYcDXWdM9X89ZjiVnhEQKiAj3DOc+6yx89chuSpp0=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=SXZqqJ3MU7HCNvn/0/EcPX44TM0uY1aH+Cr7+2N/JzvLyDs6JA7fMEZjZG76R82UC Y+b3/iWPhJp58O9ni4K2f6u5AhIycETDTaMj6Tz0YfVBUM6craaTwXz7607Enp3P2A Wn7p2t1h0kGTZWZg+ljmNJo+y9ZiMHGkM6G1+u8I= Message-ID: <4EDAA89F.3090308@orlitzky.com> Date: Sat, 03 Dec 2011 17:54:23 -0500 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111202 Thunderbird/8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] clamav and spamassassin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 5424163b-ad11-46b4-ae12-561fa9905591 X-Archives-Hash: 2b19ea8473aede627b58002021009d7a On 12/03/2011 02:52 PM, Grant wrote: > I haven't set up any antivirus measures on my Gentoo systems so I > think I should. Is clamav run as a scheduled filesystem scanner on > each system and as an email scanner on the mail server all that's > necessary? Nobody (as far as I know?) scans linux filesystems unless there's a legal requirement or the files might wind up on a Windows box. > I'm currently greylisting email to prevent spam from getting through. > It catches a lot, but more and more gets through. I'm not using any > mailfilters now and If I set up a clamav mailfilter I think I may as > well set up a spamassassin mailfilter to take the place of > greylisting. Is this the best guide for clamav and spamassassin: SpamAssassin shouldn't take the place of greylisting; they reject different stuff. Keep the greylisting unless the delays bother you, but use postscreen to do it (see below). > http://www.gentoo.org/doc/en/mailfilter-guide.xml > > Could I run into any problems with clamav or spamassassin that might > make we wish I hadn't implemented them? Yeah. The first is false positives. The second, related problem is that you'll have to manage a quarantine unless you stick amavisd-new in front of the postfix queue. It's in that respect that the tutorial is outdated; otherwise, it looks good (I just skimmed it). There is great benefit to the before-queue setup: mail will never disappear. Senders either get a rejection, or the mail is delivered. With the after-queue setup, you can no longer reject or else you'll be backscattering. So, you either deliver the spam, or you quarantine it (very bad if it's a false positive). The downside is that you use more resources: one amavisd-new per connection. However, the addition of postscreen to postfix has largely ameliorated this. Since postscreen rejects most of the junk, amavis only gets started for smtpd sessions that are likely to succeed. The easiest way to migrate is through incremental improvement. We used to use a system like the one in that guide. I enabled postscreen over the course of a week, and retired postgrey, which we had been using for greylisting. Once that was working properly, I simply dropped the content_filter in favor of smtpd_proxy_filter to move amavis in front of the queue.