Browse Source

[Conf] Add DWL support in the default configuration

tags/1.8.2
Vsevolod Stakhov 5 years ago
parent
commit
993c4a7552
2 changed files with 44 additions and 1 deletions
  1. 18
    1
      conf/modules.d/rbl.conf
  2. 26
    0
      conf/scores.d/rbl_group.conf

+ 18
- 1
conf/modules.d/rbl.conf View File

@@ -126,7 +126,7 @@ rbl {
}
}

nixspam {
nixspam {
symbol = "RBL_NIXSPAM";
rbl = "ix.dnsbl.manitu.net";
ipv6 = true;
@@ -146,6 +146,23 @@ rbl {
from = false;
ignore_whitelists = true;
}

dnswl_dwl {
symbol = "DWL_DNSWL";
rbl = "dwl.dnswl.org";
dkim = true;
dkim_domainonly = false;
dkim_match_from = true;
unknown = false;

returncodes {
DWL_DNSWL_NONE = "127.0.%d+.0";
DWL_DNSWL_LOW = "127.0.%d+.1";
DWL_DNSWL_MED = "127.0.%d+.2";
DWL_DNSWL_HI = "127.0.%d+.3";
DWL_DNSWL_BLOCKED = "127.0.0.255";
}
}
}

.include(try=true,priority=5) "${DBDIR}/dynamic/rbl.conf"

+ 26
- 0
conf/scores.d/rbl_group.conf View File

@@ -16,6 +16,7 @@
# See https://rspamd.com/doc/tutorials/writing_rules.html for details

symbols = {

"DNSWL_BLOCKED" {
weight = 0.0;
description = "Resolver blocked due to excessive queries";
@@ -41,6 +42,31 @@ symbols = {
description = "Sender listed at https://www.dnswl.org, high trust";
}

"DNSWL_DWL_BLOCKED" {
weight = 0.0;
description = "Resolver blocked due to excessive queries (dwl)";
}
"DWL_DNSWL" {
weight = 0.0;
description = "Unrecognised result from https://www.dnswl.org (dwl)";
}
"DWL_DNSWL_NONE" {
weight = 0.0;
description = "Message has a valid dkim signature originated from domain listed at https://www.dnswl.org, no trust";
}
"DWL_DNSWL_LOW" {
weight = -1;
description = "Message has a valid dkim signature originated from domain listed at https://www.dnswl.org, low trust";
}
"DWL_DNSWL_MED" {
weight = -2;
description = "Message has a valid dkim signature originated from domain listed at https://www.dnswl.org, medium trust";
}
"DWL_DNSWL_HI" {
weight = -3.5;
description = "Message has a valid dkim signature originated from domain listed at https://www.dnswl.org, high trust";
}

"RBL_SPAMHAUS" {
weight = 0.0;
description = "Unrecognised result from Spamhaus ZEN";

Loading…
Cancel
Save