]> source.dussan.org Git - rspamd.git/log
rspamd.git
8 years agoFix task:has_flag method
Vsevolod Stakhov [Thu, 25 Feb 2016 15:13:07 +0000 (15:13 +0000)]
Fix task:has_flag method

8 years agoSome fixes to the previous commit
Vsevolod Stakhov [Thu, 25 Feb 2016 11:08:24 +0000 (11:08 +0000)]
Some fixes to the previous commit

8 years agoAdd auth support and db selection for redis stats
Vsevolod Stakhov [Thu, 25 Feb 2016 10:35:58 +0000 (10:35 +0000)]
Add auth support and db selection for redis stats

8 years agoFix a stupid mistake
Vsevolod Stakhov [Wed, 24 Feb 2016 23:15:05 +0000 (23:15 +0000)]
Fix a stupid mistake

8 years agoRework system of symbols registration
Vsevolod Stakhov [Wed, 24 Feb 2016 17:54:30 +0000 (17:54 +0000)]
Rework system of symbols registration

It is possible now to use priorities when adding symbols to metrics and
override scores for symbols with lower priority with the scores with
high priority.

8 years agoRework lua errors reporting
Vsevolod Stakhov [Wed, 24 Feb 2016 15:04:33 +0000 (15:04 +0000)]
Rework lua errors reporting

8 years agoFix DKIM verification for empty DKIM signatures
Vsevolod Stakhov [Wed, 24 Feb 2016 14:34:09 +0000 (14:34 +0000)]
Fix DKIM verification for empty DKIM signatures

8 years agoTemporary disable JIT when using valgrind
Vsevolod Stakhov [Wed, 24 Feb 2016 13:19:05 +0000 (13:19 +0000)]
Temporary disable JIT when using valgrind

8 years agoFix pcre jit fast path (one more time)
Vsevolod Stakhov [Tue, 23 Feb 2016 17:47:33 +0000 (17:47 +0000)]
Fix pcre jit fast path (one more time)

8 years agoFix has_symbol method
Vsevolod Stakhov [Tue, 23 Feb 2016 17:47:17 +0000 (17:47 +0000)]
Fix has_symbol method

8 years agoTry to workaround for double free in redis
Vsevolod Stakhov [Tue, 23 Feb 2016 16:24:07 +0000 (16:24 +0000)]
Try to workaround for double free in redis

8 years agoAdd sanity guards for ip_score
Vsevolod Stakhov [Tue, 23 Feb 2016 11:36:47 +0000 (11:36 +0000)]
Add sanity guards for ip_score

Issue: #536
Reported by: @AlexeySa

8 years agoFix some more issues found by coverity
Vsevolod Stakhov [Mon, 22 Feb 2016 23:39:49 +0000 (23:39 +0000)]
Fix some more issues found by coverity

8 years agoOops, fix task:get_user
Vsevolod Stakhov [Mon, 22 Feb 2016 23:25:29 +0000 (23:25 +0000)]
Oops, fix task:get_user

8 years agoAdd more strict checks of arguments to lua_task
Vsevolod Stakhov [Mon, 22 Feb 2016 17:39:15 +0000 (17:39 +0000)]
Add more strict checks of arguments to lua_task

8 years agoUpdate from the recent libucl
Vsevolod Stakhov [Mon, 22 Feb 2016 17:16:14 +0000 (17:16 +0000)]
Update from the recent libucl

8 years agoRelease 1.1.4
Vsevolod Stakhov [Mon, 22 Feb 2016 15:05:56 +0000 (15:05 +0000)]
Release 1.1.4

* Print traceback on lua errors in lua config
* Fix leaks in lua error paths
* Improve 'R_EMPTY_IMAGE' rule
* Fix metas memoization in SA plugin
* Properly set `flag` in fuzzy replies
* Fix arguments order
* Fix issue with out-of-boundary reading
* Fix issues found by coverity
* Same result checking error found by coverity
* Fix varargs processing (found by coverity)
* Fix error in printing hex
* Reduce weights for some hfilter patterns
* Add aliases for task:get_from_ip:
- task:get_addr
- task:get_from_addr
- task:get_ip
*  Rework once_received module
- Fix priority for `good_hosts`
- If a good host has been found do not add once_received symbols
- Fix priorities for strict once_received
- Add ability to whitelist IP addresses
* Fix `MISSING_MIMEOLE` rule for modern OE
* Treat meta tags as embedded tags (#501)

Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
8 years agoHandle srv protocol timeouts in a specific way
Vsevolod Stakhov [Mon, 22 Feb 2016 14:41:49 +0000 (14:41 +0000)]
Handle srv protocol timeouts in a specific way

8 years agoAdd command to sync fuzzy storage
Vsevolod Stakhov [Mon, 22 Feb 2016 14:10:36 +0000 (14:10 +0000)]
Add command to sync fuzzy storage

It should be as simple as `rspamadm control fuzzy_sync`

Issue: #533
Reported by: @moisseev

8 years agoMore doc fixes
Vsevolod Stakhov [Mon, 22 Feb 2016 13:24:58 +0000 (13:24 +0000)]
More doc fixes

8 years agoFix doc comments
Vsevolod Stakhov [Mon, 22 Feb 2016 13:22:12 +0000 (13:22 +0000)]
Fix doc comments

8 years agoAdd hash API for lua_cryptobox
Vsevolod Stakhov [Mon, 22 Feb 2016 13:12:43 +0000 (13:12 +0000)]
Add hash API for lua_cryptobox

8 years agoAdd high level signing API for libcryptobox
Vsevolod Stakhov [Mon, 22 Feb 2016 11:30:35 +0000 (11:30 +0000)]
Add high level signing API for libcryptobox

8 years agoAdd missing features for cryptobox lua api
Vsevolod Stakhov [Mon, 22 Feb 2016 10:14:02 +0000 (10:14 +0000)]
Add missing features for cryptobox lua api

8 years agoAdd some more replacements
Vsevolod Stakhov [Sun, 21 Feb 2016 23:04:39 +0000 (23:04 +0000)]
Add some more replacements

8 years agoBetter dependencies support between SA and rspamd
Vsevolod Stakhov [Sun, 21 Feb 2016 22:20:13 +0000 (22:20 +0000)]
Better dependencies support between SA and rspamd

Now SA rules can depend on the corresponding rspamd rules applying the
replacement table.

8 years agoFix interaction with clients with no local Received
Vsevolod Stakhov [Sun, 21 Feb 2016 18:09:13 +0000 (18:09 +0000)]
Fix interaction with clients with no local Received

8 years agoContinue work on cryptobox API
Vsevolod Stakhov [Sat, 20 Feb 2016 23:31:23 +0000 (23:31 +0000)]
Continue work on cryptobox API

8 years agoBackport fix from libucl
Vsevolod Stakhov [Sat, 20 Feb 2016 22:22:17 +0000 (22:22 +0000)]
Backport fix from libucl

8 years agoMerge pull request #532 from moisseev/patch-1
Vsevolod Stakhov [Sat, 20 Feb 2016 17:25:59 +0000 (17:25 +0000)]
Merge pull request #532 from moisseev/patch-1

Improve html images rules

8 years agoDon't trigger R_EMPTY_IMAGE on image links 532/head
Alexander Moisseev [Sat, 20 Feb 2016 07:45:22 +0000 (10:45 +0300)]
Don't trigger R_EMPTY_IMAGE on image links

as they covered with `HTML_SHORT_LINK_IMG_1` rule.
It should be safe for legitimate emails with images attached since `R_EMPTY_IMAGE` and `HTML_SHORT_LINK_IMG_1` won't be triggered at the same time any more.

8 years agoDon't trigger HTML_SHORT_LINK_IMG on small images
Alexander Moisseev [Sat, 20 Feb 2016 07:34:34 +0000 (10:34 +0300)]
Don't trigger HTML_SHORT_LINK_IMG on small images

It's common for legitimate emails to have small image links (buttons, social networks junk e.t.c.)

8 years agoAdd preliminary lua API for libcryptobox
Vsevolod Stakhov [Fri, 19 Feb 2016 22:54:08 +0000 (22:54 +0000)]
Add preliminary lua API for libcryptobox

8 years agoWrite notes about symbols in rspamd
Vsevolod Stakhov [Thu, 18 Feb 2016 18:57:05 +0000 (18:57 +0000)]
Write notes about symbols in rspamd

8 years agoSet is_spam = true for all but 'no action' or 'greylist'
Vsevolod Stakhov [Thu, 18 Feb 2016 18:18:11 +0000 (18:18 +0000)]
Set is_spam = true for all but 'no action' or 'greylist'

8 years agoIn lua, number cannot be used in boolean context
Vsevolod Stakhov [Thu, 18 Feb 2016 16:16:49 +0000 (16:16 +0000)]
In lua, number cannot be used in boolean context

8 years agoBackport fixes from libucl
Vsevolod Stakhov [Thu, 18 Feb 2016 11:42:50 +0000 (11:42 +0000)]
Backport fixes from libucl

8 years agoAdd workaround for old glib
Vsevolod Stakhov [Thu, 18 Feb 2016 11:11:05 +0000 (11:11 +0000)]
Add workaround for old glib

8 years agoTreat meta tags as embedded tags
Vsevolod Stakhov [Thu, 18 Feb 2016 10:16:06 +0000 (10:16 +0000)]
Treat meta tags as embedded tags

Issue: #501
Reported by: @AlexeySa, @moisseev

8 years agoAdd more sanity checks when loading hyperscan cache
Vsevolod Stakhov [Thu, 18 Feb 2016 09:57:48 +0000 (09:57 +0000)]
Add more sanity checks when loading hyperscan cache

8 years agoMerge pull request #530 from moisseev/patch-1
Vsevolod Stakhov [Thu, 18 Feb 2016 09:22:44 +0000 (09:22 +0000)]
Merge pull request #530 from moisseev/patch-1

Unbreak bad_hosts check

8 years agoUnbreak bad_hosts check 530/head
Alexander Moisseev [Thu, 18 Feb 2016 07:37:08 +0000 (10:37 +0300)]
Unbreak bad_hosts check

8 years agoFix negation for header rules in SA plugin
Vsevolod Stakhov [Wed, 17 Feb 2016 23:42:46 +0000 (23:42 +0000)]
Fix negation for header rules in SA plugin

8 years agoAdd tool to edit signed files using text editor
Vsevolod Stakhov [Wed, 17 Feb 2016 14:56:55 +0000 (14:56 +0000)]
Add tool to edit signed files using text editor

8 years agoAdd option to show saved comments in configdump
Vsevolod Stakhov [Wed, 17 Feb 2016 13:36:13 +0000 (13:36 +0000)]
Add option to show saved comments in configdump

8 years agoSave comments from configuration files
Vsevolod Stakhov [Wed, 17 Feb 2016 13:28:26 +0000 (13:28 +0000)]
Save comments from configuration files

8 years agoMerge pull request #529 from moisseev/patch-1
Vsevolod Stakhov [Wed, 17 Feb 2016 13:23:00 +0000 (13:23 +0000)]
Merge pull request #529 from moisseev/patch-1

Skip good hostname check for undefined hostnames

8 years agoSkip good hostname check for undefined hostnames 529/head
Alexander Moisseev [Wed, 17 Feb 2016 11:43:09 +0000 (14:43 +0300)]
Skip good hostname check for undefined hostnames

2016-02-17 13:00:50 #58424(normal) <a41bdc>; task; lua_metric_symbol_callback: call to (ONCE_RECEIVED) failed: /usr/local/share/rspamd/lua/once_received.lua:82: bad argument #1 to 'lower' (string expected, got nil); trace: [1]:{[C]:-1 - lower [C]}; [2]:{/usr/local/share/rspamd/lua/once_received.lua:82 - <unknown> [Lua]};

8 years agoUnbreak fuzzy_check plugin
Vsevolod Stakhov [Tue, 16 Feb 2016 18:24:18 +0000 (18:24 +0000)]
Unbreak fuzzy_check plugin

Issue: #527
Reported by: @moisseev

8 years agoFix maps initialisation
Vsevolod Stakhov [Tue, 16 Feb 2016 17:08:57 +0000 (17:08 +0000)]
Fix maps initialisation

8 years agoRewrite HTTP maps code, add signed maps support
Vsevolod Stakhov [Tue, 16 Feb 2016 17:05:24 +0000 (17:05 +0000)]
Rewrite HTTP maps code, add signed maps support

8 years agoStart the complete HTTP maps rework
Vsevolod Stakhov [Tue, 16 Feb 2016 16:25:09 +0000 (16:25 +0000)]
Start the complete HTTP maps rework

8 years agoAdd routine to create inet address from the rdns reply
Vsevolod Stakhov [Tue, 16 Feb 2016 16:22:55 +0000 (16:22 +0000)]
Add routine to create inet address from the rdns reply

8 years agoFix couple of issues found by gcc-6
Vsevolod Stakhov [Tue, 16 Feb 2016 13:44:35 +0000 (13:44 +0000)]
Fix couple of issues found by gcc-6

8 years agoAdd new warnings supported by gcc-6
Vsevolod Stakhov [Tue, 16 Feb 2016 13:44:25 +0000 (13:44 +0000)]
Add new warnings supported by gcc-6

8 years agoPort fix from libucl
Vsevolod Stakhov [Tue, 16 Feb 2016 13:22:17 +0000 (13:22 +0000)]
Port fix from libucl

8 years agoFix MISSING_MIMEOLE rule for modern OE
Vsevolod Stakhov [Tue, 16 Feb 2016 12:13:41 +0000 (12:13 +0000)]
Fix MISSING_MIMEOLE rule for modern OE

Issue: #514
Reported by: @ilyakruchinin

8 years agoFix html images rules to reduce FP rates
Vsevolod Stakhov [Tue, 16 Feb 2016 12:04:51 +0000 (12:04 +0000)]
Fix html images rules to reduce FP rates

Suggested by: @moisseev
Issue: #525

8 years agoAdd HTML tags interface for LUA
Vsevolod Stakhov [Tue, 16 Feb 2016 11:24:25 +0000 (11:24 +0000)]
Add HTML tags interface for LUA

8 years agoAdd routines to find HTML tags by id
Vsevolod Stakhov [Tue, 16 Feb 2016 10:28:31 +0000 (10:28 +0000)]
Add routines to find HTML tags by id

8 years agoLink html tags with extra data (urls, images)
Vsevolod Stakhov [Tue, 16 Feb 2016 10:15:20 +0000 (10:15 +0000)]
Link html tags with extra data (urls, images)

8 years agoRefactor UCL API
Vsevolod Stakhov [Tue, 16 Feb 2016 09:59:52 +0000 (09:59 +0000)]
Refactor UCL API

8 years agoFix logging for embedded maps
Vsevolod Stakhov [Mon, 15 Feb 2016 17:28:06 +0000 (17:28 +0000)]
Fix logging for embedded maps

8 years agoAdd method to check if a map looks like a map
Vsevolod Stakhov [Mon, 15 Feb 2016 17:09:58 +0000 (17:09 +0000)]
Add method to check if a map looks like a map

8 years agoAdd signatures checks for local files
Vsevolod Stakhov [Mon, 15 Feb 2016 16:47:57 +0000 (16:47 +0000)]
Add signatures checks for local files

8 years agoAdd common routine to map a file
Vsevolod Stakhov [Mon, 15 Feb 2016 16:29:03 +0000 (16:29 +0000)]
Add common routine to map a file

8 years agoAdd global trusted keys option
Vsevolod Stakhov [Mon, 15 Feb 2016 15:12:40 +0000 (15:12 +0000)]
Add global trusted keys option

8 years agoStart reworking of maps
Vsevolod Stakhov [Mon, 15 Feb 2016 14:37:34 +0000 (14:37 +0000)]
Start reworking of maps

8 years agoFix verification routine for signatures
Vsevolod Stakhov [Mon, 15 Feb 2016 12:19:53 +0000 (12:19 +0000)]
Fix verification routine for signatures

8 years agoAdd ability to store public key when signing
Vsevolod Stakhov [Mon, 15 Feb 2016 11:55:48 +0000 (11:55 +0000)]
Add ability to store public key when signing

8 years agoClarify unsupported options
Vsevolod Stakhov [Mon, 15 Feb 2016 11:16:36 +0000 (11:16 +0000)]
Clarify unsupported options

8 years agoAdd more notes about SA migration
Vsevolod Stakhov [Mon, 15 Feb 2016 09:44:12 +0000 (09:44 +0000)]
Add more notes about SA migration

8 years agoAdd more diagnostic for getting keys errors
Vsevolod Stakhov [Sun, 14 Feb 2016 20:04:36 +0000 (20:04 +0000)]
Add more diagnostic for getting keys errors

8 years agoPrint more info about radix tries
Vsevolod Stakhov [Sun, 14 Feb 2016 13:38:27 +0000 (13:38 +0000)]
Print more info about radix tries

8 years agoBackport fixes from libucl
Vsevolod Stakhov [Sun, 14 Feb 2016 13:34:42 +0000 (13:34 +0000)]
Backport fixes from libucl

8 years agoAdd some documentation for once_received module
Vsevolod Stakhov [Sat, 13 Feb 2016 14:43:19 +0000 (14:43 +0000)]
Add some documentation for once_received module

8 years agoRework once_received module
Vsevolod Stakhov [Sat, 13 Feb 2016 14:36:21 +0000 (14:36 +0000)]
Rework once_received module

- Fix priority for `good_hosts`
- If a good host has been found do not add once_received symbols
- Fix priorities for strict once_received
- Add ability to whitelist IP addresses

8 years agoAdd aliases for task:get_from_ip
Vsevolod Stakhov [Sat, 13 Feb 2016 14:35:56 +0000 (14:35 +0000)]
Add aliases for task:get_from_ip

- task:get_addr
- task:get_from_addr
- task:get_ip

8 years agoAdd diagnostic for new radix
Vsevolod Stakhov [Sat, 13 Feb 2016 14:32:53 +0000 (14:32 +0000)]
Add diagnostic for new radix

8 years agoInclude gmodule as well as glib
Vsevolod Stakhov [Fri, 12 Feb 2016 18:23:26 +0000 (18:23 +0000)]
Include gmodule as well as glib

8 years agoMerge pull request #524 from moisseev/patch-2
Vsevolod Stakhov [Fri, 12 Feb 2016 16:35:57 +0000 (16:35 +0000)]
Merge pull request #524 from moisseev/patch-2

Fix runaway comma in lua rule example

8 years agoMerge pull request #523 from moisseev/patch-1
Vsevolod Stakhov [Fri, 12 Feb 2016 16:35:41 +0000 (16:35 +0000)]
Merge pull request #523 from moisseev/patch-1

Fix configuration override and extending examples

8 years agoFix users ratelimits
Vsevolod Stakhov [Fri, 12 Feb 2016 16:31:07 +0000 (16:31 +0000)]
Fix users ratelimits

8 years agoDon't fail stats when pre-results are set
Vsevolod Stakhov [Fri, 12 Feb 2016 16:27:25 +0000 (16:27 +0000)]
Don't fail stats when pre-results are set

8 years agoMore steps to support dynamic workers
Vsevolod Stakhov [Fri, 12 Feb 2016 16:11:30 +0000 (16:11 +0000)]
More steps to support dynamic workers

8 years agoUpdate documentation
Vsevolod Stakhov [Fri, 12 Feb 2016 15:42:33 +0000 (15:42 +0000)]
Update documentation

8 years agoImplement regexp filters for URL multimap
Vsevolod Stakhov [Fri, 12 Feb 2016 15:33:59 +0000 (15:33 +0000)]
Implement regexp filters for URL multimap

8 years agoInitial support for dynamic modules and workers
Vsevolod Stakhov [Fri, 12 Feb 2016 14:44:35 +0000 (14:44 +0000)]
Initial support for dynamic modules and workers

8 years agoFix runaway comma in lua rule example 524/head
Alexander Moisseev [Fri, 12 Feb 2016 14:30:09 +0000 (17:30 +0300)]
Fix runaway comma in lua rule example

8 years agoFix configuration override and extending examples 523/head
Alexander Moisseev [Fri, 12 Feb 2016 13:48:31 +0000 (16:48 +0300)]
Fix configuration override and extending examples

8 years agoAdd versions to rspamd modules and workers
Vsevolod Stakhov [Fri, 12 Feb 2016 13:34:17 +0000 (13:34 +0000)]
Add versions to rspamd modules and workers

8 years agoUse trusty cluster of travis
Vsevolod Stakhov [Thu, 11 Feb 2016 15:34:05 +0000 (15:34 +0000)]
Use trusty cluster of travis

8 years agoMigrate to lc-compressed btrie algorithm
Vsevolod Stakhov [Thu, 11 Feb 2016 12:58:51 +0000 (12:58 +0000)]
Migrate to lc-compressed btrie algorithm

8 years agoImprove output
Vsevolod Stakhov [Thu, 11 Feb 2016 12:57:39 +0000 (12:57 +0000)]
Improve output

8 years agoImprove radix fuzz testing
Vsevolod Stakhov [Thu, 11 Feb 2016 12:46:58 +0000 (12:46 +0000)]
Improve radix fuzz testing

8 years agoFix couple of issues found by coverity scan
Vsevolod Stakhov [Thu, 11 Feb 2016 11:02:42 +0000 (11:02 +0000)]
Fix couple of issues found by coverity scan

8 years agoAdd Level-Compressed Tree Bitmap contrib code
Vsevolod Stakhov [Thu, 11 Feb 2016 09:57:13 +0000 (09:57 +0000)]
Add Level-Compressed Tree Bitmap contrib code

Implementation by: Geoffrey T. Dairiki <dairiki@dairiki.org>

8 years agoFix tests
Vsevolod Stakhov [Thu, 11 Feb 2016 09:07:05 +0000 (09:07 +0000)]
Fix tests

8 years agoFix more issues found by coverity
Vsevolod Stakhov [Wed, 10 Feb 2016 23:07:13 +0000 (23:07 +0000)]
Fix more issues found by coverity

8 years agoProperly set `flag` in fuzzy replies
Vsevolod Stakhov [Wed, 10 Feb 2016 23:05:08 +0000 (23:05 +0000)]
Properly set `flag` in fuzzy replies

Found by: coverity scan