]>
source.dussan.org Git - rspamd.git/log
Carsten Rosenberg [Thu, 17 Mar 2022 18:56:52 +0000 (19:56 +0100)]
[Minor] lua_scanner - spamassassin - another try to match all spamd returns
fix #4088
Vsevolod Stakhov [Mon, 14 Mar 2022 21:02:30 +0000 (21:02 +0000)]
[Fix] Return a real number of recipients when dealing with aliases
Issue: #4104
Vsevolod Stakhov [Mon, 14 Mar 2022 20:06:59 +0000 (20:06 +0000)]
[Minor] Fix find to search for plain substrings only
Vsevolod Stakhov [Sun, 13 Mar 2022 16:27:20 +0000 (16:27 +0000)]
[Test] Add test for csv detection
Vsevolod Stakhov [Sun, 13 Mar 2022 16:14:49 +0000 (16:14 +0000)]
[Minor] Fix detection for some csv cases
Vsevolod Stakhov [Sun, 13 Mar 2022 15:54:10 +0000 (15:54 +0000)]
[Minor] Another fix for `task:get_symbol`
Vsevolod Stakhov [Sun, 13 Mar 2022 15:44:22 +0000 (15:44 +0000)]
[Minor] Fix use of task:get_symbol
Vsevolod Stakhov [Sat, 12 Mar 2022 10:58:25 +0000 (10:58 +0000)]
[Minor] Reputation: Another bunch of fixes
Issue: #4100
Vsevolod Stakhov [Fri, 11 Mar 2022 21:52:40 +0000 (21:52 +0000)]
[Minor] Reputation: Fix config variable
Vsevolod Stakhov [Thu, 10 Mar 2022 21:29:33 +0000 (21:29 +0000)]
[Fix] Apply the similar fix to the url_reputation
Issue: #4100
Vsevolod Stakhov [Thu, 10 Mar 2022 21:18:31 +0000 (21:18 +0000)]
[Fix] Properly find the request and the number of requested entries
Issue: #4100
Vsevolod Stakhov [Sun, 6 Mar 2022 17:14:04 +0000 (17:14 +0000)]
Merge pull request #4097 from moisseev/webui
Webui
Vsevolod Stakhov [Sat, 5 Mar 2022 21:02:09 +0000 (21:02 +0000)]
[Minor] Add average scan time metric
Issue: #4096
Vsevolod Stakhov [Sat, 5 Mar 2022 20:49:26 +0000 (20:49 +0000)]
[Minor] Deduplicate sum function
Vsevolod Stakhov [Sat, 5 Mar 2022 20:36:40 +0000 (20:36 +0000)]
[Minor] Move summation to a separate routine
Vsevolod Stakhov [Sat, 5 Mar 2022 20:30:41 +0000 (20:30 +0000)]
[Minor] Fix printing
moisseev [Sat, 5 Mar 2022 09:29:16 +0000 (12:29 +0300)]
[WebUI] Show scan time in server list
moisseev [Sat, 5 Mar 2022 09:19:01 +0000 (12:19 +0300)]
[Test] Enable ECMAScript 6 features
Vsevolod Stakhov [Fri, 4 Mar 2022 21:32:03 +0000 (21:32 +0000)]
[Minor] Move common stuff to a function
Vsevolod Stakhov [Wed, 2 Mar 2022 22:22:31 +0000 (22:22 +0000)]
[Minor] Obsolete old fuzzy epochs
Vsevolod Stakhov [Mon, 28 Feb 2022 20:25:39 +0000 (20:25 +0000)]
Merge pull request #4093 from citrin/str_endswith
[Minor] Microoptimize lua_util.str_endswith
Vsevolod Stakhov [Sun, 27 Feb 2022 16:55:17 +0000 (16:55 +0000)]
Merge pull request #4079 from HeinleinSupport/lua_scanners/icap
Lua scanners/icap
Carsten Rosenberg [Sun, 27 Feb 2022 16:54:19 +0000 (17:54 +0100)]
[Minor] lua_scanners - icap - lua linting
Carsten Rosenberg [Sun, 27 Feb 2022 15:43:25 +0000 (16:43 +0100)]
[Minor] lua_scanners - icap - adjust threat_table function
Carsten Rosenberg [Fri, 11 Feb 2022 13:49:58 +0000 (14:49 +0100)]
[Minor] lua_scanners - icap - update compatibility
Carsten Rosenberg [Fri, 3 Dec 2021 17:06:33 +0000 (18:06 +0100)]
[Minor] lua_scanners - icap - add another variant of icap return
Vsevolod Stakhov [Sun, 27 Feb 2022 09:49:27 +0000 (09:49 +0000)]
[Minor] Add missing division
Pointed by: @moisseev
Anton Yuzhaninov [Sat, 26 Feb 2022 13:56:36 +0000 (13:56 +0000)]
[Minor] Microoptimize lua_util.str_endswith
Use find to check string suffix instead of sub (which involves string
interning of a returned string). Benchmarks with LuaJIT 2.1.0 shows
that an option with find is significantly faster.
While here added unit test for this function.
Vsevolod Stakhov [Sat, 26 Feb 2022 13:31:58 +0000 (13:31 +0000)]
[Feature] Show average scan time in `rspamc stat` output
Vsevolod Stakhov [Sat, 26 Feb 2022 13:24:03 +0000 (13:24 +0000)]
[Feature] Output average scan time in /stat endpoint
Vsevolod Stakhov [Sat, 26 Feb 2022 13:05:01 +0000 (13:05 +0000)]
[Minor] Always report actions count
Vsevolod Stakhov [Sat, 26 Feb 2022 12:51:46 +0000 (12:51 +0000)]
[Minor] Mark `c` in Kahan sum volatile
Vsevolod Stakhov [Sat, 26 Feb 2022 12:43:04 +0000 (12:43 +0000)]
[Minor] Add average time processing slots
Vsevolod Stakhov [Sat, 26 Feb 2022 12:14:09 +0000 (12:14 +0000)]
[Minor] Align rspamd_stat structure
moisseev [Thu, 24 Feb 2022 14:06:24 +0000 (17:06 +0300)]
[Test] Ignore index.html
Josh Soref [Tue, 22 Feb 2022 22:01:28 +0000 (17:01 -0500)]
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
Vsevolod Stakhov [Sun, 20 Feb 2022 18:56:56 +0000 (18:56 +0000)]
Merge pull request #4085 from moisseev/d3pie
[WebUI] Replace pie chart library
moisseev [Sun, 20 Feb 2022 17:36:32 +0000 (20:36 +0300)]
[WebUI] Replace pie chart library
Vsevolod Stakhov [Thu, 17 Feb 2022 21:34:53 +0000 (21:34 +0000)]
[Minor] Strip message id from enclosing spaces
Issue: #4081
Vsevolod Stakhov [Thu, 17 Feb 2022 21:24:58 +0000 (21:24 +0000)]
[Test] Add a test case
Issue: #4081
Vsevolod Stakhov [Wed, 16 Feb 2022 21:18:47 +0000 (21:18 +0000)]
[Fix] External_relay: Remove useless check of the map value
Issue: #4080
Vsevolod Stakhov [Tue, 15 Feb 2022 20:32:56 +0000 (20:32 +0000)]
Merge pull request #4077 from citrin/DKIM_MIXED
[Rules] Fix symbol for DKIM temporary failure
Anton Yuzhaninov [Tue, 15 Feb 2022 14:33:08 +0000 (14:33 +0000)]
[Rules] Fix symbol for DKIM temporary failure
There is no R_DKIM_DNSFAIL symbol (in default config), but there is R_DKIM_TEMPFAIL.
Vsevolod Stakhov [Mon, 14 Feb 2022 21:10:35 +0000 (21:10 +0000)]
[Minor] Add an example for the lua_maps usage
Vsevolod Stakhov [Sun, 13 Feb 2022 12:56:43 +0000 (12:56 +0000)]
[Fix] When checking for phishing, we need to convert punicode -> UTF8, not vice versa
Previosly, Rspamd has checked for `xn--` signature just to convert it back to `xn--` form.
According to the expected results, it should do the opposite conversion.
Issue: #4065
Vsevolod Stakhov [Sun, 13 Feb 2022 12:46:44 +0000 (12:46 +0000)]
[Minor] Improve error reporting
Issue: #4076
Vsevolod Stakhov [Sat, 12 Feb 2022 13:03:15 +0000 (13:03 +0000)]
[Fix] Fix http maps shared memory cache cleanup
It must be initiated by active http worker as it really has the shm object
available.
Vsevolod Stakhov [Sat, 12 Feb 2022 13:02:59 +0000 (13:02 +0000)]
[Minor] Store map pointer in a backend structure
Vsevolod Stakhov [Sat, 12 Feb 2022 12:42:12 +0000 (12:42 +0000)]
[Minor] Add more logging for the shm cache for the maps
Vsevolod Stakhov [Thu, 10 Feb 2022 20:09:03 +0000 (20:09 +0000)]
Merge pull request #4074 from citrin/clickhouse
[Fix] ClickHouse cleanup of old partitions
Vsevolod Stakhov [Thu, 10 Feb 2022 20:07:36 +0000 (20:07 +0000)]
Merge pull request #4070 from moisseev/lua-stat
[Minor] Disable Received tokens
Vsevolod Stakhov [Thu, 10 Feb 2022 20:07:20 +0000 (20:07 +0000)]
Merge pull request #4069 from moisseev/webui
[Minor] WebUI CSS: Drop ancient gradient syntaxes
Anton Yuzhaninov [Thu, 10 Feb 2022 10:05:08 +0000 (10:05 +0000)]
[Fix] ClickHouse cleanup of old partitions
If /var/lib/rspamd/clickhouse_retention_run is missing or has no
number cleanup was not performed because of a following Lua error:
lua_periodic_callback_error: call to periodic script (registered at clickhouse.lua:1531) failed: /usr/share/rspamd/plugins/clickhouse.lua:991: attempt to compare number with nil; trace: [1]:{/usr/share/rspamd/plugins/clickhouse.lua:1069 - <unknown> [Lua]};
moisseev [Thu, 10 Feb 2022 08:53:58 +0000 (11:53 +0300)]
[Minor] Disable Received tokens
moisseev [Thu, 10 Feb 2022 08:08:50 +0000 (11:08 +0300)]
[Minor] WebUI CSS: Drop ancient gradient syntaxes
Vsevolod Stakhov [Wed, 9 Feb 2022 20:03:23 +0000 (20:03 +0000)]
Merge pull request #4067 from citrin/nitpick
[Minor] Remove repeated strcmp(key, "score")
Vsevolod Stakhov [Wed, 9 Feb 2022 20:02:43 +0000 (20:02 +0000)]
Merge pull request #4066 from citrin/lua-tests-gc
[Minor] Tune Lua GC for Lua unit tests
Anton Yuzhaninov [Tue, 8 Feb 2022 21:29:03 +0000 (21:29 +0000)]
[Minor] Remove repeated strcmp(key, "score")
Anton Yuzhaninov [Tue, 8 Feb 2022 21:22:34 +0000 (21:22 +0000)]
[Minor] Tune Lua GC for Lua unit tests
Fixes sporadic unit test failures (on Mac OS X).
Vsevolod Stakhov [Tue, 8 Feb 2022 09:05:35 +0000 (09:05 +0000)]
[Minor] Off by one
Vsevolod Stakhov [Mon, 7 Feb 2022 22:08:29 +0000 (22:08 +0000)]
[Minor] Fix a corner case
Vsevolod Stakhov [Mon, 7 Feb 2022 22:06:25 +0000 (22:06 +0000)]
[CritFix] Fix upstreams name resolution when there is also a port
This fix is intended to address the case when Rspamd queries for a hostname with
a port part when re-resolving upstreams addresses via the upstreams module.
Found by: @slavkoja
Confirmed by: @moisseev
Vsevolod Stakhov [Sun, 6 Feb 2022 20:15:46 +0000 (20:15 +0000)]
[Rework] Make `rspamadm dmarc_report` default behaviour more sane
Issue: #4062
Vsevolod Stakhov [Sat, 5 Feb 2022 12:28:30 +0000 (12:28 +0000)]
[Fix] Rework unshedule DNS request function
Vsevolod Stakhov [Fri, 4 Feb 2022 20:42:31 +0000 (20:42 +0000)]
[Minor] Improve logging logic
Vsevolod Stakhov [Thu, 3 Feb 2022 23:00:26 +0000 (23:00 +0000)]
[Minor] Do not trigger obfuscated archive on undetecde 8bit characters
Vsevolod Stakhov [Wed, 2 Feb 2022 20:11:04 +0000 (20:11 +0000)]
Merge pull request #4056 from fatalbanana/remove_result_fix
[Fix] Lua: task:remove_result didn't work in some cases
Andrew Lewis [Wed, 2 Feb 2022 10:14:29 +0000 (12:14 +0200)]
[Fix] Lua: task:remove_result didn't work in some cases
Vsevolod Stakhov [Tue, 1 Feb 2022 20:44:29 +0000 (20:44 +0000)]
Merge pull request #4055 from fatalbanana/remove_result_test
[Test] task:remove_symbol() on grouped virtual symbol
Andrew Lewis [Tue, 1 Feb 2022 11:09:19 +0000 (13:09 +0200)]
[Test] task:remove_symbol() on grouped virtual symbol
Vsevolod Stakhov [Mon, 31 Jan 2022 20:03:36 +0000 (20:03 +0000)]
Merge pull request #4052 from twesterhever/rbl-dbl-helo-ptr-replyto
[Feature] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL as well
twesterhever [Sun, 30 Jan 2022 13:35:57 +0000 (13:35 +0000)]
[Enhancement] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL too
Vsevolod Stakhov [Sun, 30 Jan 2022 12:24:31 +0000 (12:24 +0000)]
[Minor] Try to fix on-termination race
Vsevolod Stakhov [Sat, 29 Jan 2022 14:02:48 +0000 (14:02 +0000)]
[Minor] Fix inversed logic
Vsevolod Stakhov [Sat, 29 Jan 2022 13:49:34 +0000 (13:49 +0000)]
[Minor] malloc -> g_malloc
Vsevolod Stakhov [Sat, 29 Jan 2022 13:44:50 +0000 (13:44 +0000)]
[Fix] Fix host header usage in lua_http
The issue is that `rspamd_http_message_get_http_host` actually returns
non zero-terminated string in the case where `Host` header is found in a
message. Hence, we *cannot* treat it as a zero terminated string.
The proper approach is to use `rspamd_ftok_t` everywhere for strings
but the change will be too intrusive, since it also involves many libraries,
e.g. `rdns` and others.
The current approach is much simplier: just copy a string into a temporary
buffer ensuring that it is zero terminated in all the cases.
Issue: #4051
Vsevolod Stakhov [Sat, 29 Jan 2022 13:08:38 +0000 (13:08 +0000)]
[Minor] Sigh, reverse loop is bloody hard in C
Vsevolod Stakhov [Sat, 29 Jan 2022 12:46:18 +0000 (12:46 +0000)]
[Fix] Do not forget to clear pointers on IOC reset
Vsevolod Stakhov [Sat, 29 Jan 2022 12:39:47 +0000 (12:39 +0000)]
[Rework] Take disabled flag into account
Issue: #4025
Vsevolod Stakhov [Sat, 29 Jan 2022 12:27:41 +0000 (12:27 +0000)]
[Rework] Allow to set a different behaviour for actions from settings
Issue: #4025
Vsevolod Stakhov [Fri, 28 Jan 2022 19:47:25 +0000 (19:47 +0000)]
Merge pull request #4049 from StSturge/feature/configdump_symbol_detail
[Minor] rspamadm configdump: parsing fixes and output enhancements
ssturges [Thu, 27 Jan 2022 23:35:29 +0000 (18:35 -0500)]
Fix build error with conflicting definition between .h and .c
ssturges [Thu, 27 Jan 2022 22:14:57 +0000 (17:14 -0500)]
Address PR review comments
Vsevolod Stakhov [Wed, 26 Jan 2022 20:58:56 +0000 (20:58 +0000)]
[Minor] Improve documentation
Vsevolod Stakhov [Tue, 25 Jan 2022 21:19:28 +0000 (21:19 +0000)]
Merge pull request #4047 from a16bitsysop/ppc64le
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.
Duncan Bellamy [Sat, 22 Jan 2022 11:41:53 +0000 (11:41 +0000)]
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.
ssturges [Tue, 25 Jan 2022 18:39:09 +0000 (13:39 -0500)]
[Enhancement] Add rspamadm configdump option --symbol-detail which provides a consolidated output of every setting for a symbol across all configuration locations.
ssturges [Tue, 25 Jan 2022 18:37:10 +0000 (13:37 -0500)]
[Fix] Support definition of ungrouped symbol in conf file, use group info from lua or other conf file
Vsevolod Stakhov [Mon, 24 Jan 2022 19:48:52 +0000 (19:48 +0000)]
[Minor] Oops, fix refactoring aftermath
Vsevolod Stakhov [Mon, 24 Jan 2022 19:04:26 +0000 (19:04 +0000)]
[Minor] Fix a name and the description of bogus `user` field in the task
Vsevolod Stakhov [Sun, 23 Jan 2022 19:47:48 +0000 (19:47 +0000)]
[Minor] Remove redundant abs call
Vsevolod Stakhov [Sat, 22 Jan 2022 12:29:51 +0000 (12:29 +0000)]
[Fix] Unschedule DNS request when clearing IO channel
Vsevolod Stakhov [Fri, 21 Jan 2022 21:08:16 +0000 (21:08 +0000)]
[Minor] Use raw more intentionally in a client
--raw flag now means raw **input**, and there is a special flag to emit
reply in ucl. Previously, `--raw` and `--ucl` had the same meaning which
was stupid. Now `--raw` is an input flag whilst `--ucl` is an output flag
as intended.
Vsevolod Stakhov [Wed, 19 Jan 2022 21:14:07 +0000 (21:14 +0000)]
[Minor] Rbl: The default behaviour must be bypass
Vsevolod Stakhov [Wed, 19 Jan 2022 21:01:10 +0000 (21:01 +0000)]
[Minor] Rbl: Fix require symbols option
Vsevolod Stakhov [Tue, 18 Jan 2022 21:26:27 +0000 (21:26 +0000)]
[Minor] Remove sequential algorithm as it is not actually a rotation alg
Sequential rotation was used just to rotate all upstreams in the loop (e.g.
when you need to do some action for all upstreams). Allowing to specify it as
a user defined algorithm was a mistake as it breaks upstreams API expectations.
See #4043
Vsevolod Stakhov [Mon, 17 Jan 2022 21:26:40 +0000 (21:26 +0000)]
[Minor] Place obfuscated check properly to count u16 characters and not u8
Vsevolod Stakhov [Sun, 16 Jan 2022 20:20:34 +0000 (20:20 +0000)]
[Minor] Fix for random monitored
Reported by: @moisseev
Vsevolod Stakhov [Sat, 15 Jan 2022 12:57:50 +0000 (12:57 +0000)]
[Minor] Improve logic to select a random monitored mode for RBLs
Vsevolod Stakhov [Sat, 15 Jan 2022 12:28:15 +0000 (12:28 +0000)]
[Minor] Add missing namespace