Hello, thanks for the reply. I use one database bayes for all email accounts 
(not sites, sorry for the error)


here i show some spamassassin configuration


local.cf


bayes_expiry_max_db_size 150000
bayes_learn_to_journal 1
bayes_auto_learn 0

include custom_rules
include whitelist
include blacklist
include hostname


I have two questions:


1- How do I configure? I can not find a tutorial, only information about 
spamassassin and mysql, not spamassassin and redis


2- why the bayes is empty?

sa-learn --dump all
0.000          0          3          0  non-token data: bayes db version
0.000          0          0          0  non-token data: nspam
0.000          0          0          0  non-token data: nham
0.000          0          0          0  non-token data: ntokens
0.000          0          0          0  non-token data: oldest atime
0.000          0          0          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire atime delta
0.000          0          0          0  non-token data: last expire reduction 
count

du -sh /.spamassassin/bayes_*
8,0K    /.spamassassin/bayes_journal
513M    /.spamassassin/bayes_seen
4,0M    /.spamassassin/bayes_toks

Regards and thanks for the reply.


________________________________
De: Matus UHLAR - fantomas <uh...@fantomas.sk>
Enviado: lunes, 9 de abril de 2018 13:00:49
Para: users@spamassassin.apache.org
Asunto: Re: bayes: cannot open bayes databases lock failed: File exists

On 09.04.18 11:01, Emanuel Gonzalez wrote:
>I use one bayes database to all sites in my server.

sites? afaik spamd and MTAs differ between mailboxes, not sites.

>What would be the best way to avoid my problem?? create a database of bayes
> by email account?  Or create a unique database of bayes for all email
> accounts?

so, do you use one or multipler BAYES databases?


>De: Pedro David Marco <pedrod_ma...@yahoo.com>
>Enviado: viernes, 6 de abril de 2018 19:01:53
>Para: users@spamassassin.apache.org
>Asunto: Re: bayes: cannot open bayes databases lock failed: File exists
>
>
>>under such load, yes.
>>if you use per-site bayes database, you can try redis - even faster than
>>mysql.
>
>Much much much faster....

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Silvester Stallone: Father of the RISC concept.

Reply via email to