Curtis wrote:

> the bayes database is not central unless you specify it that way by 
> declaring the bayes path and setting the file permissions 
> appropriately.  According to the docs the default bayes path is 
> "~/.spamassassin."  If you're using a common bayes database for the 
> entire system you can use the suggestion  from the message I'm replying 
> to or you can use a couple of settings that are native to spamassassin.

> bayes_path    /etc/mail/spamassassin/bayes
> bayes_learn_to_journal   1
> bayes_journal_max_size   102400   # This is the default value vary for 
> your taste.
> bayes_file_mode      0660

If you have not set bayes_path before, I think your existing bayes
files (that amavis uses) will be in /path/to/amavis/.spamassassin,
so to keep the existing bayes files, you would probably want to set it to:
bayes_path  /path/to/amavis/.spamassassin/bayes
same goes for
auto_whitelist_path /path/to/amavis/.spamassassin/auto-whitelist

Note that /bayes is not a directory, it is a file name prefix and
/auto-whitelist is the auto_whitelist file name and not a directory.

I don't think these two settings will be used at all if you migrate to SQL
however (but I'm not certain)

One more thing to consider, SpamAssassin may choose to force-expire at
inopportune times. To avoid this, it is possible to set
'bayes_auto_expire 0', provided you create a cron job or script to
run --force-expire once each day. The command in this job/script must
by run as the amavis user. Here is a sample of such a cron job:
http://www200.pair.com/mecham/redhat/spam-maint.txt
And a script:
http://www200.pair.com/mecham/spam/bayes-maint.txt

I have no idea if these will work on BDSs.

Gary V



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to