[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [vps-mail] Bayesian AND BlackLists



Lang,
Thanks. The --mbox helped a lot in getting my emails logged. Now, in trying
to get the SA to work on specific users on the VPS2, I'm getting the paths
scrambled and need some more help. I have SA installed for specific users
rather than sitewide. When I do a sa-learn --spam --mbox
/home/jimsmith/learnspam, it is updating that info in the root/.spamassassin
path instead of the /home/jimsmith/.spamassassin. I moved the updated
bayes_seen and bayes_toks files from there to my
/home/jimsmith/.spamassassin folder but it still isn't filtering. I've tried
some hit/miss tries with the --configpath=/home/jimsmith/.spamassassin/ and
such but so far haven't hit the right combination.

So, my questions are:
1. How do I do sa-learn --spam --mbox /home/jimsmith/learnspam where it uses
that path instead of the root path?
2. How do I get the SA to use the user_prefs and those tokens in the
/home/jimsmith/.spamassassin/ folder instead of looking for them in the
root/.spamassassin folder?

Thanks,

Jim Smith

 --------------------------------------------------------
           Jim Smith, Blarneystone, LLC.
  Website Design, Hosting, Development & Enhancement
   E-MAIL:      jimsmith@xxxxxxxxxxxxxxxx
   WEBSITE:     http://www.blarneystone.com
 --------------------------------------------------------


> -----Original Message-----
> From: owner-vps-mail@xxxxxxxxxxxx [mailto:owner-vps-mail@xxxxxxxxxxxx]On
> Behalf Of Lang Zerner
> Sent: Wednesday, December 24, 2003 10:08 PM
> To: vps-mail@xxxxxxxxxxxx
> Subject: RE: [vps-mail] Bayesian AND BlackLists
>
>
> If your IMAP folder is stored as a single file, it's probably in mbox
> format, so I think you probably need to use the --mbox switch
> with sa-learn:
>
>
> sa-learn --spam --mbox /home/jimsmith/learnspam
>
> sa-learn --ham --mbox /home/jimsmith/learnham
>
> That tells sa-learn that the target file is a sequence of individual
> messages stored as a single mbox file.
>
> > -----Original Message-----
> > From: owner-vps-mail@xxxxxxxxxxxx
> > [mailto:owner-vps-mail@xxxxxxxxxxxx] On Behalf Of Jim Smith
> > Sent: Wednesday, December 24, 2003 9:54 AM
> > To: vps-mail@xxxxxxxxxxxx
> > Subject: RE: [vps-mail] Bayesian AND BlackLists
> >
> >
> > Thanks for all the info. I think I've figured out what was
> > wrong and will
> > share it in case others are at the
> > "stumble-around-in-the-dark" level that I
> > am.
> >
> > The default install on VPS2 for SA is version 2.43. Bayes
> > doesn't work until
> > version 2.5ish. We just did an unsanctioned installation of
> > version 2.61.
> > Now I can see the man sa-learn and others that people were
> > talking about
> > (not available in the older version).
> >
> > Since my default email is Outlook (don't ask <sigh>), I
> > forgot that I could
> > set up IMAP folders, so I've now added my IMAP folders. I
> > dragged over a
> > thousand of my recent good emails from my inbox to a learnham
> > folder that I
> > set up in my IMAP folders and a couple of thousand spams into
> > a learnspam
> > folder. I then ran "sa-learn --spam /home/jimsmith/learnspam" and
> > "sa-learn --ham /home/jimsmith/learnham" to "teach" the Bayes filter.
> >
> > The sa-learn --ham /home/jimsmith/learnham kept erroring out
> > with an out of
> > memory error (likely a few big attachments in my ham file). I
> > tried the
> > unlimit command but still had the same problem. I split that
> > folder into
> > learnham and learnham2 and ran it on each and got what I
> > assume is success.
> > The resultant message each time when I ran spam or ham
> > learning commands on
> > files with over 1000 messages was:
> > "Learned from 1 message(s) (1 message(s) examined)."
> > I thought it only looked at 1 message in that file but, in
> > looking at the
> > tokens it appears that it did the entire group of emails
> > (someone let me
> > know if I'm wrong).
> >
> > I'm still getting spams in my inbox regularly so I don't know
> > if the bayes
> > filter is making an impact or not yet (still too early). When
> > I get spams in
> > my inbox now, I empty my learnspam file and then I move the
> > misdirected spam
> > to the learnspam file and telnet in and run "sa-learn --spam
> > /home/jimsmith/learnspam" again to add those to the database.
> >
> > With well over 1000 spam and ham having been learned, I'd hope that I
> > wouldn't see very many spams in my inbox. I'll have a better
> > grip after
> > running it for a while.
> >
> > Meantime, if anyone sees anything that I've done wrong let me
> > know so others
> > don't repeat my mistakes (and so I can fix them).
> >
> > Thanks and happy holidays to everyone as appropriate.
> >
> > Jim Smith
> >
> >
> >  --------------------------------------------------------
> >            Jim Smith, Blarneystone, LLC.
> >   Website Design, Hosting, Development & Enhancement
> >    E-MAIL:      jimsmith@xxxxxxxxxxxxxxxx
> >    WEBSITE:     http://www.blarneystone.com
> >  --------------------------------------------------------
> >
> >
> > > -----Original Message-----
> > > From: owner-vps-mail@xxxxxxxxxxxx
> > [mailto:owner-vps-mail@xxxxxxxxxxxx]On
> > > Behalf Of anon
> > > Sent: Thursday, December 18, 2003 10:11 AM
> > > To: vps-mail@xxxxxxxxxxxx
> > > Subject: Re: [vps-mail] Bayesian AND BlackLists
> > >
> > >
> > > Jim Smith wrote:
> > > > I just did a vinstall spamassassin and it looks like the installed
> > > > version is 2.43.
> > >
> > > I have 2.55 - you need to look at the spamassassin.org site
> > to see when
> > > exactly they added the Bayes stuff (or maybe Scott will
> > chime in here)
> > > but I think it was 2.54!
> > >
> > > > When I swapped from VPS1 to VPS2, my quantity of spams noticeably
> > > > increased which, from reading here and on ProviderTalk,
> > seems to be
> > > > the norm.
> > >
> > > Not for me it wasn't.
> > >
> > > > I like 'simple'. You are correct that I'm not using DNSBL
> > unless I'm
> > > > not aware of it. I checked Google and got 6000 hits to get DNSBL
> > > > started. Can you give me, or point me to some "fairly
> > simple' steps
> > > > for getting it up and running?
> > > I wish I could, but I'm sure someone else can give a more
> > precise answer.
> > >
> > >
> > > > Thanks so much for your reply. I hope my incessant
> > questions aren't
> > > > what made your PC lock up <grin>.
> > >
> > > I try to put back some of the energy I have gained from
> > people helping
> > > me here and elsewhere.
> > >
> > > #cd /etc/mail
> > >
> > > The file you need to modify is xyz.securesites.net.mc (assuming
> > > xyz.securesites.net is your server name)
> > >
> > > First SAVE A COPY of the existing file.
> > >
> > > In that file you find "DNS based black hole lists" near the
> > top. All of
> > > this part is commented out. In the file "dnl something dnl"  means
> > > "Discard to New Line" so any line beginning with dnl is a comment.
> > >
> > > As an example you can add
> > >
> > > FEATURE(delay_checks)dnl
> > > FEATURE(`dnsbl', `sbl.spamhaus.org', `Rejected - see
> > > http://www.spamhaus.org/SBL')dnl
> > >
> > > the above should be on 2 lines, not three.
> > >
> > > Go look in http://www.sendmail.org at the docs
> > > there that deal with DNSBL.
> > >
> > > after adding the two lines to the file, do this
> > > make
> > > make install
> > > make restart
> > >
> > > I hope I haven't forgotten half the facts. You need to try
> > to look this
> > > stuff up in sendmail and VPS docs.
> > >
> > > hth
> > >
> > >
> > ======================================================================
> > > This is <vps-mail@xxxxxxxxxxxx>
> > <http://www.perlcode.org/lists/>
> > > Before posting a question,
> > please search the archives (see above URL).
> >
> > ======================================================================
> > This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
> > Before posting a question, please search the archives (see above URL).
> >
>
>
>
> ======================================================================
> This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
> Before posting a question, please search the archives (see above URL).

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: