NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
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] Enable more modules

07a05b93
AndrĂ© Peters <[email protected]> 8 years ago
data/conf/rspamd/local.d/asn.conf            |  6 ++++++
 data/conf/rspamd/local.d/ip_score.conf       | 24 ++++++++++++++++++++++++
 data/conf/rspamd/local.d/url_reputation.conf | 26 ++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 data/conf/rspamd/local.d/asn.conf
 create mode 100644 data/conf/rspamd/local.d/ip_score.conf
 create mode 100644 data/conf/rspamd/local.d/url_reputation.conf

Diff

diff --git a/data/conf/rspamd/local.d/asn.conf b/data/conf/rspamd/local.d/asn.conf
new file mode 100644
index 00000000..42b67806
--- /dev/null
+++ b/data/conf/rspamd/local.d/asn.conf
@@ -0,0 +1,6 @@
+provider_type = "rspamd";
+provider_info {
+  ip4 = "asn.rspamd.com";
+  ip6 = "asn6.rspamd.com";
+}
+symbol = "ASN";
diff --git a/data/conf/rspamd/local.d/ip_score.conf b/data/conf/rspamd/local.d/ip_score.conf
new file mode 100644
index 00000000..1ea2c3cd
--- /dev/null
+++ b/data/conf/rspamd/local.d/ip_score.conf
@@ -0,0 +1,24 @@
+# how each action is treated in scoring
+actions {
+  reject = 1.0;
+  "add header" = 0.25;
+  "rewrite subject" = 0.25;
+  "no action" = 1.0;
+}
+# how each component is evaluated
+scores {
+  asn = 0.5;
+  country = 0.1;
+  ipnet = 0.8;
+  ip = 1.0;
+}
+asn_prefix = "a:";
+country_prefix = "c:";
+hash = "ip_score";
+ipnet_prefix = "n:";
+lower_bound = 10;
+metric = "default";
+max_score = 10;
+min_score = -5;
+score_divisor = 10;
+symbol = "IP_SCORE";
diff --git a/data/conf/rspamd/local.d/url_reputation.conf b/data/conf/rspamd/local.d/url_reputation.conf
new file mode 100644
index 00000000..f2881ac0
--- /dev/null
+++ b/data/conf/rspamd/local.d/url_reputation.conf
@@ -0,0 +1,26 @@
+# Key prefix for redis - default "Ur."
+key_prefix = "Ur.";
+# Symbols to insert - defaults as shown
+symbols {
+  white = "URL_REPUTATION_WHITE";
+  black = "URL_REPUTATION_BLACK";
+  grey = "URL_REPUTATION_GREY";
+  neutral = "URL_REPUTATION_NEUTRAL";
+}
+# DKIM/DMARC/SPF allow symbols - defaults as shown
+foreign_symbols {
+  dmarc = "DMARC_POLICY_ALLOW";
+  dkim = "R_DKIM_ALLOW";
+  spf = "R_SPF_ALLOW";
+}
+# SURBL metatags to ignore - default as shown
+ignore_surbl = ["URIBL_BLOCKED", "DBL_PROHIBIT", "SURBL_BLOCKED"];
+# Amount of samples required for scoring - default 5
+threshold = 5;
+# Maximum number of TLDs to update reputation on (default 1)
+update_limit = 1;
+# Maximum number of TLDs to query reputation on (default 100)
+query_limit = 100;
+# If true, try to find most 'relevant' URL (default true)
+relevance = true;
+enabled = true;