From owner-freebsd-questions@FreeBSD.ORG Mon Jan 16 02:17:44 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CD1116A41F for ; Mon, 16 Jan 2006 02:17:44 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9535243D45 for ; Mon, 16 Jan 2006 02:17:43 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id k0G2GVHZ048761; Sun, 15 Jan 2006 20:16:54 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <43CB01F4.80202@daleco.biz> Date: Sun, 15 Jan 2006 20:16:20 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051026 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frank Staals References: <43C93519.1040309@gmx.net> In-Reply-To: <43C93519.1040309@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Mail filtering at server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2006 02:17:44 -0000 Frank Staals wrote: > Hey, > > I'm running FreeBSD 5-stable and I'm using the > system as mailserver, so I set up sendmail using > this guide: > > http://www.puresimplicity.net/~hemi/freebsd/sendmail.html > > as imap server I'm using imap-uw. Now I would like to do the following: > > 1) I would like to get all mail from questions@freebsd.org > in a seperate directory. Currently I do this by filtering my > mail in the mailclient ( Thunderbird ). The directory it uses > for this is currently ~/mail/Questions/ so I would like to keep > that, how can I do this ? Can I add this to /etc/mail/access ? > what would then be the syntax ? > > 2) I would also like to filter my mail for spam, again: > currently I set up thunderbird to do this: the mail > marked as spam/junk dissapears into the junk folder: > ( ~/mail/junk ) What is the best way to set this up ? > can this be done by sendmail itself or should I install > an other program from the portstree > > Thanks in advance, > First question: what's wrong with the way TBird does it? (Sorry, that's the "consultant" in me coming out....) It does seem like you want whatever you use to do it in the same way that it's currently being done, so why change? In particular, your (2) above is an area of little consensus; about the only thing most people agree on is that spammers should have *some* body part removed, but we can't even agree which one, much less exactly how to handle their um, "product". Some argue that spam should not be processed by your MTA at all; this has resulted in "blacklisting" and "greylisting". Others figure that an automatic "trashing" of the spam after receipt is OK. First, decide which you are/want to be. Sendmail has, IIRC, a built in way to check RealTime blackhole DNS lists. Any farther than that, you get into Milter (Mail fILTER) or SpamAssassin (as mentioned previously) or Amavis +SpamAssassin, or ..., or ... (there are several ways to skin the cat). Quite possibly, the best question for you ATM is: are you protecting just yourself from spam, or are others going to be affected by what you do to your SendMail? Then, do some research and reading on the problem. I've tried SendMail+Amavis+SpamAssassin with some success. One big issue for me: time to administer the server, in particular the "learning curve" phase. I've also done some other tricks, like listing IP blocks against sendmail in /etc/hosts.allow; but this has gotten me into trouble as, occasionally, international correspondents (like here on the lists) ended up "blocked" by my MTA. So, good luck! and, "to each his own". Kevin Kinsey -- Love is the delusion that one woman differs from another. -- H. L. Mencken