mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
8861ce6edb
All override files are used as if they were placed in the rspamd local.d folder. From the newsfragment: New override system for Rspamd. In the old system, all files were placed in the Rspamd overrides folder. These overrides would override everything, including the Mailu Rspamd config. Now overrides are placed in /overrides. If you use your own map files, change the location to /override/myMapFile.map in the corresponding conf file. It works as following. * If the override file overrides a Mailu defined config file, it will be included in the Mailu config file with lowest priority. It will merge with existing sections. * If the override file does not override a Mailu defined config file, then the file will be placed in the rspamd local.d folder. It will merge with existing sections. For more information, see the description of the local.d folder on the rspamd website: https://www.rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
35 lines
926 B
Plaintext
35 lines
926 B
Plaintext
rule "local" {
|
|
# Fuzzy storage server list
|
|
servers = "localhost:11335";
|
|
# Default symbol for unknown flags
|
|
symbol = "LOCAL_FUZZY_UNKNOWN";
|
|
# Additional mime types to store/check
|
|
mime_types = ["application/*"];
|
|
# Hash weight threshold for all maps
|
|
max_score = 20.0;
|
|
# Whether we can learn this storage
|
|
read_only = no;
|
|
# Ignore unknown flags
|
|
skip_unknown = yes;
|
|
# Hash generation algorithm
|
|
algorithm = "mumhash";
|
|
# Map flags to symbols
|
|
fuzzy_map = {
|
|
LOCAL_FUZZY_DENIED {
|
|
# Local threshold
|
|
max_score = 20.0;
|
|
# Flag to match
|
|
flag = 11;
|
|
}
|
|
LOCAL_FUZZY_PROB {
|
|
max_score = 10.0;
|
|
flag = 12;
|
|
}
|
|
LOCAL_FUZZY_WHITE {
|
|
max_score = 2.0;
|
|
flag = 13;
|
|
}
|
|
}
|
|
}
|
|
.include(try=true,priority=1,duplicate=merge) "/overrides/fuzzy_check.conf"
|