]> source.dussan.org Git - rspamd.git/log
rspamd.git
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[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

2 years ago[Minor] Use unhex utility
Vsevolod Stakhov [Tue, 21 Dec 2021 21:18:17 +0000 (21:18 +0000)]
[Minor] Use unhex utility

2 years ago[Minor] Add unhex utility
Vsevolod Stakhov [Tue, 21 Dec 2021 20:21:06 +0000 (20:21 +0000)]
[Minor] Add unhex utility

2 years ago[Minor] Enable redis periodics for the fuzzy worker
Vsevolod Stakhov [Mon, 20 Dec 2021 16:36:55 +0000 (16:36 +0000)]
[Minor] Enable redis periodics for the fuzzy worker

2 years agoMerge pull request #4013 from dupondje/add_pdf_mapping
Vsevolod Stakhov [Sun, 19 Dec 2021 14:27:22 +0000 (14:27 +0000)]
Merge pull request #4013 from dupondje/add_pdf_mapping

Map application/x-pdf to pdf

2 years agoMerge pull request #4010 from dupondje/mailspike_wl
Vsevolod Stakhov [Sun, 19 Dec 2021 14:27:11 +0000 (14:27 +0000)]
Merge pull request #4010 from dupondje/mailspike_wl

Assign weights to Mailspike Whitelists

2 years agoMerge pull request #4015 from moisseev/eslint
Vsevolod Stakhov [Sat, 18 Dec 2021 19:28:05 +0000 (19:28 +0000)]
Merge pull request #4015 from moisseev/eslint

[Test]  Disable prefer-object-has-own ESLint rule

2 years ago[Test] Disable prefer-object-has-own ESLint rule 4015/head
moisseev [Sat, 18 Dec 2021 19:22:24 +0000 (22:22 +0300)]
[Test]  Disable prefer-object-has-own ESLint rule

as Object.hasOwn(…) is not implemented in Pale Moon.

2 years agoMerge pull request #4014 from moisseev/webui
Vsevolod Stakhov [Sat, 18 Dec 2021 19:12:47 +0000 (19:12 +0000)]
Merge pull request #4014 from moisseev/webui

[WebUI] Fix saving credentials in password manager

2 years ago[WebUI] Fix saving credentials in password manager 4014/head
moisseev [Sat, 18 Dec 2021 17:44:39 +0000 (20:44 +0300)]
[WebUI] Fix saving credentials in password manager

for recent browser versions.

2 years ago[Minor] Increase EDNS0 max packet size to couple with some poor TXT records
Vsevolod Stakhov [Fri, 17 Dec 2021 18:08:24 +0000 (18:08 +0000)]
[Minor] Increase EDNS0 max packet size to couple with some poor TXT records

2 years ago[Minor] Clear up on lua errors
Vsevolod Stakhov [Fri, 17 Dec 2021 12:04:00 +0000 (12:04 +0000)]
[Minor] Clear up on lua errors

2 years agoMap application/x-pdf to pdf 4013/head
Jean-Louis Dupond [Fri, 17 Dec 2021 09:18:35 +0000 (10:18 +0100)]
Map application/x-pdf to pdf

Some mails were marked as
MIME_BAD_ATTACHMENT (4) [pdf:application/x-pdf]

application/x-pdf might be obsolete but still used.

2 years agoAssign weights to Mailspike Whitelists 4010/head
Jean-Louis Dupond [Thu, 16 Dec 2021 15:18:42 +0000 (16:18 +0100)]
Assign weights to Mailspike Whitelists

Assign a weight to the MAILSPIKE whitelist RBL symbols.
Use the same but negative weight as its blacklist counterparts.

Also fix some indents in the file

2 years ago[Minor] Really set a sane font size
Vsevolod Stakhov [Thu, 16 Dec 2021 15:50:52 +0000 (15:50 +0000)]
[Minor] Really set a sane font size