public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Rspamd] Add reputation plugin, remove deprecated plugins
1b2731d6
data/conf/rspamd/local.d/groups.conf | 17 +++++++++++++++++
data/conf/rspamd/local.d/reputation.conf | 10 ++++++++++
2 files changed, 27 insertions(+)
create mode 100644 data/conf/rspamd/local.d/reputation.conf
Diff
diff --git a/data/conf/rspamd/local.d/groups.conf b/data/conf/rspamd/local.d/groups.conf
index 7172b6b5..ef599ef3 100644
--- a/data/conf/rspamd/local.d/groups.conf
+++ b/data/conf/rspamd/local.d/groups.conf
@@ -31,3 +31,20 @@ group "MX" {
one_shot = true;
}
}
+
+group "reputation" {
+ symbols = {
+ "IP_REPUTATION_HAM" {
+ weight = 1.0;
+ }
+ "IP_REPUTATION_SPAM" {
+ weight = 4.0;
+ }
+ "SENDER_REP_HAM" {
+ weight = 1.0;
+ }
+ "SENDER_REP_SPAM" {
+ weight = 2.0;
+ }
+ }
+}
diff --git a/data/conf/rspamd/local.d/reputation.conf b/data/conf/rspamd/local.d/reputation.conf
new file mode 100644
index 00000000..0e3d03eb
--- /dev/null
+++ b/data/conf/rspamd/local.d/reputation.conf
@@ -0,0 +1,10 @@
+rules {
+ ip_reputation = {
+ selector "ip" {
+ }
+ backend "redis" {
+ servers = "redis";
+ }
+ symbol = "IP_REPUTATION";
+ }
+}