From owner-freebsd-questions@FreeBSD.ORG Wed Jan 12 11:43:07 2005 Return-Path: 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 EB32016A4CE for ; Wed, 12 Jan 2005 11:43:07 +0000 (GMT) Received: from mxsf37.cluster1.charter.net (mxsf37.cluster1.charter.net [209.225.28.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EDF143D39 for ; Wed, 12 Jan 2005 11:43:07 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from mxip25.cluster1.charter.net (mxip25a.cluster1.charter.net [209.225.28.155])j0CBh6PT027425 for ; Wed, 12 Jan 2005 06:43:06 -0500 Received: from c66.191.67.211.static.dul.mn.charter.com (HELO [66.191.67.211]) (66.191.67.211) by mxip25.cluster1.charter.net with ESMTP; 12 Jan 2005 06:43:03 -0500 X-Ironport-AV: i="3.88,118,1102309200"; d="scan'208?sig'208"; a="173352506:sNHT33221386" In-Reply-To: <001701c4f864$170729e0$0400a8c0@satellite> References: <57ACF400-6453-11D9-A619-000D9333E43C@secure-computing.net> <001701c4f864$170729e0$0400a8c0@satellite> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-6-521442491" Message-Id: <1AC85B0D-648F-11D9-AD37-000D9333E43C@secure-computing.net> Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Wed, 12 Jan 2005 05:42:57 -0600 To: "dave" X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) cc: "Freebsd-Questions \(E-mail\)" Subject: Re: SA, Bayes, and You (erm, Me) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 11:43:08 -0000 --Apple-Mail-6-521442491 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Jan 11, 2005, at 11:03 PM, dave wrote: > Hi, > Can you tell me how you got to get bayes updated and trained and > those > headers? I'm using MailScanner which invokes sa and so forth and i am > not > seeing the detail nor am getting the results you are. > Thanks. > Dave. You can train the Bayes filter by using the sa-learn program. See man 1 sa-learn for more specific about how to use it. Basically, you take a minimum of 200 messages known to be spam (I use mbox format) and run it through such as: # sa-learn --showdots --mbox --spam /path/to/file You also need a minimum of 200 ham (non-spam) messages, using the following command (again, mbox format): # sa-learn --showdots --mbox --ham /path/to/ham/file SpamAssassin should learn on it's own and will begin invoking the Bayes filters once it's had the minimum of 200 messages of each spam/ham. If you want more accurate results, feed it more mail. I save spam I get and try to run a bunch of it through every few months, and I do the same with ham. HTH _______________________________________________________ Eric F Crist "I am so smart, S.M.R.T!" Secure Computing Networks -Homer J Simpson --Apple-Mail-6-521442491 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iEYEARECAAYFAkHlDUEACgkQRAAY9knOW+qaqQCcCcJt7jHQlac0Mmun4QOQXSqr 9yMAoJIqUTO2JLfVbFEyBi0npvgxWaan =uByr -----END PGP SIGNATURE----- --Apple-Mail-6-521442491--