Anton Yuzhaninov
07ed388683
[Minor] Tune Lua GC for Lua unit tests
Fixes sporadic unit test failures (on Mac OS X).
2 years ago
Vsevolod Stakhov
d0321f0863
[Minor] Off by one
2 years ago
Vsevolod Stakhov
7bf24f093d
[Minor] Fix a corner case
2 years ago
Vsevolod Stakhov
3ea9cf43a9
[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
2 years ago
Vsevolod Stakhov
47ff44ea15
[Rework] Make `rspamadm dmarc_report` default behaviour more sane
Issue: #4062
2 years ago
Vsevolod Stakhov
4899f78701
[Fix] Rework unshedule DNS request function
2 years ago
Vsevolod Stakhov
2fe30027a9
[Minor] Improve logging logic
2 years ago
Vsevolod Stakhov
3e6bc06d83
[Minor] Do not trigger obfuscated archive on undetecde 8bit characters
2 years ago
Vsevolod Stakhov
640c01b7d1
Merge pull request #4056 from fatalbanana/remove_result_fix
[Fix] Lua: task:remove_result didn't work in some cases
2 years ago
Andrew Lewis
51b2c5c23e
[Fix] Lua: task:remove_result didn't work in some cases
2 years ago
Vsevolod Stakhov
496a79ae43
Merge pull request #4055 from fatalbanana/remove_result_test
[Test] task:remove_symbol() on grouped virtual symbol
2 years ago
Andrew Lewis
225c8d92b6
[Test] task:remove_symbol() on grouped virtual symbol
2 years ago
Vsevolod Stakhov
c9f263111e
Merge pull request #4052 from twesterhever/rbl-dbl-helo-ptr-replyto
[Feature] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL as well
2 years ago
twesterhever
ab4a3f85c9
[Enhancement] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL too
2 years ago
Vsevolod Stakhov
fe4d6835d1
[Minor] Try to fix on-termination race
2 years ago
Vsevolod Stakhov
e4f52703c8
[Minor] Fix inversed logic
2 years ago
Vsevolod Stakhov
4f4aec0c82
[Minor] malloc -> g_malloc
2 years ago
Vsevolod Stakhov
00927e0ef0
[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
2 years ago
Vsevolod Stakhov
cc7c9000e0
[Minor] Sigh, reverse loop is bloody hard in C
2 years ago
Vsevolod Stakhov
4794767358
[Fix] Do not forget to clear pointers on IOC reset
2 years ago
Vsevolod Stakhov
673c7a93ea
[Rework] Take disabled flag into account
Issue: #4025
2 years ago
Vsevolod Stakhov
bb5e5fb414
[Rework] Allow to set a different behaviour for actions from settings
Issue: #4025
2 years ago
Vsevolod Stakhov
b1c2596306
Merge pull request #4049 from StSturge/feature/configdump_symbol_detail
[Minor] rspamadm configdump: parsing fixes and output enhancements
2 years ago
ssturges
b462d92056
Fix build error with conflicting definition between .h and .c
2 years ago
ssturges
639ec37769
Address PR review comments
2 years ago
Vsevolod Stakhov
9716dc82c2
[Minor] Improve documentation
2 years ago
Vsevolod Stakhov
5ab519244d
Merge pull request #4047 from a16bitsysop/ppc64le
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.
2 years ago
Duncan Bellamy
5c30f34906
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.
2 years ago
ssturges
54a39b0760
[Enhancement] Add rspamadm configdump option --symbol-detail which provides a consolidated output of every setting for a symbol across all configuration locations.
2 years ago
ssturges
13a13685b0
[Fix] Support definition of ungrouped symbol in conf file, use group info from lua or other conf file
2 years ago
Vsevolod Stakhov
f90765d9c8
[Minor] Oops, fix refactoring aftermath
2 years ago
Vsevolod Stakhov
19bfd5e302
[Minor] Fix a name and the description of bogus `user` field in the task
2 years ago
Vsevolod Stakhov
22db618165
[Minor] Remove redundant abs call
2 years ago
Vsevolod Stakhov
982901084d
[Fix] Unschedule DNS request when clearing IO channel
2 years ago
Vsevolod Stakhov
8fb3dc2ad5
[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.
2 years ago
Vsevolod Stakhov
d4af7a5a93
[Minor] Rbl: The default behaviour must be bypass
2 years ago
Vsevolod Stakhov
5890935eb1
[Minor] Rbl: Fix require symbols option
2 years ago
Vsevolod Stakhov
79b0b67f2d
[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
2 years ago
Vsevolod Stakhov
c52ec5f8f7
[Minor] Place obfuscated check properly to count u16 characters and not u8
2 years ago
Vsevolod Stakhov
e27291f671
[Minor] Fix for random monitored
Reported by: @moisseev
2 years ago
Vsevolod Stakhov
b936888752
[Minor] Improve logic to select a random monitored mode for RBLs
2 years ago
Vsevolod Stakhov
0213518a5f
[Minor] Add missing namespace
2 years ago
Vsevolod Stakhov
77e7bc98e0
[Minor] Composites: Always register composite symbols
2 years ago
Vsevolod Stakhov
b3073d94bd
[Minor] Deal with unknown weight more carefully to avoid special meaning of 0
The special unknown weight must be NAN not 0.0
2 years ago
Vsevolod Stakhov
0956f41e23
[Minor] Improve logging
2 years ago
Vsevolod Stakhov
eb577f16af
[Conf] Score MIME_OBFUSCATED_ARCHIVE to 8 points
2 years ago
Vsevolod Stakhov
1ae43b63ba
[Minor] Mime_types: Insert MIME_OBFUSCATED_ARCHIVE symbol
2 years ago
Vsevolod Stakhov
f1b30e10fa
[Minor] Add knobs to check if an archive was obfuscated
2 years ago
Vsevolod Stakhov
2d1c4a34eb
[Minor] Check archive file names for 'strange' stuff
2 years ago
Vsevolod Stakhov
246e62c22b
[Minor] Damn C++ implicit conversions
2 years ago