You probably already have a user_prefs file in your .spamassassin
directory. Manually combine your personal settings in this file with
the global defaults contained in the file:
/usr/share/spamassassin/user_prefs.templateYour previous SpamAssassin installation may already have collected some Bayesian tokens. If so, they will be in your .spamassassin directory in files whose names match 'bayes*', such as:
bayes_journal bayes_seen bayes_toksYou can import these into the new SpamAssassin's central database.
First, use 'sa-learn' at least once with the --spam or --ham option (as described in the (Old) SpamAssassin: Bayesian Filtering section above), so that the central database is correctly initialized for you. Otherwise the steps below may fail.
Then cd into your .spamassassin directory and use the following commands:
% sa-learn --siteconfigpath=/ --backup > data.txt % sa-learn --restore data.txtThe first sa-learn command above will export your current Bayesian data into a file called 'data.txt'. Any error message of the form 'bayes: bayes db version 2 is not able to be used, aborting! ...' can be safely ignored.
The second sa-learn command will import data from 'data.txt' into the central database.
Both sa-learn commands above can take a while, depending on the size of your existing Bayesian data.
After the --restore step above, you can check the size of the imported
% sa-learn --dump magicLook at the 'nham' and 'nspam' values to get a count of non-spam and spam tokens respectively in the database.
After the import has been done, you can delete the bayes* files in your
.spamassassin directory thus:
% rm bayes*
This document is: http://faq.rahul.net/cgi-bin/fom.cgi?file=34
[Search] [Appearance] This is a Faq-O-Matic 2.721.