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
But journalizing will reduce lock contentions on your database.
from
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html
*bayes_learn_to_journal (default: 0)*
If this option is set, whenever SpamAssassin does Bayes learning, it
will put the information into the journal instead of directly into
the database. This lowers contention for locking the database to
execute an update, but will also cause more access to the journal
and cause a delay before the updates are actually committed to the
Bayes database.
Sven Riedel wrote:
Hi,
Since a few days I got some problems mit amavisd-new and spamassassin.
After ~2 days amavisd dies and all emails are stocked in the postfix
queue.
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/BayesSt
ore/DBM.pm line 227\n\tMail::Spam
Assassin::BayesStore::DBM::tie_db_writable('Mail::SpamAssassin
::BayesStore::DBM=HASH(0xa43ac88)') called at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/BayesSt
ore.pm line 208\n\teval {...} called at
/usr/local/lib/perl5/site_perl/5...
Could it be that you're running out of locks for the bayes database?
Check sleepycat.com (the people who make berkeley db) or your local
documentation on how you can find out the stats of your bdb files.
Unless you need bayesian filtering, you can try to not use bayes for
a while (settable in spamassassins local.cf file).
With that many mails I'd also suggest looking into using an SQL
backend for bayes. This will reduce your risk of running into
bdb problems (for some people it works fine, I usually have LOTS
of problems with bdb) such as file corruption, running out of lockers,
safe backups etc.
Regs,
Sven
-------------------------------------------------------
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_idt77&alloc_id492&opÌk
_______________________________________________
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/
-------------------------------------------------------
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_idt77&alloc_id492&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/