]> source.dussan.org Git - rspamd.git/log
rspamd.git
2 years agoMerge pull request #4052 from twesterhever/rbl-dbl-helo-ptr-replyto
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

2 years ago[Enhancement] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL too 4052/head
twesterhever [Sun, 30 Jan 2022 13:35:57 +0000 (13:35 +0000)]
[Enhancement] Query HELOs, PTRs, and Reply-To's against Spamhaus DBL too

2 years ago[Minor] Try to fix on-termination race
Vsevolod Stakhov [Sun, 30 Jan 2022 12:24:31 +0000 (12:24 +0000)]
[Minor] Try to fix on-termination race

2 years ago[Minor] Fix inversed logic
Vsevolod Stakhov [Sat, 29 Jan 2022 14:02:48 +0000 (14:02 +0000)]
[Minor] Fix inversed logic

2 years ago[Minor] malloc -> g_malloc
Vsevolod Stakhov [Sat, 29 Jan 2022 13:49:34 +0000 (13:49 +0000)]
[Minor] malloc -> g_malloc

2 years ago[Fix] Fix host header usage in lua_http
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

2 years ago[Minor] Sigh, reverse loop is bloody hard in C
Vsevolod Stakhov [Sat, 29 Jan 2022 13:08:38 +0000 (13:08 +0000)]
[Minor] Sigh, reverse loop is bloody hard in C

2 years ago[Fix] Do not forget to clear pointers on IOC reset
Vsevolod Stakhov [Sat, 29 Jan 2022 12:46:18 +0000 (12:46 +0000)]
[Fix] Do not forget to clear pointers on IOC reset

2 years ago[Rework] Take disabled flag into account
Vsevolod Stakhov [Sat, 29 Jan 2022 12:39:47 +0000 (12:39 +0000)]
[Rework] Take disabled flag into account

Issue: #4025

2 years ago[Rework] Allow to set a different behaviour for actions from settings
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

2 years agoMerge pull request #4049 from StSturge/feature/configdump_symbol_detail
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

2 years agoFix build error with conflicting definition between .h and .c 4049/head
ssturges [Thu, 27 Jan 2022 23:35:29 +0000 (18:35 -0500)]
Fix build error with conflicting definition between .h and .c

2 years agoAddress PR review comments
ssturges [Thu, 27 Jan 2022 22:14:57 +0000 (17:14 -0500)]
Address PR review comments

2 years ago[Minor] Improve documentation
Vsevolod Stakhov [Wed, 26 Jan 2022 20:58:56 +0000 (20:58 +0000)]
[Minor] Improve documentation

2 years agoMerge pull request #4047 from a16bitsysop/ppc64le
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.

2 years ago[Feature] Allow hyperscan for ppc64, as vectorscan now suports it. 4047/head
Duncan Bellamy [Sat, 22 Jan 2022 11:41:53 +0000 (11:41 +0000)]
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.

2 years ago[Enhancement] Add rspamadm configdump option --symbol-detail which provides a consoli...
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.

2 years ago[Fix] Support definition of ungrouped symbol in conf file, use group info from lua...
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

2 years ago[Minor] Oops, fix refactoring aftermath
Vsevolod Stakhov [Mon, 24 Jan 2022 19:48:52 +0000 (19:48 +0000)]
[Minor] Oops, fix refactoring aftermath

2 years ago[Minor] Fix a name and the description of bogus `user` field in the task
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

2 years ago[Minor] Remove redundant abs call
Vsevolod Stakhov [Sun, 23 Jan 2022 19:47:48 +0000 (19:47 +0000)]
[Minor] Remove redundant abs call

2 years ago[Fix] Unschedule DNS request when clearing IO channel
Vsevolod Stakhov [Sat, 22 Jan 2022 12:29:51 +0000 (12:29 +0000)]
[Fix] Unschedule DNS request when clearing IO channel

2 years ago[Minor] Use raw more intentionally in a client
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.

2 years ago[Minor] Rbl: The default behaviour must be bypass
Vsevolod Stakhov [Wed, 19 Jan 2022 21:14:07 +0000 (21:14 +0000)]
[Minor] Rbl: The default behaviour must be bypass

2 years ago[Minor] Rbl: Fix require symbols option
Vsevolod Stakhov [Wed, 19 Jan 2022 21:01:10 +0000 (21:01 +0000)]
[Minor] Rbl: Fix require symbols option

2 years ago[Minor] Remove sequential algorithm as it is not actually a rotation alg
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

2 years ago[Minor] Place obfuscated check properly to count u16 characters and not u8
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

2 years ago[Minor] Fix for random monitored
Vsevolod Stakhov [Sun, 16 Jan 2022 20:20:34 +0000 (20:20 +0000)]
[Minor] Fix for random monitored

Reported by: @moisseev

2 years ago[Minor] Improve logic to select a random monitored mode for RBLs
Vsevolod Stakhov [Sat, 15 Jan 2022 12:57:50 +0000 (12:57 +0000)]
[Minor] Improve logic to select a random monitored mode for RBLs

2 years ago[Minor] Add missing namespace
Vsevolod Stakhov [Sat, 15 Jan 2022 12:28:15 +0000 (12:28 +0000)]
[Minor] Add missing namespace

2 years ago[Minor] Composites: Always register composite symbols
Vsevolod Stakhov [Sat, 15 Jan 2022 12:25:02 +0000 (12:25 +0000)]
[Minor] Composites: Always register composite symbols

2 years ago[Minor] Deal with unknown weight more carefully to avoid special meaning of 0
Vsevolod Stakhov [Sat, 15 Jan 2022 12:24:25 +0000 (12:24 +0000)]
[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[Minor] Improve logging
Vsevolod Stakhov [Thu, 13 Jan 2022 20:54:39 +0000 (20:54 +0000)]
[Minor] Improve logging

2 years ago[Conf] Score MIME_OBFUSCATED_ARCHIVE to 8 points
Vsevolod Stakhov [Thu, 13 Jan 2022 20:45:14 +0000 (20:45 +0000)]
[Conf] Score MIME_OBFUSCATED_ARCHIVE to 8 points

2 years ago[Minor] Mime_types: Insert MIME_OBFUSCATED_ARCHIVE symbol
Vsevolod Stakhov [Thu, 13 Jan 2022 20:44:57 +0000 (20:44 +0000)]
[Minor] Mime_types: Insert MIME_OBFUSCATED_ARCHIVE symbol

2 years ago[Minor] Add knobs to check if an archive was obfuscated
Vsevolod Stakhov [Thu, 13 Jan 2022 20:44:37 +0000 (20:44 +0000)]
[Minor] Add knobs to check if an archive was obfuscated

2 years ago[Minor] Check archive file names for 'strange' stuff
Vsevolod Stakhov [Wed, 12 Jan 2022 21:04:17 +0000 (21:04 +0000)]
[Minor] Check archive file names for 'strange' stuff

2 years ago[Minor] Damn C++ implicit conversions
Vsevolod Stakhov [Tue, 11 Jan 2022 21:21:43 +0000 (21:21 +0000)]
[Minor] Damn C++ implicit conversions

2 years ago[Minor] Oops, fix foldl call
Vsevolod Stakhov [Tue, 11 Jan 2022 20:59:25 +0000 (20:59 +0000)]
[Minor] Oops, fix foldl call

2 years ago[Minor] Fix some issues in URI_COUNT_ODD rule
Vsevolod Stakhov [Tue, 11 Jan 2022 20:25:52 +0000 (20:25 +0000)]
[Minor] Fix some issues in URI_COUNT_ODD rule

Issue: #4037

2 years ago[Minor] Set special flag for non A generated html urls
Vsevolod Stakhov [Tue, 11 Jan 2022 20:25:27 +0000 (20:25 +0000)]
[Minor] Set special flag for non A generated html urls

2 years ago[Minor] Add `special` flag for URLs
Vsevolod Stakhov [Tue, 11 Jan 2022 20:25:12 +0000 (20:25 +0000)]
[Minor] Add `special` flag for URLs

2 years ago[Fix] Fix exclude flags setting
Vsevolod Stakhov [Tue, 11 Jan 2022 20:24:51 +0000 (20:24 +0000)]
[Fix] Fix exclude flags setting

2 years ago[Minor] Arc: Do not fail if no AAR header is presented
Vsevolod Stakhov [Mon, 10 Jan 2022 19:57:31 +0000 (19:57 +0000)]
[Minor] Arc: Do not fail if no AAR header is presented

2 years ago[Minor] Arc: Add logic to adjust rejected dmarc policy by ARC trusted forwarding
Vsevolod Stakhov [Sun, 9 Jan 2022 18:00:32 +0000 (18:00 +0000)]
[Minor] Arc: Add logic to adjust rejected dmarc policy by ARC trusted forwarding

2 years ago[Minor] Arc: Use ARC_CHECK as the callback symbol's name
Vsevolod Stakhov [Sun, 9 Jan 2022 17:13:46 +0000 (17:13 +0000)]
[Minor] Arc: Use ARC_CHECK as the callback symbol's name

2 years ago[Minor] Arc: Check AAR on trusted forwarding check
Vsevolod Stakhov [Sun, 9 Jan 2022 12:59:18 +0000 (12:59 +0000)]
[Minor] Arc: Check AAR on trusted forwarding check

2 years ago[Minor] Fix iteration
Vsevolod Stakhov [Sat, 8 Jan 2022 20:44:45 +0000 (20:44 +0000)]
[Minor] Fix iteration

2 years ago[Minor] Arc: Process AAR headers
Vsevolod Stakhov [Sat, 8 Jan 2022 14:43:34 +0000 (14:43 +0000)]
[Minor] Arc: Process AAR headers

2 years ago[Minor] Add authentication results parser function
Vsevolod Stakhov [Sat, 8 Jan 2022 14:34:58 +0000 (14:34 +0000)]
[Minor] Add authentication results parser function

2 years ago[Minor] Arc: Rename bogus variable
Vsevolod Stakhov [Sat, 8 Jan 2022 12:09:01 +0000 (12:09 +0000)]
[Minor] Arc: Rename bogus variable

2 years ago[Minor] Close socket on connect error
Vsevolod Stakhov [Fri, 7 Jan 2022 14:16:24 +0000 (14:16 +0000)]
[Minor] Close socket on connect error

2 years ago[Fix] Add guards to avoid race condition on TCP connection
Vsevolod Stakhov [Fri, 7 Jan 2022 14:12:05 +0000 (14:12 +0000)]
[Fix] Add guards to avoid race condition on TCP connection

2 years ago[Rework] Timeouts are now global per event and not reseted by IO activity
Vsevolod Stakhov [Thu, 6 Jan 2022 15:12:50 +0000 (15:12 +0000)]
[Rework] Timeouts are now global per event and not reseted by IO activity

This actually reproduces old libevent behaviour and it was changed by a big design mistake.
We really want IO timeouts to be fired for the whole set of subsequent events, otherwise it should be
designed in a more configurable way...

2 years ago[Minor] Fix parsing of the very long TXT records
Vsevolod Stakhov [Thu, 6 Jan 2022 15:03:23 +0000 (15:03 +0000)]
[Minor] Fix parsing of the very long TXT records

2 years ago[Fix] Fix expanding of the variables
Vsevolod Stakhov [Thu, 6 Jan 2022 14:47:10 +0000 (14:47 +0000)]
[Fix] Fix expanding of the variables

2 years ago[Fix] Backport PR from libucl
Vsevolod Stakhov [Thu, 6 Jan 2022 14:05:35 +0000 (14:05 +0000)]
[Fix] Backport PR from libucl

https://github.com/vstakhov/libucl/pull/260

2 years ago[Fix] Fix HTTP(s) client timeout
Vsevolod Stakhov [Wed, 5 Jan 2022 21:36:58 +0000 (21:36 +0000)]
[Fix] Fix HTTP(s) client timeout

2 years ago[Minor] Rdns: Fix hash delisting
Vsevolod Stakhov [Wed, 5 Jan 2022 20:08:26 +0000 (20:08 +0000)]
[Minor] Rdns: Fix hash delisting

2 years ago[Minor] Fix format string
Vsevolod Stakhov [Wed, 5 Jan 2022 17:02:39 +0000 (17:02 +0000)]
[Minor] Fix format string

2 years ago[Minor] Use memcpy instead of unaligned access
Vsevolod Stakhov [Wed, 5 Jan 2022 13:51:30 +0000 (13:51 +0000)]
[Minor] Use memcpy instead of unaligned access

2 years ago[Minor] Init xxhash3 state properly
Vsevolod Stakhov [Wed, 5 Jan 2022 13:51:17 +0000 (13:51 +0000)]
[Minor] Init xxhash3 state properly

2 years agoMerge pull request #4033 from rspamd/rdns-tcp-rework
Vsevolod Stakhov [Wed, 5 Jan 2022 11:21:59 +0000 (11:21 +0000)]
Merge pull request #4033 from rspamd/rdns-tcp-rework

Rdns tcp rework

2 years ago[Project] Rdns: Fix various ownership issues rdns-tcp-rework 4033/head
Vsevolod Stakhov [Wed, 5 Jan 2022 11:05:57 +0000 (11:05 +0000)]
[Project] Rdns: Fix various ownership issues

2 years ago[Project] Rdns: Restore the previous EDNS0 size
Vsevolod Stakhov [Wed, 5 Jan 2022 10:00:50 +0000 (10:00 +0000)]
[Project] Rdns: Restore the previous EDNS0 size

2 years ago[Project] Rdns: Add timeout logic for TCP requests
Vsevolod Stakhov [Wed, 5 Jan 2022 10:00:17 +0000 (10:00 +0000)]
[Project] Rdns: Add timeout logic for TCP requests

2 years ago[Project] Rdns: More fixes in TCP handling
Vsevolod Stakhov [Wed, 5 Jan 2022 09:56:25 +0000 (09:56 +0000)]
[Project] Rdns: More fixes in TCP handling

2 years ago[Project] Rdns: Unregister TCP requests
Vsevolod Stakhov [Wed, 5 Jan 2022 08:59:43 +0000 (08:59 +0000)]
[Project] Rdns: Unregister TCP requests

2 years ago[Project] Rdns: Send truncated replies via TCP
Vsevolod Stakhov [Tue, 4 Jan 2022 21:46:40 +0000 (21:46 +0000)]
[Project] Rdns: Send truncated replies via TCP

2 years agoMerge pull request #4031 from dupondje/add_soft_reject
Vsevolod Stakhov [Mon, 3 Jan 2022 21:59:16 +0000 (21:59 +0000)]
Merge pull request #4031 from dupondje/add_soft_reject

[Minor] Add no soft reject selector for metadata exporter

2 years ago[Project] Rdns: Fix TCP stuff cleanup
Vsevolod Stakhov [Mon, 3 Jan 2022 20:55:54 +0000 (20:55 +0000)]
[Project] Rdns: Fix TCP stuff cleanup

2 years ago[Project] Rdns: Add preliminary reading logic for TCP channels
Vsevolod Stakhov [Mon, 3 Jan 2022 17:13:37 +0000 (17:13 +0000)]
[Project] Rdns: Add preliminary reading logic for TCP channels

2 years ago[Minor] Add no soft reject selector for metadata exporter 4031/head
Jean-Louis Dupond [Mon, 3 Jan 2022 12:42:49 +0000 (13:42 +0100)]
[Minor] Add no soft reject selector for metadata exporter

I think its quite common to not export soft rejects via the metadata
exporter. Because when its not spam, the sender will most likely try to
redeliver it again anyway.

2 years ago[Project] Rdns: Implement TCP writing logic
Vsevolod Stakhov [Mon, 3 Jan 2022 11:31:30 +0000 (11:31 +0000)]
[Project] Rdns: Implement TCP writing logic

2 years ago[Project] Rdns: Fix TCP connection mess
Vsevolod Stakhov [Mon, 3 Jan 2022 00:27:13 +0000 (00:27 +0000)]
[Project] Rdns: Fix TCP connection mess

2 years ago[Project] Rdns: Add reaper for inactive TCP connections
Vsevolod Stakhov [Sun, 2 Jan 2022 23:53:55 +0000 (23:53 +0000)]
[Project] Rdns: Add reaper for inactive TCP connections

2 years agoMerge pull request #4030 from moisseev/webui
Vsevolod Stakhov [Sun, 2 Jan 2022 23:04:16 +0000 (23:04 +0000)]
Merge pull request #4030 from moisseev/webui

[WebUI] Add scan options

2 years ago[Project] Rdns: Add more functions for TCP based requests
Vsevolod Stakhov [Sun, 2 Jan 2022 21:29:28 +0000 (21:29 +0000)]
[Project] Rdns: Add more functions for TCP based requests

2 years ago[Fix] Fix removing from khash
Vsevolod Stakhov [Sun, 2 Jan 2022 20:49:45 +0000 (20:49 +0000)]
[Fix] Fix removing from khash

2 years ago[Project] Rdns: Do not treat TCP channels failure as fatal
Vsevolod Stakhov [Sun, 2 Jan 2022 10:34:05 +0000 (10:34 +0000)]
[Project] Rdns: Do not treat TCP channels failure as fatal

2 years ago[WebUI] Add scan options 4030/head
moisseev [Sun, 2 Jan 2022 08:05:58 +0000 (11:05 +0300)]
[WebUI] Add scan options

which allow to set HTTP headers for scan request

2 years ago[Project] Further DNS over TCP architecturing
Vsevolod Stakhov [Sat, 1 Jan 2022 22:49:48 +0000 (22:49 +0000)]
[Project] Further DNS over TCP architecturing

2 years ago[Project] Rdns: Initial support of TCP IO channels
Vsevolod Stakhov [Sat, 1 Jan 2022 17:49:27 +0000 (17:49 +0000)]
[Project] Rdns: Initial support of TCP IO channels

2 years ago[Rework] Rdns: Use faster and more compact hash table for DNS requests
Vsevolod Stakhov [Sat, 1 Jan 2022 17:05:59 +0000 (17:05 +0000)]
[Rework] Rdns: Use faster and more compact hash table for DNS requests

2 years ago[Minor] Rdns: Use flags for IO channels
Vsevolod Stakhov [Sat, 1 Jan 2022 16:43:37 +0000 (16:43 +0000)]
[Minor] Rdns: Use flags for IO channels

2 years ago[Minor] Dkim_keygen: Use 0640 instead of 0600
Vsevolod Stakhov [Thu, 30 Dec 2021 21:09:15 +0000 (21:09 +0000)]
[Minor] Dkim_keygen: Use 0640 instead of 0600

Suggested by: @moisseev
Issue: #4023

2 years ago[Minor] Set 0600 mode on privkey files by default
Vsevolod Stakhov [Wed, 29 Dec 2021 21:32:07 +0000 (21:32 +0000)]
[Minor] Set 0600 mode on privkey files by default

Issue: #4023

2 years ago[Minor] Slightly improve session events logging
Vsevolod Stakhov [Tue, 28 Dec 2021 20:15:50 +0000 (20:15 +0000)]
[Minor] Slightly improve session events logging

2 years ago[Minor] Refactor argument/member name for better soundness
Vsevolod Stakhov [Mon, 27 Dec 2021 21:05:35 +0000 (21:05 +0000)]
[Minor] Refactor argument/member name for better soundness

2 years ago[Minor] Log events on forced timeout
Vsevolod Stakhov [Mon, 27 Dec 2021 18:45:43 +0000 (18:45 +0000)]
[Minor] Log events on forced timeout

2 years ago[Minor] Sigh, one more fix to the conditions
Vsevolod Stakhov [Sun, 26 Dec 2021 20:09:14 +0000 (20:09 +0000)]
[Minor] Sigh, one more fix to the conditions

2 years ago[Minor] Add namespace
Vsevolod Stakhov [Sun, 26 Dec 2021 19:59:27 +0000 (19:59 +0000)]
[Minor] Add namespace

2 years ago[Minor] Fix another overflow
Vsevolod Stakhov [Sun, 26 Dec 2021 19:56:58 +0000 (19:56 +0000)]
[Minor] Fix another overflow

2 years ago[Minor] Check for NULL pointer
Vsevolod Stakhov [Sat, 25 Dec 2021 20:22:18 +0000 (20:22 +0000)]
[Minor] Check for NULL pointer

2 years ago[Minor] More divisions by zero
Vsevolod Stakhov [Sat, 25 Dec 2021 20:17:08 +0000 (20:17 +0000)]
[Minor] More divisions by zero

2 years ago[Minor] Fix division by zero
Vsevolod Stakhov [Sat, 25 Dec 2021 20:02:54 +0000 (20:02 +0000)]
[Minor] Fix division by zero

2 years agoMerge pull request #4019 from rekup/fix/arc_whitelisted_signers_map
Vsevolod Stakhov [Fri, 24 Dec 2021 10:35:21 +0000 (10:35 +0000)]
Merge pull request #4019 from rekup/fix/arc_whitelisted_signers_map

[Fix] Avoid overwriting whitelisted_signers_map

2 years ago[Fix] Avoid overwriting whitelisted_signers_map 4019/head
Reto Kupferschmid [Thu, 23 Dec 2021 21:53:50 +0000 (22:53 +0100)]
[Fix] Avoid overwriting whitelisted_signers_map

2 years ago[Fix] Try to revert back maps content on errors properly
Vsevolod Stakhov [Wed, 22 Dec 2021 20:47:13 +0000 (20:47 +0000)]
[Fix] Try to revert back maps content on errors properly

2 years ago[Minor] Fix fuzzy hashes exporting
Vsevolod Stakhov [Wed, 22 Dec 2021 20:04:05 +0000 (20:04 +0000)]
[Minor] Fix fuzzy hashes exporting

Suggested by: @dupondje