From owner-freebsd-questions@FreeBSD.ORG Tue Apr 3 21:04:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A214716A404 for ; Tue, 3 Apr 2007 21:04:24 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 664D213C45B for ; Tue, 3 Apr 2007 21:04:24 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 2E29421170C; Tue, 3 Apr 2007 17:04:28 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 03 Apr 2007 17:04:24 -0400 X-Sasl-enc: 81gi8pQWPgGa0Yz+ULDV6sko19y7vPh4z0scsi3WqAo1 1175634264 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id 38ECD1833D; Tue, 3 Apr 2007 17:04:24 -0400 (EDT) In-Reply-To: <68353.24668.qm@web25010.mail.ukl.yahoo.com> References: <68353.24668.qm@web25010.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <22A7ECE1-3689-4181-A80E-E35F11309D37@goldmark.org> Content-Transfer-Encoding: 7bit From: Jeffrey Goldberg Date: Tue, 3 Apr 2007 16:04:22 -0500 To: Robert Davison X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: Saved Email - Spamassassin 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: Tue, 03 Apr 2007 21:04:24 -0000 On Apr 3, 2007, at 3:20 PM, Robert Davison wrote: > I'm running an email server using Sendmail on FreeBSD 6.2, using > Spamassassin. > My question may be simple, but once sendmail has delieverd its > mail to the user, where is it stored ? Typically it will be in /var/mail/$USER > Is each email stored as an individual file ? No. Unless you configure things otherwise, mail will be stored in "unix" (AKA "mbox") format with one file per user. > I see that under my /home/'each users' directory I have a mbox > file. Once open it contains email messages. However, I note that > these do not tie up with what is in my inbox through my webmail > client. Some messages exist in the mbox file but not my inbox. Some mail clients, like "mail", will move messages from /var/mail/ $USERNAME to ~/mbox. Pine also does this under default configurations. So the "problem" appears to be that your webmail system (what is it?) is only looking in /var/mail and note for mbox files in your home directory. Chances are it can be configured to look for both. If not, then you need to be careful to only read your mail using one system. Personally, I prefer setting up an IMAP server. IMAP has all of the advantages of webmail without the disadvantages. > Is this what I should be looking at. > > I ask because I want to train my Bayes filter under spamassassin > using the > > sa-learn --spam command, and want to be sure i'm running it on > the right directory and or files I suggest that you get your mail delivery and access sorted out before you try to set up sa-learn. Otherwise, you will find yourself pulling the ground out from underneath the Bayes filtering. Cheers, -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/