diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-11-30 13:58:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 13:58:10 +0000 |
commit | 41112c8f89a1a9698ff4f121d8eedd9d36d00e16 (patch) | |
tree | b2bc37170b527418b580cca9ee159cf6fefd6461 | |
parent | c859bb80dc23960c2a5a0b93baafc19b3d1d0674 (diff) | |
parent | ed22f77cc216a3b8596b7bb15a55385bbe8740d3 (diff) | |
download | rspamd-41112c8f89a1a9698ff4f121d8eedd9d36d00e16.tar.gz rspamd-41112c8f89a1a9698ff4f121d8eedd9d36d00e16.zip |
Merge pull request #3999 from dupondje/spamhaus_uribl
Uncomment but disable SpamHaus URIBL
-rw-r--r-- | conf/modules.d/rbl.conf | 25 | ||||
-rw-r--r-- | conf/scores.d/surbl_group.conf | 78 |
2 files changed, 55 insertions, 48 deletions
diff --git a/conf/modules.d/rbl.conf b/conf/modules.d/rbl.conf index b8ef44c48..4d6529246 100644 --- a/conf/modules.d/rbl.conf +++ b/conf/modules.d/rbl.conf @@ -269,18 +269,19 @@ rbl { } # Not enabled by default due to privacy concerns! (see also groups.d/surbl_group.conf) - #"SPAMHAUS_ZEN_URIBL" { - # suffix = "zen.spamhaus.org"; - # resolve_ip = true; - # check_emails = true; - # ips { - # URIBL_SBL = "127.0.0.2"; - # URIBL_SBL_CSS = "127.0.0.3"; - # URIBL_XBL = ["127.0.0.4", "127.0.0.5", "127.0.0.6", "127.0.0.7"]; - # URIBL_PBL = ["127.0.0.10", "127.0.0.11"]; - # URIBL_DROP = "127.0.0.9"; - # } - #} + "SPAMHAUS_ZEN_URIBL" { + enabled = false; + rbl = "zen.spamhaus.org"; + checks = ['emails']; + resolve_ip = true; + returncodes = { + URIBL_SBL = "127.0.0.2"; + URIBL_SBL_CSS = "127.0.0.3"; + URIBL_XBL = ["127.0.0.4", "127.0.0.5", "127.0.0.6", "127.0.0.7"]; + URIBL_PBL = ["127.0.0.10", "127.0.0.11"]; + URIBL_DROP = "127.0.0.9"; + } + } "SEM_URIBL_UNKNOWN" { ignore_defaults = true; diff --git a/conf/scores.d/surbl_group.conf b/conf/scores.d/surbl_group.conf index e19e48249..34064a174 100644 --- a/conf/scores.d/surbl_group.conf +++ b/conf/scores.d/surbl_group.conf @@ -212,42 +212,48 @@ symbols = { one_shot = true; groups = ["uribl"]; } - #"SPAMHAUS_ZEN_URIBL" { - # weight = 0.0; - # description = "Spamhaus ZEN URIBL: Filtered result"; - # one_shot = true; - # groups = ["spamhaus"]; - #} - #"URIBL_SBL" { - # weight = 6.5; - # description = "A domain in the message body resolves to an IP listed in Spamhaus SBL"; - # one_shot = true; - # groups = ["v"]; - #} - #"URIBL_SBL_CSS" { - # weight = 6.5; - # description = "A domain in the message body resolves to an IP listed in Spamhaus SBL CSS"; - # one_shot = true; - # groups = ["spamhaus"]; - #} - #"URIBL_XBL" { - # weight = 1.5; - # description = "A domain in the message body resolves to an IP listed in Spamhaus XBL"; - # one_shot = true; - # groups = ["spamhaus"]; - #} - #"URIBL_PBL" { - # weight = 0.01; - # description = "A domain in the message body resolves to an IP listed in Spamhaus PBL"; - # one_shot = true; - # groups = ["spamhaus"]; - #} - #"URIBL_DROP" { - # weight = 5.0; - # description = "A domain in the message body resolves to an IP listed in Spamhaus DROP"; - # one_shot = true; - # groups = ["spamhaus"]; - #} + "SPAMHAUS_ZEN_URIBL" { + ignore = true; + weight = 0.0; + description = "Spamhaus ZEN URIBL: Filtered result"; + one_shot = true; + groups = ["spamhaus"]; + } + "URIBL_SBL" { + ignore = true; + weight = 6.5; + description = "A domain in the message body resolves to an IP listed in Spamhaus SBL"; + one_shot = true; + groups = ["spamhaus"]; + } + "URIBL_SBL_CSS" { + ignore = true; + weight = 6.5; + description = "A domain in the message body resolves to an IP listed in Spamhaus SBL CSS"; + one_shot = true; + groups = ["spamhaus"]; + } + "URIBL_XBL" { + ignore = true; + weight = 1.5; + description = "A domain in the message body resolves to an IP listed in Spamhaus XBL"; + one_shot = true; + groups = ["spamhaus"]; + } + "URIBL_PBL" { + ignore = true; + weight = 0.01; + description = "A domain in the message body resolves to an IP listed in Spamhaus PBL"; + one_shot = true; + groups = ["spamhaus"]; + } + "URIBL_DROP" { + ignore = true; + weight = 5.0; + description = "A domain in the message body resolves to an IP listed in Spamhaus DROP"; + one_shot = true; + groups = ["spamhaus"]; + } #"RBL_SARBL_BAD" { # weight = 2.5; # description = "A domain in the message body is blacklisted in SARBL"; |