Hello lists,

Wednesday, March 10, 2004, 11:12:32 PM, you wrote:

> Hi,

> Excuse the n00b questions, but I cannot find the answers to these
> questions anywhere and have tried various cpanel forums.

> I run small hosting business on a red hat box with cpanel/whm and cpanel
> tend to muck around with things a bit so sometimes advice that appplies to
> a "normal" install of an app does not apply to the cpanelled version :/

Understood.  I'm a domain master on three similar machines (three
different domains), all using SA under cpanel's installation. Works
well for me (though I've strengthened SA for myself more than most
others would be able to).

> 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.

> 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.

Only requirement is an email client that will output
intelligent/useful files (I use mbox format).

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.

> 3. Run sa-learn on a regular, automated basis for the entire server

That can be a challenge.

> Regarding 3. above, I have logged on as root and successfully run sa-learn
> against a couple of spam and ham folders......but I think this may have
> been for the root user rather than for the server as a whole.
> I just did something like:
> sa-learn --showdots --spam --mbox <path to mailbox file>
> without specifying any paths to config files or any such thing like that,
> and certainly I haven't noticed a drop-off in spam, which is why I think
> it was for the root account that this was run rather than for the whole
> server.

I agree -- sa-learn normally runs for whatever user runs it.

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.

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.

Bob Menschel

Reply via email to