Web Hosting Forum | Lunarpages

Author Topic: How-to: Train SpamAssassin - Updated April 27, 2010  (Read 189554 times)

Offline Peter Florance

  • Trekkie
  • **
  • Posts: 10
    • http://www.firstfives.org
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #270 on: August 11, 2010, 02:34:23 PM »
Thanks to some help from Ian, I have the SA Trainer script running and have processed over 200 ham and spam emails.

Q: How do I know SA is using the results? Seems on one of my accounts on my domain,  the spam traffic has dropped drastically. But not my personal account.

Thanks for any insights.


Offline Peter Florance

  • Trekkie
  • **
  • Posts: 10
    • http://www.firstfives.org
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #271 on: August 17, 2010, 01:01:50 PM »
Thanks to some help from Ian, I have the SA Trainer script running and have processed over 200 ham and spam emails.

Q: How do I know SA is using the results? Seems on one of my accounts on my domain,  the spam traffic has dropped drastically. But not my personal account.

Thanks for any insights.



Do I understand that if SpamAssassin is using BAYES that it will create the spam folder (for that user)  when it first assigned a spam score to an email? I've trained 475 of each and still don't have a spam box.

Help!

Thanks!

Offline crazybass2

  • Newbie
  • *
  • Posts: 2
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #272 on: November 01, 2010, 03:33:09 PM »
I've been using SpamAssassin for years, but recently found this script!  Everything I've seen looks great!  :happy: I do have a couple questions though.

I used the script builder selecting the option for "low intervension" so that my multiple email accounts (multi-users) can forward spam/ham to a general account.  I've noticed when I do this that the fowarded emails get dumped into the "mailbox-name/new" folder.  When I run the script, it returns only that "mailbox-name/cur" has been checked with 0 results for Spam/Ham.  I took a look at the code (I know a few different languages, but Perl is not my forte) and it appears to only check the "cur" folder and ignores the "new" folder.  How can I modify the code or my cpanel settings to correct this?

Additionally, since I'm having my users forward emails to the spam/ham boxes, is it acceptable to have multiple spam/ham emails forwarded together as opposed to forwarding each individual spam/ham? 

Thanks in advance for response.
Mike


Offline webdiva

  • Trekkie
  • **
  • Posts: 19
    • http://www.webdiva4hire.com
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #273 on: August 24, 2011, 04:02:40 PM »
I  sent Ian an email and haven't heard back ... is he still active?

I need some help with the spamassin ... I run the script and get this message (where "mydomain" is a substitute for my actual domain)

Autodetected mail storage as Maildir; you could speed up this script slightly if you configure $mail_format in the script to "Maildir"

Training SpamAssassin for mydomain.com:
Checking /home/user/mail/mydomain/user/.scan-spam/cur/ to learn SPAM: Learned tokens from 0 message(s) (1 message(s) examined)
Checking /home/user/mail/mydomain/user/.scan-ham/cur/ to learn HAM: Learned tokens from 0 message(s) (0 message(s) examined)

Am I supposed to be sending everything to the account I set up for all this rather than expecting the script to "learn" from the scan-spam folder in my user folder?

Thanks for help, anyone.

Offline Peter Florance

  • Trekkie
  • **
  • Posts: 10
    • http://www.firstfives.org
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #274 on: December 06, 2012, 08:34:43 AM »
For some reason, I'm starting to get a lot of spam from the same source. Even though I've had the script examine dozens of them, they still score pretty low (under 3 and sometimes as little as 1)

I'm assuming nothing has changed with SpamAssassin AFA Bayes?


Offline w98

  • Galactic Royalty
  • *****
  • Posts: 443
    • http://iandouglas.com
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #275 on: February 06, 2014, 08:16:25 PM »
Hey all, I'm still actively supporting this script nearly a decade later! :thumb:

The script is up to v4.02 and has a nicer layout and some links to documentation and a live support option through Google Helpouts if you're really stuck. There's also a link on the new script's HTML output to contact me directly via Email.

Build your own script: http://iandouglas.com/sa-trainer/
Learn the history and how to configure it yourself: http://iandouglas.com/spamassassin-trainer/

Cheers,
Ian Douglas

Offline dwaynnyt

  • Intergalactic Cowboy
  • *****
  • Posts: 64
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #276 on: February 15, 2014, 11:36:22 AM »
On top of this, I was also looking to see if there's a video tutorial. Is there one available?

Offline w98

  • Galactic Royalty
  • *****
  • Posts: 443
    • http://iandouglas.com
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #277 on: February 15, 2014, 03:24:14 PM »
No, I've never made a video tutorial on setting it up. I've written up pretty clear instructions, and if the "build your own" script doesn't do the job, you can contact me for personal help.

Offline toyboy

  • Newbie
  • *
  • Posts: 4
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #278 on: May 30, 2014, 11:33:27 AM »
what if we're a small company just trying to deal with business and don't have an IT person, in fact don't have any employees at all, and don't have the time or the inclination to learn scripts and other sorts of computer administrative things, and have tried for months to deal with a growing spam problem? the other day tech support "rebooted" spam assassin and then when that had no effect did it again, and also my email, and the result was getting some 15+ spam in my inbox (where before it had been zero or one or two) in less than a 12 hour period. they claim no coincedance, and throw a bunch of data at me. i'm at wits end.
their main response is to purchase MX, without telling me anything more about it than "it is better" or "it is stronger". the cost isn't that big a deal, but considering the way spam assassin has become gradually inadequate, and considering that tech support simply writes it off as being due to "changes" in technology or people (whatever that means), i'm not inclined to believe that switching to this other software is the solution. OR that it will also become ineffective.

so, for someone that couldn't even get his mind around Fortran back in 1972, and doesn't really want to become a programmer at age 60, i'd appreciate hearing other options to deal with spam. i'm wondering whether my reliance on webmail is part of the problem (it's convenient) and i'd be better off going back to using email software on my own computers.

sorry if i sound like i'm ranting. it's been a ridiculous ride and battle and i'm tired of dealing with both spam and lunarpages support.

Offline favcat

  • Trekkie
  • **
  • Posts: 15
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #279 on: October 16, 2014, 12:30:44 PM »
I set up this script a couple of months ago and while the script is working fine and processing the spam messages.

Spam Assassin is not getting much smarter.  I am getting the same spam emails over and over and doesn't matter how many times the tokens are looked at these emails are still not getting marked as spam.   

Anyone had problem with spam assassin not learning properly?

Offline w98

  • Galactic Royalty
  • *****
  • Posts: 443
    • http://iandouglas.com
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #280 on: September 16, 2015, 08:59:03 AM »
Hey all,

I've had a lot of support questions about the script not finding SpamAssassin on the LunarPages servers; I think cPanel might have moved the typical installation location from the PATH environment, so I'll be issuing an update soon to attempt to find the new trainer executable.

Also, for those that have v4, the Google Helpouts links haven't worked since Google shut down the support tool back in April 2015 so the next version will also remove those links from the output.

Offline bakdong

  • Trekkie
  • **
  • Posts: 19
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #281 on: September 17, 2015, 12:31:39 AM »
If it's any help, Ian, the spamassassin scripts on my server are found here:

/usr/local/cpanel/3rdparty/bin/

All the best.

Offline w98

  • Galactic Royalty
  • *****
  • Posts: 443
    • http://iandouglas.com
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #282 on: February 22, 2016, 04:02:39 PM »
Hey everyone, just a quick update since I'm apparently unable to edit my original message.

I've added the new cPanel path to the script in v4.04, but I'm also going to stop supporting the script as of March 1st, 2016. It'll live on at GitHub (github.com/iandouglas/spamassassin-trainer) if people need a copy or have problems. I just can't guarantee I'll be very quick with responses.

Offline bakdong

  • Trekkie
  • **
  • Posts: 19
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #283 on: February 22, 2016, 05:55:43 PM »
Ian, Thank you for all your hard work in writing and supporting these scripts to date. I'm sure they have helped many others apart from myself in the past.  :clap:

Offline Jonasu

  • Space Explorer
  • ***
  • Posts: 9
    • bandstarter
Re: How-to: Train SpamAssassin - Updated April 27, 2010
« Reply #284 on: July 28, 2016, 01:29:37 PM »
Code: [Select]
ERROR: The setting you enabled for $path_to_salearn is invalid (/usr/local/cpanel/3rdparty/bin/sa-learn was not found). Execution cannot continue until this is fixed
I get this error message after I updated the script. Anyone know why and how can I get it to work again?
I'm drowning in spam!

 

Share |