On Mon, Nov 11, 2024 at 4:48 PM hg user <mercurialu...@gmail.com> wrote:
> In spamassassin 3 you could debug bayes points running command line > spamassassin with "-D bayes" parameter. I think you can in version 4 too. > > In the log all the tokens extracted from the message are listed with the > points assigned, so you can see exactly how the score is calculated. > > I had a similar experience in the past: the messages are exactly the same > content, word by word but the sender hosts were different. So, some of the > extracted tokens used by the score system were different, and they > contributed to the final score. > The "-D bayes" parameter was quite informative. Thank you. Turns out the database wasn't being read properly with the bayes_store_module in use. Maybe it has something to do with the database collation and character set in use (utf8mb4). Doing this appears to resolve the issue, at least for MariaDB 10.5.22: Change from: bayes_store_module Mail::SpamAssassin::BayesStore::SQL Change to: bayes_store_module Mail::SpamAssassin::BayesStore::MySQL