]> source.dussan.org Git - rspamd.git/log
rspamd.git
8 years ago[Feature] Rework includes system in the configuration
Vsevolod Stakhov [Thu, 10 Mar 2016 19:03:51 +0000 (19:03 +0000)]
[Feature] Rework includes system in the configuration

8 years ago[Feature] Add LOCAL_CONFDIR option
Vsevolod Stakhov [Thu, 10 Mar 2016 17:35:49 +0000 (17:35 +0000)]
[Feature] Add LOCAL_CONFDIR option

8 years ago[Doc] Describe new way to redefine symbols
Vsevolod Stakhov [Thu, 10 Mar 2016 17:29:24 +0000 (17:29 +0000)]
[Doc] Describe new way to redefine symbols

8 years ago[Feature] Rework includes and configuration system
Vsevolod Stakhov [Thu, 10 Mar 2016 17:04:48 +0000 (17:04 +0000)]
[Feature] Rework includes and configuration system

8 years ago[Feature] Allow priorities in dynamic updates
Vsevolod Stakhov [Thu, 10 Mar 2016 16:55:52 +0000 (16:55 +0000)]
[Feature] Allow priorities in dynamic updates

8 years ago[Feature] Add default dynamic updates configuration
Vsevolod Stakhov [Thu, 10 Mar 2016 14:59:38 +0000 (14:59 +0000)]
[Feature] Add default dynamic updates configuration

8 years ago[Fix] Fix HTTP maps updates
Vsevolod Stakhov [Thu, 10 Mar 2016 14:19:45 +0000 (14:19 +0000)]
[Fix] Fix HTTP maps updates

8 years ago[Feature] Add function to *properly* print HTTP date
Vsevolod Stakhov [Thu, 10 Mar 2016 14:18:45 +0000 (14:18 +0000)]
[Feature] Add function to *properly* print HTTP date

strftime is badly broken and polluted by brain-damaged people that
think that locales in libc is a good idea. It isn't.

8 years ago[Feature] Use Last-Modified header
Vsevolod Stakhov [Thu, 10 Mar 2016 14:03:29 +0000 (14:03 +0000)]
[Feature] Use Last-Modified header

8 years ago[Fix] Fix multiple issues with http maps
Vsevolod Stakhov [Thu, 10 Mar 2016 13:34:30 +0000 (13:34 +0000)]
[Fix] Fix multiple issues with http maps

8 years ago[Fix] Fix parsing of HTTP maps
Vsevolod Stakhov [Thu, 10 Mar 2016 11:46:57 +0000 (11:46 +0000)]
[Fix] Fix parsing of HTTP maps

8 years ago[Minor] Add restart to systemd service
Vsevolod Stakhov [Thu, 10 Mar 2016 11:00:31 +0000 (11:00 +0000)]
[Minor] Add restart to systemd service

Issue: #91
Reported by: @damned-trooper

8 years ago[Fix] Add guard when searching for email urls
Vsevolod Stakhov [Wed, 9 Mar 2016 15:56:34 +0000 (15:56 +0000)]
[Fix] Add guard when searching for email urls

8 years ago[Fix] Do not allow empty IP addresses to be parsed
Vsevolod Stakhov [Wed, 9 Mar 2016 15:56:17 +0000 (15:56 +0000)]
[Fix] Do not allow empty IP addresses to be parsed

8 years ago[Fix] Skip invalid addresses when parsing IP lists
Vsevolod Stakhov [Wed, 9 Mar 2016 15:55:52 +0000 (15:55 +0000)]
[Fix] Skip invalid addresses when parsing IP lists

8 years ago[Minor] Zero new nodes in btrie
Vsevolod Stakhov [Wed, 9 Mar 2016 15:55:35 +0000 (15:55 +0000)]
[Minor] Zero new nodes in btrie

8 years ago[Fix] Plug memory leak in lua_fann
Vsevolod Stakhov [Wed, 9 Mar 2016 14:27:38 +0000 (14:27 +0000)]
[Fix] Plug memory leak in lua_fann

8 years ago[Minor] Explicitly set ENABLE_LUAJIT in debian rules
Vsevolod Stakhov [Tue, 8 Mar 2016 17:33:39 +0000 (17:33 +0000)]
[Minor] Explicitly set ENABLE_LUAJIT in debian rules

8 years ago[Fix] Fix versions comparison
Vsevolod Stakhov [Tue, 8 Mar 2016 16:01:15 +0000 (16:01 +0000)]
[Fix] Fix versions comparison

8 years ago[Feature] Allow optional symbols registration
Vsevolod Stakhov [Tue, 8 Mar 2016 15:49:41 +0000 (15:49 +0000)]
[Feature] Allow optional symbols registration

8 years ago[Feature] Add more features to dynamic updates
Vsevolod Stakhov [Tue, 8 Mar 2016 15:00:56 +0000 (15:00 +0000)]
[Feature] Add more features to dynamic updates

8 years ago[Fix] Resort symbols cache if it has been changed
Vsevolod Stakhov [Tue, 8 Mar 2016 15:00:38 +0000 (15:00 +0000)]
[Fix] Resort symbols cache if it has been changed

8 years ago[Fix] Fix calling of lua map callbacks
Vsevolod Stakhov [Tue, 8 Mar 2016 14:40:00 +0000 (14:40 +0000)]
[Fix] Fix calling of lua map callbacks

8 years ago[Fix] Initialize lua cryptobox module
Vsevolod Stakhov [Tue, 8 Mar 2016 14:33:31 +0000 (14:33 +0000)]
[Fix] Initialize lua cryptobox module

8 years ago[Feature] Allow to set delayed callback for lua maps
Vsevolod Stakhov [Tue, 8 Mar 2016 13:14:54 +0000 (13:14 +0000)]
[Feature] Allow to set delayed callback for lua maps

8 years ago[Fix] SA uses mime recipients/senders for everything
Vsevolod Stakhov [Tue, 8 Mar 2016 11:51:57 +0000 (11:51 +0000)]
[Fix] SA uses mime recipients/senders for everything

8 years ago[Minor] Disable workaround for html parser
Vsevolod Stakhov [Tue, 8 Mar 2016 10:41:11 +0000 (10:41 +0000)]
[Minor] Disable workaround for html parser

8 years ago[Fix] Use caseless comparison in dmarc module
Vsevolod Stakhov [Mon, 7 Mar 2016 15:18:50 +0000 (15:18 +0000)]
[Fix] Use caseless comparison in dmarc module

8 years ago[Feature] Add lua functions for caseless comparison
Vsevolod Stakhov [Mon, 7 Mar 2016 15:14:01 +0000 (15:14 +0000)]
[Feature] Add lua functions for caseless comparison

8 years ago[Feature] Add map:set_sign_key and map:get_sign_key
Vsevolod Stakhov [Mon, 7 Mar 2016 15:02:56 +0000 (15:02 +0000)]
[Feature] Add map:set_sign_key and map:get_sign_key

8 years ago[Feature] Add map:get_proto lua API method
Vsevolod Stakhov [Mon, 7 Mar 2016 12:54:55 +0000 (12:54 +0000)]
[Feature] Add map:get_proto lua API method

8 years ago[Feature] Add map:is_signed method
Vsevolod Stakhov [Mon, 7 Mar 2016 12:32:03 +0000 (12:32 +0000)]
[Feature] Add map:is_signed method

8 years ago[Fix] Temporary disable ignoring of bad HTML tags
Vsevolod Stakhov [Mon, 7 Mar 2016 10:42:44 +0000 (10:42 +0000)]
[Fix] Temporary disable ignoring of bad HTML tags

8 years agoMerge pull request #547 from kristous/patch-1
Vsevolod Stakhov [Mon, 7 Mar 2016 00:28:51 +0000 (00:28 +0000)]
Merge pull request #547 from kristous/patch-1

Update phishing.md

8 years ago[Rework] Move maps code to a separate lua unit
Vsevolod Stakhov [Sun, 6 Mar 2016 18:12:33 +0000 (18:12 +0000)]
[Rework] Move maps code to a separate lua unit

8 years ago[Feature] Return map object for further actions
Vsevolod Stakhov [Sun, 6 Mar 2016 14:32:08 +0000 (14:32 +0000)]
[Feature] Return map object for further actions

Map object could be used to manage maps, for example, by LUA API.

8 years agoUpdate phishing.md 547/head
kristous [Sun, 6 Mar 2016 07:56:27 +0000 (08:56 +0100)]
Update phishing.md

found a small typo :-)

8 years ago[Minor] Use utf8 length for subject
Vsevolod Stakhov [Sat, 5 Mar 2016 22:20:47 +0000 (22:20 +0000)]
[Minor] Use utf8 length for subject

8 years ago[Feature] Add util.strlen_utf8 lua function
Vsevolod Stakhov [Sat, 5 Mar 2016 22:16:16 +0000 (22:16 +0000)]
[Feature] Add util.strlen_utf8 lua function

8 years agoMerge pull request #546 from moisseev/patch-2
Vsevolod Stakhov [Sat, 5 Mar 2016 22:07:45 +0000 (22:07 +0000)]
Merge pull request #546 from moisseev/patch-2

Add LONG_SUBJ rule

8 years agoAdd LONG_SUBJ rule 546/head
Alexander Moisseev [Sat, 5 Mar 2016 18:59:58 +0000 (21:59 +0300)]
Add LONG_SUBJ rule

8 years ago[Feature] Rework and abstract lua maps API
Vsevolod Stakhov [Sat, 5 Mar 2016 14:44:08 +0000 (14:44 +0000)]
[Feature] Rework and abstract lua maps API

- Now all maps share the same lua object table.
- Remove bad destructions code since objects are reallocated during maps
  operations
- Fix and unify various parts of maps management
- Pass map object to lua callbacks

8 years ago[MajorFeature] Add preliminary version of updates
Vsevolod Stakhov [Sat, 5 Mar 2016 13:36:51 +0000 (13:36 +0000)]
[MajorFeature] Add preliminary version of updates

This plugin is intended to load dynamic updates for rspamd. Now its
functionality is very limited.

8 years ago[Minor] Fix lua_cryptobox registration
Vsevolod Stakhov [Sat, 5 Mar 2016 13:23:29 +0000 (13:23 +0000)]
[Minor] Fix lua_cryptobox registration

8 years ago[Minor] Add guards for NaN values
Vsevolod Stakhov [Fri, 4 Mar 2016 15:10:37 +0000 (15:10 +0000)]
[Minor] Add guards for NaN values

8 years ago[Feature] Add support for WLBLEval SA plugin
Vsevolod Stakhov [Fri, 4 Mar 2016 14:56:43 +0000 (14:56 +0000)]
[Feature] Add support for WLBLEval SA plugin

8 years ago[Minor] Fix actions setting
Vsevolod Stakhov [Fri, 4 Mar 2016 14:42:44 +0000 (14:42 +0000)]
[Minor] Fix actions setting

8 years ago[Fix] Properly set priority for rules with negative score
Vsevolod Stakhov [Fri, 4 Mar 2016 13:19:58 +0000 (13:19 +0000)]
[Fix] Properly set priority for rules with negative score

8 years ago[Fix] Fix race condition in lua_tcp module
Vsevolod Stakhov [Fri, 4 Mar 2016 11:22:36 +0000 (11:22 +0000)]
[Fix] Fix race condition in lua_tcp module

8 years ago[Feature] Add task:set_metric_action lua API method
Vsevolod Stakhov [Thu, 3 Mar 2016 18:05:20 +0000 (18:05 +0000)]
[Feature] Add task:set_metric_action lua API method

rspamd_config:set_metric_symbol({table})

Set the value of a specified symbol in a metric.
This function accepts table with the following elements:

- `name`: name of symbol (string)
- `score`: score for symbol (number)
- `metric`: name of metric (string, optional)
- `description`: description of symbol (string, optional)
- `group`: name of group for symbol (string, optional)
- `one_shot`: turn off multiple hits for a symbol (boolean, optional)
- `flags`: comma separated string of flags:
   + `ignore`: do not strictly check validity of symbol and corresponding rule
   + `one_shot`: turn off multiple hits for a symbol
- `priority`: priority of symbol's definition

8 years ago[Fix] Set 'ignore' flags from symbols coming from SA
Vsevolod Stakhov [Thu, 3 Mar 2016 17:06:04 +0000 (17:06 +0000)]
[Fix] Set 'ignore' flags from symbols coming from SA

8 years ago[Feature] Allow to specify flags for metric symbols
Vsevolod Stakhov [Thu, 3 Mar 2016 17:05:49 +0000 (17:05 +0000)]
[Feature] Allow to specify flags for metric symbols

8 years ago[Fix] Add watcher for lua_tcp module
Vsevolod Stakhov [Thu, 3 Mar 2016 16:53:00 +0000 (16:53 +0000)]
[Fix] Add watcher for lua_tcp module

8 years ago[Fix] Lowercase and cache the principal recipient
Vsevolod Stakhov [Thu, 3 Mar 2016 15:26:27 +0000 (15:26 +0000)]
[Fix] Lowercase and cache the principal recipient

Issue: #544
Reported by: @sativouf

8 years ago[Feature] Improve tests for siphash
Vsevolod Stakhov [Thu, 3 Mar 2016 12:19:48 +0000 (12:19 +0000)]
[Feature] Improve tests for siphash

- Add fuzz tests
- Add variable length input tests
- Check sanity of siphash implementation on start

8 years ago[Fix] Don't use _memcpy in assembly
Vsevolod Stakhov [Thu, 3 Mar 2016 11:28:42 +0000 (11:28 +0000)]
[Fix] Don't use _memcpy in assembly

8 years ago[Feature] Add AVX2 version of siphash
Vsevolod Stakhov [Thu, 3 Mar 2016 10:37:47 +0000 (10:37 +0000)]
[Feature] Add AVX2 version of siphash

This version has been taken from the google code at
https://github.com/google/highwayhash/

The final code is obtained by compiling c++ using clang-3.8 compiler.

8 years ago[Minor] Disable shutdown workaround for HTTP
Vsevolod Stakhov [Thu, 3 Mar 2016 10:05:28 +0000 (10:05 +0000)]
[Minor] Disable shutdown workaround for HTTP

8 years agoMerge pull request #543 from fatalbanana/master
Vsevolod Stakhov [Thu, 3 Mar 2016 09:19:24 +0000 (09:19 +0000)]
Merge pull request #543 from fatalbanana/master

[Fix] Avoid problematic operation on possibly nil value in once_received

8 years ago[Fix] Avoid problematic operation on possibly nil value in once_received 543/head
Andrew Lewis [Thu, 3 Mar 2016 08:43:59 +0000 (10:43 +0200)]
[Fix] Avoid problematic operation on possibly nil value in once_received

8 years ago[Fix] Add more guards for IP address
Vsevolod Stakhov [Wed, 2 Mar 2016 12:58:26 +0000 (12:58 +0000)]
[Fix] Add more guards for IP address

8 years ago[Feature] SA plugin can now set missing scores for rspamd
Vsevolod Stakhov [Wed, 2 Mar 2016 12:11:12 +0000 (12:11 +0000)]
[Feature] SA plugin can now set missing scores for rspamd

8 years ago[Minor] Fix spelling in log message
Vsevolod Stakhov [Wed, 2 Mar 2016 12:10:59 +0000 (12:10 +0000)]
[Minor] Fix spelling in log message

8 years ago[Fix] Handle some bad IP URLs
Vsevolod Stakhov [Wed, 2 Mar 2016 11:52:39 +0000 (11:52 +0000)]
[Fix] Handle some bad IP URLs

8 years ago[Feature] Export versions vars to UCL
Vsevolod Stakhov [Tue, 1 Mar 2016 13:04:43 +0000 (13:04 +0000)]
[Feature] Export versions vars to UCL

8 years ago[Feature] Add rspamd_version function to LUA API
Vsevolod Stakhov [Tue, 1 Mar 2016 12:27:02 +0000 (12:27 +0000)]
[Feature] Add rspamd_version function to LUA API

8 years ago[Minor] Temporary disable scheduler optimization
Vsevolod Stakhov [Mon, 29 Feb 2016 15:50:22 +0000 (15:50 +0000)]
[Minor] Temporary disable scheduler optimization

It is not very well investigated and might decrease performance in some
cases I care about.

8 years ago[Feature] Improve symbols sorting function
Vsevolod Stakhov [Mon, 29 Feb 2016 15:45:29 +0000 (15:45 +0000)]
[Feature] Improve symbols sorting function

8 years ago[Fix] Fix redis stats to avoid double free
Vsevolod Stakhov [Mon, 29 Feb 2016 15:26:43 +0000 (15:26 +0000)]
[Fix] Fix redis stats to avoid double free

8 years ago[Feature] Add lockless logging
Vsevolod Stakhov [Mon, 29 Feb 2016 15:18:39 +0000 (15:18 +0000)]
[Feature] Add lockless logging

Sometimes, it is needed to turn off logging mutex to avoid recursive
mutex obtaining. It is especially useful to do it within children wait
code in the main processes dispatcher.

8 years ago[Minor] Fix race condition when removing hash
Vsevolod Stakhov [Mon, 29 Feb 2016 14:59:41 +0000 (14:59 +0000)]
[Minor] Fix race condition when removing hash

8 years ago[Minor] Fix closing race in fuzzy storage
Vsevolod Stakhov [Mon, 29 Feb 2016 14:59:26 +0000 (14:59 +0000)]
[Minor] Fix closing race in fuzzy storage

8 years ago[Fix] Fix sorting order for symbols cache
Vsevolod Stakhov [Mon, 29 Feb 2016 14:53:12 +0000 (14:53 +0000)]
[Fix] Fix sorting order for symbols cache

8 years ago[Fix] Fix `all` in spf redirects
Vsevolod Stakhov [Mon, 29 Feb 2016 13:54:42 +0000 (13:54 +0000)]
[Fix] Fix `all` in spf redirects

Issue: #542
Reported by: @sativouf

8 years ago[Fix] Fix crash on scan
Vsevolod Stakhov [Mon, 29 Feb 2016 12:52:53 +0000 (12:52 +0000)]
[Fix] Fix crash on scan

8 years ago[Minor] Fix reject action parsing
Vsevolod Stakhov [Mon, 29 Feb 2016 11:14:12 +0000 (11:14 +0000)]
[Minor] Fix reject action parsing

8 years ago[Minor] Hide rdrand checks for non-x86 platforms
Vsevolod Stakhov [Mon, 29 Feb 2016 11:11:39 +0000 (11:11 +0000)]
[Minor] Hide rdrand checks for non-x86 platforms

8 years ago[Feature] Add priorities for actions
Vsevolod Stakhov [Sun, 28 Feb 2016 22:58:20 +0000 (22:58 +0000)]
[Feature] Add priorities for actions

Add dedicated API to modify action limits with priorities from different
configuration place. This follows the logic of symbols' priorities and
will be used for dynamic rules and override definitions.

8 years ago[CritFix] Fix issue with inconsistent resorting
Vsevolod Stakhov [Sun, 28 Feb 2016 11:58:14 +0000 (11:58 +0000)]
[CritFix] Fix issue with inconsistent resorting

This is a long term issue that was in rspamd for many years. Sometimes,
some rules are not scanned or scanned twice. That happened because of
resorting called during pending tasks exist in the wait queue. In this
case, resorting breaks logic of symbols processing, causing unprocessed
rules to be treated as processed and, vice versa, processed rules as
unprocessed.

This commit introduces refcounted approach for resorting keeping state
for each individual task. This allows to resort independently from the
existing tasks waiting in the queue.

8 years ago[Feature] Rework dynamic symbols for new metrics API
Vsevolod Stakhov [Sun, 28 Feb 2016 11:11:37 +0000 (11:11 +0000)]
[Feature] Rework dynamic symbols for new metrics API

8 years ago[Fix] Fix some cases for RDNS_NONE
Vsevolod Stakhov [Sat, 27 Feb 2016 14:03:59 +0000 (14:03 +0000)]
[Fix] Fix some cases for RDNS_NONE

8 years ago[Fix] Don't set default values for hostname and helo
Vsevolod Stakhov [Sat, 27 Feb 2016 13:43:41 +0000 (13:43 +0000)]
[Fix] Don't set default values for hostname and helo

8 years ago[Feature] Add ignore_received option
Vsevolod Stakhov [Sat, 27 Feb 2016 13:39:26 +0000 (13:39 +0000)]
[Feature] Add ignore_received option

In this mode rspamd ignores data from the first received (it might be
produced by some third party and not our MTA)

8 years ago[Fix] Fix placement of RDNS checks
Vsevolod Stakhov [Sat, 27 Feb 2016 13:39:14 +0000 (13:39 +0000)]
[Fix] Fix placement of RDNS checks

8 years ago[Feature] Add RDNS_NONE rule
Vsevolod Stakhov [Sat, 27 Feb 2016 13:31:01 +0000 (13:31 +0000)]
[Feature] Add RDNS_NONE rule

8 years ago[Minor] Implement workaround for legacy clients
Vsevolod Stakhov [Sat, 27 Feb 2016 13:19:03 +0000 (13:19 +0000)]
[Minor] Implement workaround for legacy clients

8 years agoSteal lua_text ownership to prevent gc
Vsevolod Stakhov [Fri, 26 Feb 2016 17:26:33 +0000 (17:26 +0000)]
Steal lua_text ownership to prevent gc

8 years agoAdd more reasonable errors for lua_tcp module
Vsevolod Stakhov [Fri, 26 Feb 2016 14:42:23 +0000 (14:42 +0000)]
Add more reasonable errors for lua_tcp module

8 years agoAdd more guards for mutable cache
Vsevolod Stakhov [Fri, 26 Feb 2016 12:43:45 +0000 (12:43 +0000)]
Add more guards for mutable cache

8 years agoImplement versioning in symbols cache to allow modiifications on fly
Vsevolod Stakhov [Fri, 26 Feb 2016 11:55:14 +0000 (11:55 +0000)]
Implement versioning in symbols cache to allow modiifications on fly

8 years agoAllow to set redis db and password in lua_redis
Vsevolod Stakhov [Fri, 26 Feb 2016 10:42:13 +0000 (10:42 +0000)]
Allow to set redis db and password in lua_redis

8 years agoUse object priority when adding symbols from ucl
Vsevolod Stakhov [Fri, 26 Feb 2016 09:52:47 +0000 (09:52 +0000)]
Use object priority when adding symbols from ucl

8 years agoAllow overwrite scores with the same priority
Vsevolod Stakhov [Fri, 26 Feb 2016 09:51:03 +0000 (09:51 +0000)]
Allow overwrite scores with the same priority

8 years agoCleanup event
Vsevolod Stakhov [Thu, 25 Feb 2016 18:44:17 +0000 (18:44 +0000)]
Cleanup event

8 years agoDestroy session if a client has gone.
Vsevolod Stakhov [Thu, 25 Feb 2016 18:43:59 +0000 (18:43 +0000)]
Destroy session if a client has gone.

8 years agoAdd special timeout when spending too much in sync processing
Vsevolod Stakhov [Thu, 25 Feb 2016 16:57:52 +0000 (16:57 +0000)]
Add special timeout when spending too much in sync processing

8 years agoIncrease stack size after fork
Vsevolod Stakhov [Thu, 25 Feb 2016 16:57:34 +0000 (16:57 +0000)]
Increase stack size after fork

8 years agoFix non-UTF regexps for pcre2
Vsevolod Stakhov [Thu, 25 Feb 2016 16:57:15 +0000 (16:57 +0000)]
Fix non-UTF regexps for pcre2

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