From 07a05b93632a4b29ccf5e242a9d928a6447748b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Fri, 9 Feb 2018 10:32:42 +0100 Subject: [PATCH] [Rspamd] Enable more modules --- 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 --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;