> On 27 May 2018, at 11:01, Axb <axb.li...@gmail.com> wrote: > > On 05/27/2018 09:50 AM, Palvelin Postmaster wrote: >> Can anyone offer suggestions as to why I get these invalid argument warnings >> when I run spamassassin —lint —debug: >> warn: plugin: eval failed: bayes: Redis failed: Error: Invalid argument at >> /opt/local/lib/perl5/vendor_perl/5.26/Mail/SpamAssassin/BayesStore/Redis.pm >> line 264. at >> /opt/local/lib/perl5/vendor_perl/5.26/Mail/SpamAssassin/BayesStore/Redis.pm >> line 271. >> $ spamassassin --version >> SpamAssassin version 3.4.1 >> running on Perl version 5.26.2 >> Lines 264-271 in Redis.pm indicate that the warning might be related to a >> connectivity problem with Redis. I have Redis 4.0.9 installed via Macports >> on macOS High Sierra. Redis is configured according to these instructions: >> https://svn.apache.org/repos/asf/spamassassin/trunk/contrib/HOWTO.Bayes-Redis/. >> A simple test suggests a connection to Redis can be established and >> database 0 exists. >> $ redis-cli -h 127.0.0.1 >> 127.0.0.1:6379> SELECT 0 >> OK >> My bayes config is: >> # Enable the Bayes system >> use_bayes 1 >> use_bayes_rules 1 >> use_learner 1 >> bayes_use_hapaxes 1 >> bayes_learn_to_journal 0 >> bayes_token_ttl 30d >> bayes_seen_ttl 14d >> # Use Redis for Bayes backend >> bayes_store_module Mail::SpamAssassin::BayesStore::Redis >> bayes_sql_dsn server=127.0.0.1:6379,database=0 > what happens if you comment out > > #bayes_use_hapaxes 1
Doesn’t appear to have any effect.