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.
11 years ago
Vsevolod Stakhov
2e57f7dabf
Remove unused code.
11 years ago
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.
11 years ago
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.
11 years ago
Vsevolod Stakhov
df2e93c58c
Add preliminary API for rsa verify to lua.
11 years ago
Vsevolod Stakhov
9a9299fec9
Fix listening on sockets.
11 years ago
Vsevolod Stakhov
37845898cb
Rework socket creation logic to support both ipv4 and ipv6 sockets.
11 years ago
Vsevolod Stakhov
1650f051c1
Fix CentOS 5 build.
11 years ago
Vsevolod Stakhov
3ac18652e5
Add locking for maps.
Add ability to save rolling history in a file.
11 years ago
Vsevolod Stakhov
012167478a
* Add rolling history feature saving last 200 scanned messages.
Add /history command handler in webui.
11 years ago
Vsevolod Stakhov
6af303bd3a
Add /maps and /getmap commands to webui.
Identify maps by id.
Initialize secure random numbers using openssl.
Add description to maps.
11 years ago
Vsevolod Stakhov
9289af21db
Fix test build and shlibs depends.
11 years ago
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.
11 years ago
Vsevolod Stakhov
a1e2b2d84b
Make mlock option as tunable.
11 years ago
Vsevolod Stakhov
21f0f09256
* Use mlock to speed up classifiers by locking statfiles in the RAM.
11 years ago
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:///...'
11 years ago
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.
12 years ago
Vsevolod Stakhov
d4fb886390
Update copyright (required by debian).
12 years ago
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.
12 years ago
Vsevolod Stakhov
c6d5548c58
Fix assertion when using default configuration.
12 years ago
Vsevolod Stakhov
d07ec7c3de
Fix spelling. Submitted by: Laszlo Boszormenyi.
12 years ago
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.
12 years ago
Vsevolod Stakhov
8a6fa6ab3b
Strict prototypes.
12 years ago
Vsevolod Stakhov
45a09c4819
Make it possible to start several rspamd with different configurations from a single commandline.
12 years ago
Vsevolod Stakhov
c2418c4890
Fix proxy logic.
12 years ago
Vsevolod Stakhov
13d35d6e24
Another workaround for old glib.
12 years ago
Vsevolod Stakhov
5218877e6a
Workaround for old glib.
12 years ago
Vsevolod Stakhov
0d64c808b7
Add quarks to events to determine source of event inside rspamd.
Another try to fix threading.
12 years ago
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.
12 years ago
Vsevolod Stakhov
51d40c08d3
Add -i flag allowing to run workers as root.
12 years ago
Vsevolod Stakhov
997d0bc5a6
* Fix reopening of logs in case of privilleged run.
12 years ago
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.
12 years ago
Vsevolod Stakhov
e31d2fac56
* Add incr and decr commands to kvstorage.
* Add integers detection inside kvstorage.
12 years ago
Vsevolod Stakhov
cf21ad1844
Implement lazy backend writing using sync_ops = 0.
Allways wait for kvstorage worker to prevent data corruption.
12 years ago
Vsevolod Stakhov
dee3bdecf7
* Initial implementation of threaded kvstorage worker.
12 years ago
Vsevolod Stakhov
89c8b90f8e
Add universal utility function for creating stream sockets.
12 years ago
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.
12 years ago
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.
13 years ago
Vsevolod Stakhov
3f96e6a7a3
Fix signness in arithmetic operations.
13 years ago
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.
13 years ago
Vsevolod Stakhov
8e4282bb26
Another 'proper' place.
13 years ago
Vsevolod Stakhov
3b4613bbac
Fix reload command.
13 years ago
Vsevolod Stakhov
83a9452974
Misprint.
13 years ago
Vsevolod Stakhov
c29b6dc179
Fix initialization order.
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
Vsevolod Stakhov
1d4a64659b
* Main process now has 'hard termination time' - maximum time between getting termination signal and waiting for workers
13 years ago
Vsevolod Stakhov
ee9632d269
Do not re-create symbols cache while doing dump of cache.
13 years ago
Vsevolod Stakhov
fd34e65f68
Init cache before loading config.
13 years ago