1
0
Mirror von https://github.com/rspamd/rspamd.git synchronisiert 2024-08-29 05:54:41 +02:00
Commit graph

142 Commits

Autor SHA1 Nachricht Datum
Vsevolod Stakhov
8abd76b18f Allow listening on multiply addresses.
Now rspamd can listen on multiply ipv4/ipv6 addresses.
Removed legacy workers (lmtp, kvstorage) as they are never used
in production.
Try to unify workers initialization.
2013-07-20 18:42:29 +01:00
Vsevolod Stakhov
2e57f7dabf Remove unused code. 2013-07-08 20:49:43 +01:00
Vsevolod Stakhov
b346120d24 Add a simple test of rsa utils in lua.
Support RSA signing in lua_rsa module.
Add save function for rsa_signature.
Fix test logic for lua modules.
2013-06-13 15:47:32 +01:00
Vsevolod Stakhov
9deefe925c Add ability to perform lua tests by rspamd.
This feature is useful for testing lua modules and writing
unit tests for lua modules.
2013-06-13 13:59:38 +01:00
Vsevolod Stakhov
df2e93c58c Add preliminary API for rsa verify to lua. 2013-06-12 17:50:35 +01:00
Vsevolod Stakhov
9a9299fec9 Fix listening on sockets. 2013-06-03 17:24:34 +01:00
Vsevolod Stakhov
37845898cb Rework socket creation logic to support both ipv4 and ipv6 sockets. 2013-06-01 15:52:11 +01:00
Vsevolod Stakhov
1650f051c1 Fix CentOS 5 build. 2013-03-27 11:53:05 +00:00
Vsevolod Stakhov
3ac18652e5 Add locking for maps.
Add ability to save rolling history in a file.
2013-01-08 18:24:24 +04:00
Vsevolod Stakhov
012167478a * Add rolling history feature saving last 200 scanned messages.
Add /history command handler in webui.
2013-01-07 18:32:15 +04:00
Vsevolod Stakhov
6af303bd3a Add /maps and /getmap commands to webui.
Identify maps by id.
Initialize secure random numbers using openssl.
Add description to maps.
2013-01-06 20:33:31 +04:00
Vsevolod Stakhov
9289af21db Fix test build and shlibs depends. 2012-12-15 14:41:15 +04:00
Vsevolod Stakhov
8e399cdba1 * Use murmur hash for all hashes as it is more efficient and provides more uniform distribution as glib's default one.
* Fix probability renormalization while using advanced classification.
2012-10-08 21:21:53 +04:00
Vsevolod Stakhov
a1e2b2d84b Make mlock option as tunable. 2012-10-08 19:09:51 +04:00
Vsevolod Stakhov
21f0f09256 * Use mlock to speed up classifiers by locking statfiles in the RAM. 2012-10-05 20:37:54 +04:00
Vsevolod Stakhov
91d183b8f4 Avoid global variables in map logic.
* Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
2012-09-19 20:29:58 +04:00
Vsevolod Stakhov
ea68f17ec2 Another debian license fix.
Add apache license for regexp that were delivered from SpamAssassin project.
Fix debian/copyright for src/dns.c.
2012-09-10 17:20:57 +04:00
Vsevolod Stakhov
d4fb886390 Update copyright (required by debian). 2012-09-04 20:59:30 +04:00
Vsevolod Stakhov
b90267a71c * Rework thread pools locking logic to avoid global lua mutex usage.
Fixed several memory leaks with modern glib.
Fixed memory leak in dkim code.
Fixed a problem with static global variables in shared libraries.
2012-08-22 21:41:48 +04:00
Vsevolod Stakhov
c6d5548c58 Fix assertion when using default configuration. 2012-08-16 17:30:24 +04:00
Vsevolod Stakhov
d07ec7c3de Fix spelling. Submitted by: Laszlo Boszormenyi. 2012-08-10 16:05:38 +04:00
Vsevolod Stakhov
73ded9877f Avoid using global 'counters' hash, include it in struct rspamd_main.
Move worker related utils to separate file and include it in rspamd-mime library.
Add some cross-dependencies.
2012-06-07 19:06:09 +04:00
Vsevolod Stakhov
8a6fa6ab3b Strict prototypes. 2012-06-05 20:52:41 +04:00
Vsevolod Stakhov
45a09c4819 Make it possible to start several rspamd with different configurations from a single commandline. 2012-04-24 00:05:43 +04:00
Vsevolod Stakhov
c2418c4890 Fix proxy logic. 2012-03-13 17:30:06 +04:00
Vsevolod Stakhov
13d35d6e24 Another workaround for old glib. 2012-02-21 15:01:41 +04:00
Vsevolod Stakhov
5218877e6a Workaround for old glib. 2012-02-17 21:13:59 +04:00
Vsevolod Stakhov
0d64c808b7 Add quarks to events to determine source of event inside rspamd.
Another try to fix threading.
2012-02-13 19:09:27 +04:00
Vsevolod Stakhov
9bacf0d835 * Introduce new system of worker's and modules initialization:
- Removed legacy limitation of worker's types;
  - Using GQuarks to identify workers and modules;
  - Remove modules.sh script;
  - Add a common system of workers and modules;
  - Write management and configuration for new architecture.
2012-01-16 20:59:37 +04:00
Vsevolod Stakhov
51d40c08d3 Add -i flag allowing to run workers as root. 2011-11-30 19:32:25 +03:00
Vsevolod Stakhov
997d0bc5a6 * Fix reopening of logs in case of privilleged run. 2011-11-30 19:14:26 +03:00
Vsevolod Stakhov
632e13627f Check for SIGUSR1 by libevent to avoid signals collisions.
Remove greylist_storage as it was never used and is actually replaced with basic kvstorage.
2011-11-30 17:48:08 +03:00
Vsevolod Stakhov
e31d2fac56 * Add incr and decr commands to kvstorage.
* Add integers detection inside kvstorage.
2011-11-10 21:03:04 +03:00
Vsevolod Stakhov
cf21ad1844 Implement lazy backend writing using sync_ops = 0.
Allways wait for kvstorage worker to prevent data corruption.
2011-11-08 18:47:37 +03:00
Vsevolod Stakhov
dee3bdecf7 * Initial implementation of threaded kvstorage worker. 2011-10-27 18:19:32 +03:00
Vsevolod Stakhov
89c8b90f8e Add universal utility function for creating stream sockets. 2011-10-18 17:56:51 +03:00
Vsevolod Stakhov
2c7e49f97e Try to check spf domain before adding it to LRU hash.
Make libutil functions ported from BSD compatible with libbsd in linux.
2011-10-06 17:00:49 +04:00
Vsevolod Stakhov
30bad7395e * Introduce new system of contexts initialization. It would be used for other things in rspamd as well in future.
Ignore unknown headers in case of http.
2011-08-18 17:32:55 +04:00
Vsevolod Stakhov
3f96e6a7a3 Fix signness in arithmetic operations. 2011-08-04 20:31:24 +04:00
Vsevolod Stakhov
6eded20b2c * Add max_tokens options to avoid classifying and learning with too much tokens from one message.
Fix stupid memory leakage on client's timeout.
2011-07-26 16:57:36 +04:00
Vsevolod Stakhov
8e4282bb26 Another 'proper' place. 2011-07-26 15:45:21 +04:00
Vsevolod Stakhov
3b4613bbac Fix reload command. 2011-06-20 17:10:12 +04:00
Vsevolod Stakhov
83a9452974 Misprint. 2011-06-03 18:03:19 +04:00
Vsevolod Stakhov
c29b6dc179 Fix initialization order. 2011-05-10 21:24:02 +04:00
Vsevolod Stakhov
1fd435e5d4 * Rework build process:
- add librspamdserver
 - link this library to all daemons and utils of rspamd
 - use subdirectories more often
* Rework global variables logic - move them to the main process
* Fix logging to handle utf-8 correctly
* Add statshow utility and make it working
* Move printf functions to separate source file
2011-05-10 19:15:03 +04:00
Vsevolod Stakhov
a93dd7892f * Preload statfiles at the early beginning in the main process
* Add JSON output for rspamd worker
* Add HTTP protocol support for rspamd worker
2011-03-31 17:35:35 +04:00
Vsevolod Stakhov
7c3c86ce3f * Add ability to extract urls from subject field
Fix phishing plugin.
* Important fix for multimap/cdb handling
* Important fix for phishing detector
2011-03-23 20:14:08 +03:00
Vsevolod Stakhov
1d4a64659b * Main process now has 'hard termination time' - maximum time between getting termination signal and waiting for workers 2011-03-23 17:42:33 +03:00
Vsevolod Stakhov
ee9632d269 Do not re-create symbols cache while doing dump of cache. 2011-03-22 17:20:24 +03:00
Vsevolod Stakhov
fd34e65f68 Init cache before loading config. 2010-12-22 17:25:51 +03:00