-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local.d
behavior doesn't match FAQ
#563
Comments
'local.d/worker-controller.inc' doesn't work.
There is no problem with |
That's from the default configuration. |
Yes, I have that lines in the
|
Can you put |
Oh wait, that's UCL error. That's worse... |
Hm, I can't reproduce this issue. It loads local file just fine. |
I've tried on another server. Result is the same.
|
I've tried fresh rspamd installation on debian:
Then I've added exactly your lines and tried
To ensure that file has been loaded, I've tried
So that settings have been loaded. I couldn't reproduce your issue again... |
I found the problem.
|
What about |
Never mind my question about What if you move |
Is there some good reason to include # cat local.d/fuzzy_check.conf
rule {
servers = "127.0.0.1:11335";
symbol = "LOCAL_FUZZY_UNKNOWN";
mime_types = "*";
max_score = 20.0;
read_only = no;
skip_unknown = yes;
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;
}
}
} # rspamadm configdump fuzzy_check
*** Section fuzzy_check ***
rule {
servers = "127.0.0.1:11335";
symbol = "LOCAL_FUZZY_UNKNOWN";
mime_types = "*";
max_score = 20.0;
read_only = false;
skip_unknown = true;
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;
}
}
}
min_bytes = 100;
*** End of section fuzzy_check *** Why not to include --- modules.d/fuzzy_check.conf.orig 2016-03-20 10:47:13.093192000 +0300
+++ modules.d/fuzzy_check.conf 2016-03-20 10:47:43.113162000 +0300
@@ -16,7 +16,7 @@
fuzzy_check {
# Include dynamic conf for the rule
.include(try=true,priority=5) "${DBDIR}/dynamic/fuzzy_check.conf"
- .include(try=true,priority=1) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
+ .include(try=true) "$LOCAL_CONFDIR/local.d/fuzzy_check.conf"
.include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/fuzzy_check.conf"
min_bytes = 100;
rule {
# rspamadm configdump fuzzy_check
*** Section fuzzy_check ***
rule {
servers = "127.0.0.1:11335";
symbol = "LOCAL_FUZZY_UNKNOWN";
mime_types = "*";
max_score = 20.0;
read_only = false;
skip_unknown = true;
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;
}
}
}
rule {
servers = "rspamd.com:11335";
encryption_key = "icy63itbhhni8bq15ntp5n5symuixf73s1kpjh6skaq4e7nx5fiy";
symbol = "FUZZY_UNKNOWN";
mime_types [
"application/*",
]
max_score = 20.0;
read_only = true;
skip_unknown = true;
fuzzy_map {
FUZZY_DENIED {
max_score = 20.0;
flag = 1;
}
FUZZY_PROB {
max_score = 10.0;
flag = 2;
}
FUZZY_WHITE {
max_score = 2.0;
flag = 3;
}
}
}
min_bytes = 100;
*** End of section fuzzy_check *** |
This fixes rspamd#672 and fixes rspamd#563.
According to the
What are local.d and override.d then
sectionlocal.d/phishing.conf
should look like:but it doesn't work.
This works:
The text was updated successfully, but these errors were encountered: