> John Hardin <jhar...@impsec.org> kirjoitti 24.10.2018 kello 18.10:
> 
> On Wed, 24 Oct 2018, Emanuel Gonzalez wrote:
> 
>> Hello.!!
>> 
>> I have a problem with the `/.spamassassin/bayes.lock`
>> 
>> This is the error I'm seeing :
>> 
>>   Oct 23 15:12:14 server spamd[18073]: bayes: cannot open bayes databases
>> /.spamassassin/bayes_* R/W: lock failed: File exists
>>   Oct 23 15:12:14 server spamd[18157]: bayes: cannot open bayes databases
>> /.spamassassin/bayes_* R/W: lock failed: File exists
>>   Oct 23 15:12:14 server spamd[18107]: bayes: cannot open bayes databases
>> /.spamassassin/bayes_* R/W: lock failed: File exists
>> 
>> 
>> The command `spamassassin -V` is showing :
>> 
>>   SpamAssassin version 3.4.1
>>   running on Perl version 5.10.1
>> 
>>   bayes_expiry_max_db_size 150000
>>   bayes_learn_to_journal 1
>>   bayes_auto_learn 0
>> 
>> 
>> 128K    bayes_journal
>> 547M    bayes_seen
>> 4,0M    bayes_toks
>> 
>> 
>>   # spamassassin
>> 
>>   SPAMDOPTIONS="-u nobody -H --round-robin --min-children=30
>> --max-children=190 --min-spare=5 --max-spare=80 --timeout-child=120
>> --max-conn-per-child=100 -i -A IP"
>> 
>>   # directory perms
>> 
>> Also the command `ll -d /.spamassassin` is showing :
>> 
>>   drwxrwxrwx 3 nobody nobody 4096 oct 23 15:16 /.spamassassin
>> 
>> I restart the service and it works, but the problem reappears again
>> 
>> Do you have any idea how to solve it?
> 
> 
> As was suggested earlier, disable auto-expiry and run a cron job to expire 
> Bayes tokens.
> 


I seem to have auto expiry on, but have not seen any problems with it.

jarif@gamecock ~ $ sudo egrep "bayes|expir" /etc/spamassassin/local.cf
use_bayes 1
#bayes_store_module      Mail::SpamAssassin::BayesStore::SQL
#bayes_sql_dsn           DBI:mysql:spamassassin:dbsrv.fredriksson.dy.fi
#bayes_sql_username      spamassassin
#bayes_sql_password      *munged*
#bayes_sql_override_username spam
#bayes_expiry_max_db_size 1500000
#bayes_auto_expire      0
bayes_store_module  Mail::SpamAssassin::BayesStore::Redis
bayes_sql_dsn       server=192.168.1.124:6379;password=*munged*;database=2
bayes_token_ttl 21d
bayes_seen_ttl   8d
bayes_auto_expire 1
bayes_auto_learn        1
bayes_learn_to_journal  0
bayes_ignore_from       *@spamassassin.apache.org
bayes_ignore_to         *@spamassassin.apache.org

br. jarif


Reply via email to