[Rspamd-Users] autolearn spam only works partially

christian usenet at schani.com
Sat Mar 23 17:14:19 UTC 2024


Hello,
I have the problem that the statistic autolearn function only teaches 
Ham. Spam only in small numbers. SPAM/HAM ratio 1:10. Although a lot of 
spam comes in and is marked with add header, rewrite subject or reject. 
The log file then only says autolearn=unavailable

what could that be?

Christian


Server name 	Symbol 		Type 	Learns 	Users
local		BAYES_SPAM	redis	30	1
		BAYES_HAM	redis	150	1


I specified the following in statistic.conf:


   tokenizer {
     name = "osb";
   }
   cache {
   }
   new_schema = true; # Always use new schema
   store_tokens = false; # Redefine if storing of tokens is desired
   signatures = false; # Store learn signatures
   #per_user = true; # Enable per user classifier
   min_tokens = 15;
   backend = "redis";
   min_learns = 200;

   statfile {
     symbol = "BAYES_HAM";
     spam = false;
   }
   statfile {
     symbol = "BAYES_SPAM";
     spam = true;
   }
   learn_condition = 'return require("lua_bayes_learn").can_learn';

	autolearn = true;
	autolearn {
	  spam_threshold = 6.0;
	  junk_threshold = 4.0;
	  ham_threshold = -0.5;
	  check_balance = true;
	  min_balance = 0.9;
	}


More information about the Users mailing list