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 1RX10z-00013X-Bd for garchives@archives.gentoo.org; Sun, 04 Dec 2011 01:37:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3770FE0486; Sun, 4 Dec 2011 01:37:04 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) by pigeon.gentoo.org (Postfix) with ESMTP id 5F758E0444 for ; Sun, 4 Dec 2011 01:35:52 +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 020B437ADA for ; Sat, 3 Dec 2011 20:35:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1322962552; bh=iEj67rueC3MHTFC+Xmi5kWBsQkEuCUikLflH6JbRJMc=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=me9OjFkfyXUr8nN69zlzsX6pT0e0DUCXKHVL8CViCeC38xTH2Vn5k3L4SImz5rw6Z 2CAJHk9MAm4yQVFIiJ+YjMPx3bA0JwGGBhLsegv2oq33a0JwUe86vIKNeKlxGDFo7y /NXowg1HKmRA4WlQzHFxFSEbmjl+jAcFbXP5sHtM= Message-ID: <4EDACE76.9060400@orlitzky.com> Date: Sat, 03 Dec 2011 20:35:50 -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: <4EDAA89F.3090308@orlitzky.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 725dd6c9-5fd3-453d-851b-2d07d14b8ce7 X-Archives-Hash: 7ba82d5e4afc593ef7162322b1d5e203 On 12/03/2011 07:59 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. > > Very cool. I found out clamscan and avgfree scan the filesystem so I > thought I should set it up, but if it's not necessary I won't bother. > All of my mail users are on Gentoo so do I need to bother having > clamav scan my incoming mail? Well, they aren't going to get infected with anything, but ClamAV could still keep the virus message (which is obviously unwanted) out of their inbox. There are also some third-party signatures[1] for ClamAV that catch scam/phishing mail. >>> 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). > > I just did some reading on postscreen but it doesn't sound like a > greylister. Should I use postscreen in addition to postgrey, or are > they substitutes for each other? > Postscreen isn't a greylist daemon per se, but it has the same effect if you enable the "deep protocol" tests. Once it gets past the initial greeting (into the "deep" stages), postscreen can no longer hand off the session to a real smtpd. So, even if the client passes all of the tests, postscreen will send it a "4xx try again." That's essentially greylisting. Postscreen, like Postgrey, keeps a database of good clients, so you shouldn't lose any functionality there. This is what makes the aforementioned 4xx strategy work: when the client reconnects, it bypasses postscreen entirely and goes to a real smtpd. I would make the switch when you have some free time. Postscreen is part of postfix, so it removes one dependency from your mail system. It also adds a couple of nice anti-spam features for free. And, if you ever decide to implement Amavis, postscreen makes the before-queue setup viable. >>> 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. > > Now that sounds like a hassle. Greylisting leaves me with about 50/50 > spam/legit mail and maybe incorporating postscreen I'll do even > better. Deleting spam in my inbox might be easier than dealing with > false positives and managing a quarantine. You should be able to do a lot better than that with just postscreen and postfix. If you try to implement postscreen, post your main.cf over on postfix-users for review. The built-in restrictions combined with a few RBLs should get you well below 50/50. Plus, if you still get too much spam, you'll already have postscreen in place and that will make adding amavisd-new that much easier. [1] http://www.sanesecurity.com/