On 12.02.20 18:03, Pedro David Marco wrote:
i am getting errors from Byes because it is not able to lock Bayes files...
Error log is:
bayes: cannot open bayes databases /etc/spamassassin/bayes/bayes_* R/W: lock
failed: Interrupted system call
SA tries to lock bayes files always in "EXclusive mode", hence when a sa takes
too long, all other processes have to wait for the lock...
This is my config:
use_bayes 1bayes_path /etc/spamassassin/bayes/bayesbayes_auto_learn
0bayes_auto_expire 0lock_method flock
this is your problem. bayes is designed for one user. not for all of them.
If you want, you can move bayes database to SQL or to redis, but I don't
recommend that for multiuser machine.
For a single-user, bayes database can be simply in your $HOME/.spamassassin/
SA uses EXclusive lock because it has "to write"... my question is...
Is there any way to avoid SA writing Bayes files? in that case a
non-exclusive lock would be enough...
no.
--
Matus UHLAR - fantomas, [email protected] ; 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.
Spam is for losers who can't get business any other way.