Hello Tony, Thursday, March 11, 2004, 11:25:59 PM, you wrote:
>>> I would like to do the following: >> >>> 1. Turn auto learn on (unless this is not recommended???). >> >> In my cpanel installations auto-learn is automatic. T> Any idea how I can turn this on? It is turned off on my server, and those T> of others using the same dedicated server provider - and they don't do it T> themselves, so I assume it is OFF by default in recent versions of T> CPanel.... If you have access to the /etc/mail/spamassassin/local.cf file (may be in a different directory according to how SA is called), then you can add the parameter > bayes_auto_learn 1 to that file. See http://www.spamassassin.org/doc/Mail_SpamAssassin_Conf.html >>> 2. Allow my clients to run sa-learn if they wish (they do not have ssh >>> access, but can run cron jobs), ideallty on a regular automated basis >> >> I use cron scripts which look for files named newspam.txt and >> newham.txt in my domain root directories, and if found, run sa-learn >> against and then delete the files. I create these files by FTP upload >> from my email client. Works great. T> Cool. Do you run these for the whole server or just for YOUR domain? Just my domain (it's the only area I have permissions for). It would not be hard to use similar logic to scan the entire server. >> Only requirement is an email client that will output >> intelligent/useful files (I use mbox format). T> ditto. >> I have users that use horde for webmail. I've created hamlearn and >> spamlearn folders for them, and my cron scripts look to see if those >> folders are non-empty. If so, it runs sa-learn against those folders >> and then empties them. T> Sounds good, just the sort of thing I'm after. >>> 3. Run sa-learn on a regular, automated basis for the entire server >> >> That can be a challenge. T> running it for the entire server, or running it automatically? Running it for the entire server, and allowing people to have their own customized database. >> sa-learn runs best for individual users and/or individual systems. >> While a system-wide bayes is better than none, you won't want to >> interfere with those users/domains that are able to do their own bayes >> work. T> Can you tell me how to run it for the entire server? T> Why is it better to have individual ones for each user - becuause they T> have different ideas of what constitutes spam? Not only different ideas of what constitutes spam, but also actually different spam, and more importantly, different ham. The domain used by a rape support group will have VERY different ham than the domain used by a mortgage banker. The way to run it for the entire server would be to run it as a specific userid, and to set up local.cf to ensure that EVERYONE uses that specific userid's bayes database. Others can tell you how to do that. >> As an end-user, I can't help you much with the cpanel setup, but I can >> help you with the types of things I have managed to do here. T> Sounds like you're a lot more than an end-user Bob. T> You are doing a heck of a lot that I would like to be able to do. T> Apart from the lack of SA/cpanel knowledge, I am a *indows man not a *nix T> one, so cron jobs/perl scripts/shell scripts are all pretty new to me. T> How much do you want for a copy of your scripts? ;) I like salt-free sunflower seeds... Bob Menschel
salearn.sh
Description: Binary data
