At 12:01 AM 2/22/2005, Ciprian wrote:
Now, I would like to copy the filters from my desktop to the email server so
all users can benefit from them. How can I do this?

0) as a prestep, run sa-learn --dump magic and roughly note the spam and ham counts


1) find you home directory, find the .spamassassin directory there, and copy the bayes_* files to your server.

        scp ~/.spamassassin/bayes_* myserver:

2) to make this bayes DB site wide, you'll want to put them someplace like /var/spamassassin/bayes/. Make the directory, and if SA runs as one user (ie: at the MTA layer), make it owned by that user. If it runs as many users (ie: procmail, or spamc -u), make the directory and the bayes files world rwx.

3) edit /etc/mail/spamassassin/local.cf  and add:

        #yes, I do mean two bayes here, the second is part of the filename
        bayes_path /var/spamassassin/bayes/bayes

if using multiple users you need file mode too:
        bayes_file_mode 777

4) run spamassassin --lint. It should run without any output.

5) run sa-learn --dump magic and make sure it matches the output from your desktop in step 0

6) Restart spamd (if you use it) and you should be good to go.

if you have trouble, run spamassassin --lint -D and see if the debug gives you any hints.



Reply via email to