mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-23 17:53:24 +00:00
[Rspamd] Use meta exporter to pipe meta data of ratelimited msg to Redis
This commit is contained in:
1 parent
e7427eddf3
commit
ed763cd668
2 files changed
+62
-8
No files matched your search
@@ -1,10 +1,26 @@
|
||||
rules {
|
||||
QUARANTINE {
|
||||
backend = "http";
|
||||
url = "http://nginx:9081/pipe.php";
|
||||
selector = "is_reject";
|
||||
formatter = "default";
|
||||
meta_headers = true;
|
||||
}
|
||||
QUARANTINE {
|
||||
backend = "http";
|
||||
url = "http://nginx:9081/pipe.php";
|
||||
selector = "is_reject";
|
||||
formatter = "default";
|
||||
meta_headers = true;
|
||||
}
|
||||
RLINFO {
|
||||
backend = "http";
|
||||
url = "http://nginx:9081/pipe_rl.php";
|
||||
selector = "ratelimited";
|
||||
formatter = "json";
|
||||
}
|
||||
}
|
||||
custom_select {
|
||||
ratelimited = <<EOD
|
||||
return function(task)
|
||||
local ratelimited = task:get_symbol("RATELIMITED")
|
||||
if ratelimited then
|
||||
return true
|
||||
end
|
||||
return
|
||||
end
|
||||
EOD;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user