[Rspamd-Users] Local fuzzy storage learning doesn't work

Achim Lammerts ml-rspamd at syntaxys.de
Wed Jan 26 15:08:34 UTC 2022


Thanks, usually I have RTFM before I ask for help but I might have 
overseen that part.
Now it seems working as expected with that config:

/etc/rspamd/local.d/fuzzy_check.conf:

min_bytes = 1k;
timeout = 2s;
retransmits = 1;
rule "localhost" {
     algorithm = "mumhash";
     servers = "localhost:11335";
     symbol = "LOCAL_FUZZY_UNKNOWN";
     mime_types = ["*"];
     max_score = 20.0;
     read_only = false;
     skip_unknown = false;
     short_text_direct_hash = true;
     min_length = 32;
     fuzzy_map = {
       LOCAL_FUZZY_DENIED {
        max_score = 20.0;
        flag = 11
        }
       LOCAL_FUZZY_PROB {
        max_score = 10.0;
        flag = 12
        }
       LOCAL_FUZZY_WHITE {
        max_score = 2.0;
        flag = 13
        }
       }
# Fuzzy check plugin configuration snippet
learn_condition = <<EOD
return function(task)
return true
end
EOD;
}

Am 25.01.22 um 09:25 schrieb Alexander Moisseev via Users:
> You need to add a learn_condition script.
> https://rspamd.com/doc/fuzzy_storage.html#condition-scripts-for-the-learning 
>


More information about the Users mailing list