Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: jmarcosm on July 23, 2011, 03:01:45 PM

Title: Learn contrib questions
Post by: jmarcosm on July 23, 2011, 03:01:45 PM
I´m trying to implement this contrib in my email server but the explanation in the howto is not enough for a newbe like me!!

1) After I type this command: config setprop LearnAsSpam status enabled  I whant to check if this prop is set so I type:
config show Learn but I cant see nothing. How I can check this and the status of "Learn" ?

2) Somebody could please explain me the cron set of the Learn contrib with an example ? and how to expand the template?

Thank you very much in advance for your help

Marcos
Title: Re: Learn contrib questions
Post by: mmccarn on July 23, 2011, 03:40:41 PM
The Learn contrib is an automated way to implement the LearnAsSpam (http://bugs.contribs.org/show_bug.cgi?id=1701#c25) script, so reading up on that might help.

I also configure Bayesian Autolearning (http://wiki.contribs.org/Email#Setup_Blacklists_.26_Bayesian_Autolearning|Bayesian) on all of my systems.

I read the specific 'config...' commands on the Learn Installation (http://wiki.contribs.org/Learn#Installation) section to say:

1) use 'config setprop LearnAsSpam status enabled' to turn on "learn as spam"
2) use 'config setprop LearnAsHam status enabled" to turn on "learn as ham"
3) use 'config setprop Learn cron hourly' to schedule the 'LearnAsSpam' script to run hourly.  The script, when run, will then reference the other config settings to determine what to do.

To enable your changes to the cron schedule, you need to 'expand-template /etc/crontab'
Title: Re: Learn contrib questions
Post by: janet on July 23, 2011, 03:47:11 PM
jmarcosm

do this
config show LearnAsSpam

If you are not sure how to expand specific templates and restart specific services then use the master command, which is safe to do

signal-event post-upgrade
signal-event reboot
Title: Re: Learn contrib questions
Post by: jmarcosm on July 23, 2011, 03:55:52 PM
Thank you mmccarn and mary for your soon replay!

Mary: That is a very good option I will follow your advice! On the other hand when I type config show LearnAsSpam nothing appers in the console!

mmccarn: Should I guess that I have to install the LearnAsSpam scrpt first ? or is this sript already installed? The learn contrib should install this script ?
Title: Re: Learn contrib questions
Post by: cactus on July 23, 2011, 08:37:03 PM
Mary: That is a very good option I will follow your advice! On the other hand when I type config show LearnAsSpam nothing appers in the console!
Do you perhaps mean server-manager? The console usually indicated the command line.

Should I guess that I have to install the LearnAsSpam scrpt first ? or is this sript already installed? The learn contrib should install this script ?
I assume the script comes with the contrib, if it doesn't the contrib is incomplete IMHO.
Title: Re: Learn contrib questions
Post by: jmarcosm on July 23, 2011, 08:39:37 PM
ok , just reintalled everything and now is working as should. Thank you very much for the help!!!

Marcos