diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 11:13:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 11:13:13 +0100 |
commit | 4780b59102cf96ca2fbbde2884d26806ed3f0a05 (patch) | |
tree | a52e1aefd8128677851f98c2bfe503c068a29b97 | |
parent | 71c09ce78f72877f3fc9c9fea5f12779830a9ae4 (diff) | |
parent | 29cc51e2c4ae11009646410a19aa711f81e5dd11 (diff) | |
download | rspamd-4780b59102cf96ca2fbbde2884d26806ed3f0a05.tar.gz rspamd-4780b59102cf96ca2fbbde2884d26806ed3f0a05.zip |
Merge pull request #314 from fatalbanana/rspamd-0.9
Rspamd 0.9: Favour rspamd lua libraries over system libraries
-rw-r--r-- | conf/metrics.conf | 29 | ||||
-rw-r--r-- | conf/modules.conf | 10 | ||||
-rw-r--r-- | src/lua/lua_common.c | 8 |
3 files changed, 33 insertions, 14 deletions
diff --git a/conf/metrics.conf b/conf/metrics.conf index 34ae60ec0..95826765e 100644 --- a/conf/metrics.conf +++ b/conf/metrics.conf @@ -520,33 +520,33 @@ metric { symbol { name = "RCVD_IN_DNSWL"; weight = 0.0; - description = "Sender listed at http://www.dnswl.org"; + description = "Unrecognised result from dnswl.org"; } symbol { name = "RCVD_IN_DNSWL_NONE"; - weight = -0.05; + weight = 0.0; description = "Sender listed at http://www.dnswl.org, low none"; } symbol { name = "RCVD_IN_DNSWL_LOW"; - weight = -0.1; + weight = 0.0; description = "Sender listed at http://www.dnswl.org, low trust"; } symbol { name = "RCVD_IN_DNSWL_MED"; - weight = -1.0; + weight = 0.0; description = "Sender listed at http://www.dnswl.org, medium trust"; } symbol { name = "RCVD_IN_DNSWL_HI"; - weight = -5.0; + weight = 0.0; description = "Sender listed at http://www.dnswl.org, high trust"; } symbol { name = "RBL_SPAMHAUS"; weight = 0.0; - description = "From address is listed in zen"; + description = "Unrecognised result from Spamhaus zen"; } symbol { name = "RBL_SPAMHAUS_SBL"; @@ -578,7 +578,7 @@ metric { symbol { name = "RWL_SPAMHAUS_WL"; weight = 0.0; - description = "Sender listed at Spamhaus whitelist"; + description = "Unrecognised result from Spamhaus whitelist"; } symbol { name = "RWL_SPAMHAUS_WL_IND"; @@ -616,7 +616,16 @@ metric { description = "From address is listed in UCEPROTECT LEVEL1 BL"; name = "RBL_UCEPROTECT_LEVEL1"; } - + symbol { + name = "RBL_MAILSPIKE"; + weight = 0.0; + description = "Unrecognised result from Mailspike blacklist"; + } + symbol { + name = "RWL_MAILSPIKE"; + weight = 0.0; + description = "Unrecognised result from Mailspike whitelist"; + } symbol { name = "RBL_MAILSPIKE_ZOMBIE"; weight = 2.0; @@ -659,9 +668,9 @@ metric { } symbol { - weight = 1.0; + weight = 0.0; name = "RBL_SORBS"; - description = "From address is listed in SORBS RBL"; + description = "Unrecognised result from SORBS RBL"; } symbol { weight = 2.5; diff --git a/conf/modules.conf b/conf/modules.conf index 4a6f296e5..a767e32ba 100644 --- a/conf/modules.conf +++ b/conf/modules.conf @@ -123,6 +123,7 @@ rbl { symbol = "RBL_SPAMHAUS"; rbl = "zen.spamhaus.org"; ipv6 = true; + unknown = true; returncodes { RBL_SPAMHAUS_SBL = "127.0.0.2"; RBL_SPAMHAUS_CSS = "127.0.0.3"; @@ -148,6 +149,7 @@ rbl { rbl = "swl.spamhaus.org"; ipv6 = true; is_whitelist = true; + unknown = true; whitelist_exception = "RWL_SPAMHAUS_WL"; returncodes { RWL_SPAMHAUS_WL_IND = "127.0.2.2"; @@ -158,6 +160,8 @@ rbl { } mailspike_bl { + symbol = "RBL_MAILSPIKE"; + unknown = true; rbl = "bl.mailspike.net"; returncodes { RBL_MAILSPIKE_ZOMBIE = "127.0.0.2"; @@ -168,8 +172,11 @@ rbl { } mailspike_wl { + symbol = "RWL_MAILSPIKE"; rbl = "wl.mailspike.net"; is_whitelist = true; + unknown = true; + whitelist_exception = "RWL_MAILSPIKE"; whitelist_exception = "RWL_MAILSPIKE_POSSIBLE"; returncodes { RWL_MAILSPIKE_POSSIBLE = "127.0.0.17"; @@ -197,6 +204,7 @@ rbl { sorbs { symbol = "RBL_SORBS"; rbl = "dnsbl.sorbs.net"; + unknown = true; returncodes { # http:// www.sorbs.net/general/using.shtml RBL_SORBS_HTTP = "127.0.0.2"; @@ -228,6 +236,8 @@ rbl { rbl = "list.dnswl.org"; ipv6 = true; is_whitelist = true; + unknown = true; + whitelist_exception = "RCVD_IN_DNSWL"; whitelist_exception = "DNSWL_BLOCKED"; returncodes { RCVD_IN_DNSWL_NONE = "127.0.%d+.0"; diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index f16c3f1f4..c2c54dbe1 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -186,12 +186,12 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg) } if (additional_path) { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua;%s", - old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path); + rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s;%s", + RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, additional_path, old_path); } else { - rspamd_snprintf (path_buf, sizeof (path_buf), "%s;%s/lua/?.lua;%s/lua/?.lua", - old_path, RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR); + rspamd_snprintf (path_buf, sizeof (path_buf), "%s/lua/?.lua;%s/lua/?.lua;%s", + RSPAMD_PLUGINSDIR, RSPAMD_CONFDIR, old_path); } lua_pop (L, 1); |