]> source.dussan.org Git - rspamd.git/log
rspamd.git
9 years agoAdd rspamd_config:radix_from_config()
Andrew Lewis [Mon, 16 Feb 2015 12:15:39 +0000 (14:15 +0200)]
Add rspamd_config:radix_from_config()

9 years agoMake local exclusions configurable per-RBL
Andrew Lewis [Mon, 16 Feb 2015 08:59:25 +0000 (10:59 +0200)]
Make local exclusions configurable per-RBL

9 years agoDon't use to_number() when checking radix maps 173/head
Andrew Lewis [Sun, 15 Feb 2015 20:25:57 +0000 (22:25 +0200)]
Don't use to_number() when checking radix maps

9 years agoFix typecast.
Vsevolod Stakhov [Sun, 15 Feb 2015 20:01:36 +0000 (20:01 +0000)]
Fix typecast.

9 years agoAllow to check radix maps from lua by rspamd{ip}
Vsevolod Stakhov [Sun, 15 Feb 2015 19:18:16 +0000 (19:18 +0000)]
Allow to check radix maps from lua by rspamd{ip}

9 years agoSupport site-local IP address / subnet exclusions
Andrew Lewis [Sun, 15 Feb 2015 20:15:55 +0000 (22:15 +0200)]
Support site-local IP address / subnet exclusions

9 years agorbl.lua: Fix mistake 171/head
Andrew Lewis [Sat, 14 Feb 2015 13:54:49 +0000 (15:54 +0200)]
rbl.lua: Fix mistake

9 years agoMake ignoring private IP space configurable; avoid changing plugin default behaviour 165/head
Andrew Lewis [Sat, 14 Feb 2015 08:37:53 +0000 (10:37 +0200)]
Make ignoring private IP space configurable; avoid changing plugin default behaviour

9 years agorbl.lua: Ignore private IP space
Andrew Lewis [Fri, 13 Feb 2015 21:52:53 +0000 (23:52 +0200)]
rbl.lua: Ignore private IP space

9 years agoMinor nonsense 163/head
Andrew Lewis [Fri, 13 Feb 2015 11:45:14 +0000 (13:45 +0200)]
Minor nonsense

9 years agoUpdate metrics.conf
Alexey AL [Sat, 7 Feb 2015 16:01:04 +0000 (19:01 +0300)]
Update metrics.conf

9 years agoFix: if not exist Date-header
Alexey AL [Sat, 7 Feb 2015 15:46:31 +0000 (18:46 +0300)]
Fix: if not exist Date-header

9 years agoUpdate rspamd.lua
Alexey AL [Sat, 7 Feb 2015 16:00:20 +0000 (19:00 +0300)]
Update rspamd.lua

9 years agoClarify copyright for lua plugins.
Vsevolod Stakhov [Fri, 13 Feb 2015 11:12:54 +0000 (11:12 +0000)]
Clarify copyright for lua plugins.

9 years agoMerge pull request #161 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Fri, 13 Feb 2015 11:05:41 +0000 (11:05 +0000)]
Merge pull request #161 from fatalbanana/rspamd-0.8

Rspamd 0.8: Exclusions for authenticated users etc

9 years agofalse if header from is nil 161/head
eneq123 [Wed, 11 Feb 2015 13:12:44 +0000 (16:12 +0300)]
false if header from is nil

9 years agoset empty <> user or addr for msgs without FROM (the MAIL FROM:<> is RFC 821 defined...
eneq123 [Wed, 11 Feb 2015 13:19:02 +0000 (16:19 +0300)]
set empty <> user or addr for msgs without FROM (the MAIL FROM:<> is RFC 821 defined error message transport)

9 years agofix: attempt to index field '?' (a nil value)
eneq123 [Thu, 12 Feb 2015 20:18:29 +0000 (23:18 +0300)]
fix: attempt to index field '?' (a nil value)

9 years agorbl.lua: remove un-needed character from pattern match
Andrew Lewis [Fri, 13 Feb 2015 10:22:19 +0000 (12:22 +0200)]
rbl.lua: remove un-needed character from pattern match

9 years agoHfilter: Fix metric
Alexey AL [Thu, 12 Feb 2015 17:51:03 +0000 (20:51 +0300)]
Hfilter: Fix metric

9 years agoHfilter: New metrics for helo checks
Alexey AL [Thu, 12 Feb 2015 17:44:04 +0000 (20:44 +0300)]
Hfilter: New metrics for helo checks

9 years agoHfilter: Update
Alexey AL [Thu, 12 Feb 2015 17:42:29 +0000 (20:42 +0300)]
Hfilter: Update

Fix: hostname and helo checks
Add: New bad hostnames

9 years agorbl.lua: add reference to documentation
Andrew Lewis [Fri, 13 Feb 2015 09:35:28 +0000 (11:35 +0200)]
rbl.lua: add reference to documentation

9 years agohfilter.lua: Add exclusion for authenticated users (except link checks)
Andrew Lewis [Fri, 13 Feb 2015 09:30:41 +0000 (11:30 +0200)]
hfilter.lua: Add exclusion for authenticated users (except link checks)

9 years agoonce_received.lua: Fix indentation & add exclusion for authenticated users
Andrew Lewis [Fri, 13 Feb 2015 09:24:41 +0000 (11:24 +0200)]
once_received.lua: Fix indentation & add exclusion for authenticated users

Conflicts:
src/plugins/lua/once_received.lua

9 years agorbl.lua: Try harder to avoid invalid DNS lookups
Andrew Lewis [Fri, 13 Feb 2015 09:23:06 +0000 (11:23 +0200)]
rbl.lua: Try harder to avoid invalid DNS lookups

Conflicts:
src/plugins/lua/rbl.lua

9 years agoMerge pull request #155 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Thu, 12 Feb 2015 15:28:26 +0000 (15:28 +0000)]
Merge pull request #155 from fatalbanana/rspamd-0.8

Rspamd 0.8: rbl.lua: Don't ask for user unless called for by config

9 years agoRename user to exclude_users and invert logic 155/head
Andrew Lewis [Thu, 12 Feb 2015 15:11:58 +0000 (17:11 +0200)]
Rename user to exclude_users and invert logic

9 years agorbl.lua: Don't ask for user unless called for by config
Andrew Lewis [Thu, 12 Feb 2015 13:01:04 +0000 (15:01 +0200)]
rbl.lua: Don't ask for user unless called for by config

9 years agoMerge pull request #153 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Thu, 12 Feb 2015 12:18:39 +0000 (12:18 +0000)]
Merge pull request #153 from fatalbanana/rspamd-0.8

Rspamd 0.8: Another fix for RBL module (Reported by AL)

9 years agoAnother fix for RBL module (Reported by AL) 153/head
Andrew Lewis [Thu, 12 Feb 2015 11:32:24 +0000 (13:32 +0200)]
Another fix for RBL module (Reported by AL)

9 years agoFix rbl.lua
Alexey AL [Thu, 12 Feb 2015 00:35:39 +0000 (03:35 +0300)]
Fix rbl.lua

9 years agoMerge pull request #148 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Wed, 11 Feb 2015 21:50:43 +0000 (21:50 +0000)]
Merge pull request #148 from fatalbanana/rspamd-0.8

Rspamd 0.8: fixes for work on RBL module

9 years agoFurther amendments for changes to RBL module 148/head
Andrew Lewis [Wed, 11 Feb 2015 21:15:25 +0000 (23:15 +0200)]
Further amendments for changes to RBL module

9 years agoFix typo
Andrew Lewis [Wed, 11 Feb 2015 18:42:36 +0000 (20:42 +0200)]
Fix typo

9 years agoMerge pull request #147 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Wed, 11 Feb 2015 16:08:15 +0000 (16:08 +0000)]
Merge pull request #147 from fatalbanana/rspamd-0.8

Rspamd 0.8: Update RBL module etc

9 years agoAmendment for rbl.lua update 147/head
Andrew Lewis [Wed, 11 Feb 2015 14:14:43 +0000 (16:14 +0200)]
Amendment for rbl.lua update

9 years agoUpdate RBL module: fix indentation; collapse loops; avoid calling for un-needed infor...
Andrew Lewis [Wed, 11 Feb 2015 13:43:26 +0000 (15:43 +0200)]
Update RBL module: fix indentation; collapse loops; avoid calling for un-needed information; allow disabling RBLs for authenticated users

9 years agoMake Exim pass usernames to Rspamd
Andrew Lewis [Wed, 11 Feb 2015 13:37:38 +0000 (15:37 +0200)]
Make Exim pass usernames to Rspamd

9 years agoAdd DNSWL_BLOCKED symbol
Andrew Lewis [Wed, 11 Feb 2015 13:36:34 +0000 (15:36 +0200)]
Add DNSWL_BLOCKED symbol

9 years agoFix race condition.
Vsevolod Stakhov [Mon, 9 Feb 2015 17:28:32 +0000 (17:28 +0000)]
Fix race condition.

This race condition could occur if a message has too high spam score and the
planner decides to stop checking. However, already registered events
pending were not checked, which caused use-after-free for a task object.

9 years agoMerge pull request #142 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Sun, 8 Feb 2015 17:32:47 +0000 (17:32 +0000)]
Merge pull request #142 from fatalbanana/rspamd-0.8

Make settings work as documented

9 years agoMake settings work as documented 142/head
Andrew Lewis [Sun, 8 Feb 2015 13:55:28 +0000 (15:55 +0200)]
Make settings work as documented

9 years agoMerge pull request #139 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Fri, 6 Feb 2015 16:22:27 +0000 (16:22 +0000)]
Merge pull request #139 from fatalbanana/rspamd-0.8

Allow applying settings to authenticated users

9 years agoAmendment: fix regex match for unqualified usernames 139/head
Andrew Lewis [Fri, 6 Feb 2015 14:48:18 +0000 (16:48 +0200)]
Amendment: fix regex match for unqualified usernames

9 years agoAmendment: nest stuff
Andrew Lewis [Fri, 6 Feb 2015 14:08:37 +0000 (16:08 +0200)]
Amendment: nest stuff

9 years agoAllow applying settings to authenticated users
Andrew Lewis [Fri, 6 Feb 2015 13:39:45 +0000 (15:39 +0200)]
Allow applying settings to authenticated users

9 years agoMerge pull request #137 from fatalbanana/rspamd-0.8
Vsevolod Stakhov [Tue, 3 Feb 2015 13:58:48 +0000 (13:58 +0000)]
Merge pull request #137 from fatalbanana/rspamd-0.8

Rspamd 0.8 - Mostly cosmetic changes

9 years agoCosmetic changes 137/head
Andrew Lewis [Tue, 3 Feb 2015 12:53:18 +0000 (14:53 +0200)]
Cosmetic changes

9 years agoFix bad change in Exim patch
Andrew Lewis [Mon, 2 Feb 2015 20:39:58 +0000 (22:39 +0200)]
Fix bad change in Exim patch

9 years agoFix processing of unix sockets.
Vsevolod Stakhov [Mon, 2 Feb 2015 13:35:01 +0000 (13:35 +0000)]
Fix processing of unix sockets.

Reported by: AL

9 years agoUpdate Exim patch
Andrew Lewis [Sat, 31 Jan 2015 18:46:54 +0000 (20:46 +0200)]
Update Exim patch

9 years agoEnable one_shot for RECEIVED_SPAMHAUS_XBL - Fixes #102
Andrew Lewis [Sat, 31 Jan 2015 22:29:10 +0000 (00:29 +0200)]
Enable one_shot for RECEIVED_SPAMHAUS_XBL - Fixes #102

9 years agoFix: Centos init script: configtest()
Alexey [Sun, 1 Feb 2015 03:17:51 +0000 (06:17 +0300)]
Fix: Centos init script: configtest()

9 years agoCreate fuzzy db if it does not exist.
Vsevolod Stakhov [Mon, 26 Jan 2015 21:12:30 +0000 (21:12 +0000)]
Create fuzzy db if it does not exist.

9 years agoRelease 0.8.1 0.8.1
Vsevolod Stakhov [Fri, 23 Jan 2015 17:01:28 +0000 (17:01 +0000)]
Release 0.8.1

* Add sqlite and perl as dependencies for RPM/Debian packages (by @fatalbanana)
* Remove whitelist.lua from RPM file list (by @fatalbanana)
* Make Exim pass hostnames to rspamd (by @fatalbanana)
* Fix building on Fedora (by @fatalbanana)
* Add toggle for disabling installation of systemd units on Linux (by @fatalbanana)
* Fix double format rounding that caused output corruption (reported by @fatalbanana)
* Revert broken change for destructors ordering that led to memory corruption
* Do not reset symbols case of settings if parsed from lua (reported by @andrejzverev)
* Fix build on SunOS (by @wiedi)
* Fix multiple crashes on broken DKIM DNS records
* Fix critical issue with composites weights removing
* Fix memory corruption in composites processing code
* Ignore non-SPF TXT records when parsing SPF includes

Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
9 years agoUpdate to 0.8.1
Vsevolod Stakhov [Fri, 23 Jan 2015 16:54:30 +0000 (16:54 +0000)]
Update to 0.8.1

9 years agoIgnore broken TXT records when parsing include.
Vsevolod Stakhov [Thu, 22 Jan 2015 21:58:59 +0000 (21:58 +0000)]
Ignore broken TXT records when parsing include.

9 years agoFix another critical composites issue and memory corruption.
Vsevolod Stakhov [Thu, 22 Jan 2015 01:11:02 +0000 (01:11 +0000)]
Fix another critical composites issue and memory corruption.

9 years agoFix critical issue with composites weights.
Vsevolod Stakhov [Wed, 21 Jan 2015 22:05:38 +0000 (22:05 +0000)]
Fix critical issue with composites weights.

9 years agoAnother err dereference for dkim module.
Vsevolod Stakhov [Wed, 21 Jan 2015 11:04:29 +0000 (11:04 +0000)]
Another err dereference for dkim module.

9 years agoFix crash on broken DKIM DNS records.
Vsevolod Stakhov [Tue, 20 Jan 2015 13:39:02 +0000 (13:39 +0000)]
Fix crash on broken DKIM DNS records.

9 years agoFix build on SunOS
Sebastian Wiedenroth [Sun, 18 Jan 2015 01:30:28 +0000 (02:30 +0100)]
Fix build on SunOS
- the struct dirent d_type is not available on SunOS
- tm_gmtoff is not a POSIX field

9 years agoDo not reset case of settings if parsed from lua.
Vsevolod Stakhov [Sun, 18 Jan 2015 15:25:20 +0000 (15:25 +0000)]
Do not reset case of settings if parsed from lua.

9 years agoRevert "Preserve destructors order as LIFO."
Vsevolod Stakhov [Sat, 17 Jan 2015 16:57:46 +0000 (16:57 +0000)]
Revert "Preserve destructors order as LIFO."

That change was completely incorrect.

This reverts commit 1f2c83f096f28ce79e828edd1ab545a341f10451.

9 years agoFix double format output.
Vsevolod Stakhov [Fri, 16 Jan 2015 12:24:16 +0000 (12:24 +0000)]
Fix double format output.

9 years agoMerge pull request #128 from fatalbanana/master
Vsevolod Stakhov [Thu, 15 Jan 2015 19:50:55 +0000 (19:50 +0000)]
Merge pull request #128 from fatalbanana/master

Oops: fix regression

9 years agoFix regression 128/head
Andrew Lewis [Thu, 15 Jan 2015 19:41:06 +0000 (21:41 +0200)]
Fix regression

9 years agoMerge pull request #127 from fatalbanana/master
Vsevolod Stakhov [Thu, 15 Jan 2015 17:02:37 +0000 (17:02 +0000)]
Merge pull request #127 from fatalbanana/master

Update RPM packaging

9 years agoUpdate RPM packaging 127/head
Andrew Lewis [Thu, 15 Jan 2015 12:35:12 +0000 (14:35 +0200)]
Update RPM packaging

9 years agoAdd toggle for disabling installation of systemd units on Linux
Andrew Lewis [Thu, 15 Jan 2015 11:43:48 +0000 (13:43 +0200)]
Add toggle for disabling installation of systemd units on Linux

9 years agoMerge pull request #126 from fatalbanana/master
Vsevolod Stakhov [Fri, 9 Jan 2015 14:20:18 +0000 (14:20 +0000)]
Merge pull request #126 from fatalbanana/master

Fix building on Fedora

9 years agoFix building on Fedora 126/head
Andrew Lewis [Fri, 9 Jan 2015 14:05:31 +0000 (16:05 +0200)]
Fix building on Fedora

9 years agoSilent warnings.
Vsevolod Stakhov [Tue, 6 Jan 2015 14:50:12 +0000 (14:50 +0000)]
Silent warnings.

9 years agoMerge pull request #125 from fatalbanana/master
Vsevolod Stakhov [Sun, 4 Jan 2015 10:09:49 +0000 (10:09 +0000)]
Merge pull request #125 from fatalbanana/master

Make Exim pass hostnames to rspamd

9 years agoMake Exim pass hostnames to rspamd 125/head
Andrew Lewis [Sat, 3 Jan 2015 21:46:21 +0000 (23:46 +0200)]
Make Exim pass hostnames to rspamd

9 years agoMerge pull request #124 from fatalbanana/master
Vsevolod Stakhov [Fri, 2 Jan 2015 13:00:26 +0000 (13:00 +0000)]
Merge pull request #124 from fatalbanana/master

Remove whitelist.lua from RPM file list

9 years agoRemove whitelist.lua from RPM file list 124/head
Andrew Lewis [Fri, 2 Jan 2015 12:58:45 +0000 (14:58 +0200)]
Remove whitelist.lua from RPM file list

9 years agoMerge pull request #123 from fatalbanana/master
Vsevolod Stakhov [Fri, 2 Jan 2015 12:41:55 +0000 (12:41 +0000)]
Merge pull request #123 from fatalbanana/master

Add sqlite as dependency for RPM/Debian packages

9 years agoAdd Perl as build dependency for Debian/RPM packages 123/head
Andrew Lewis [Fri, 2 Jan 2015 12:30:09 +0000 (14:30 +0200)]
Add Perl as build dependency for Debian/RPM packages

9 years agoAdd sqlite as dependency for RPM/Debian packages
Andrew Lewis [Fri, 2 Jan 2015 12:19:41 +0000 (14:19 +0200)]
Add sqlite as dependency for RPM/Debian packages

9 years agoRelease 0.8.0 0.8.0
Vsevolod Stakhov [Fri, 2 Jan 2015 11:17:33 +0000 (11:17 +0000)]
Release 0.8.0

* New fuzzy check logic:
- use shingles algorithm for fuzzy matching
- use blake2 instead of md5 for larger output space
- combine fuzzy and strict matching
- allow to organize private storages by means of keys
- preserve compatibility with previous versions
* New fuzzy storage:
- use sqlite instead of own memory based hash tables
- rework commands interface
- add conversion from the old format
- add fuzzy match by shignles
- support old rspamd versions
* Add lemmatizing for words used in fuzzy hashes that allows to improve match
quality by using of the first forms of all words
* Rework language detection
* Fix several critical bugs, memory leaks and deadlocks:
- memory leak in HTML nodes parsing
- deadlock in logger code
- deadlock in signals processing
- crashes in fuzzy_storage
- crashes in tokenizers if the input was empty
* Import new libucl with several bugfixes and improvements
* Support listening on ipv6 addresses only
* Fix macro expansion in SPF module
* Several bugfixes in DKIM module
* Add load headers support for mime parts to the lua API
* Add documentation for:
- workers in general
- fuzzy_storage worker
- fuzzy_check plugin
- mimepart and textpart lua API modules

Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
9 years agoUpdate docs.
Vsevolod Stakhov [Fri, 2 Jan 2015 11:09:48 +0000 (11:09 +0000)]
Update docs.

9 years agoMerge pull request #122 from fatalbanana/master
Vsevolod Stakhov [Fri, 2 Jan 2015 09:38:04 +0000 (09:38 +0000)]
Merge pull request #122 from fatalbanana/master

Fix typo in fuzzy_check.md

9 years agoFix typo in fuzzy_check.md 122/head
Andrew Lewis [Fri, 2 Jan 2015 06:49:47 +0000 (08:49 +0200)]
Fix typo in fuzzy_check.md

9 years agoAdd documentation for fuzzy_check module.
Vsevolod Stakhov [Fri, 2 Jan 2015 00:38:31 +0000 (00:38 +0000)]
Add documentation for fuzzy_check module.

9 years agoPreserve destructors order as LIFO.
Vsevolod Stakhov [Thu, 1 Jan 2015 15:45:22 +0000 (15:45 +0000)]
Preserve destructors order as LIFO.

9 years agoFix memory leak in html nodes.
Vsevolod Stakhov [Thu, 1 Jan 2015 15:12:00 +0000 (15:12 +0000)]
Fix memory leak in html nodes.

9 years agoFix macro expansion length calculation.
Vsevolod Stakhov [Thu, 1 Jan 2015 12:21:49 +0000 (12:21 +0000)]
Fix macro expansion length calculation.

9 years agoSome fixes to macro expansion in spf.
Vsevolod Stakhov [Tue, 30 Dec 2014 18:52:58 +0000 (18:52 +0000)]
Some fixes to macro expansion in spf.

9 years agoZero memory for inet address.
Vsevolod Stakhov [Tue, 30 Dec 2014 18:24:37 +0000 (18:24 +0000)]
Zero memory for inet address.

9 years agoFix some leaks.
Vsevolod Stakhov [Tue, 30 Dec 2014 14:54:33 +0000 (14:54 +0000)]
Fix some leaks.

9 years agoDo not tokenize empty input.
Vsevolod Stakhov [Tue, 30 Dec 2014 13:44:57 +0000 (13:44 +0000)]
Do not tokenize empty input.

9 years agoDo not dereference null pointer.
Vsevolod Stakhov [Tue, 30 Dec 2014 13:14:31 +0000 (13:14 +0000)]
Do not dereference null pointer.

9 years agoAdd documentation for fuzzy worker.
Vsevolod Stakhov [Mon, 29 Dec 2014 16:57:56 +0000 (16:57 +0000)]
Add documentation for fuzzy worker.

9 years agoValue of fuzzy is signed actually.
Vsevolod Stakhov [Mon, 29 Dec 2014 16:57:39 +0000 (16:57 +0000)]
Value of fuzzy is signed actually.

9 years agoAdd lua API for getting raw headers from mime part.
Vsevolod Stakhov [Mon, 29 Dec 2014 12:08:22 +0000 (12:08 +0000)]
Add lua API for getting raw headers from mime part.

9 years agoSave raw headers for all normal parts.
Vsevolod Stakhov [Mon, 29 Dec 2014 12:03:33 +0000 (12:03 +0000)]
Save raw headers for all normal parts.

9 years agoUpdate libucl.
Vsevolod Stakhov [Sat, 27 Dec 2014 16:36:08 +0000 (16:36 +0000)]
Update libucl.

9 years agoMerge pull request #121 from notandy/case-insensitive-find-headers
Vsevolod Stakhov [Fri, 26 Dec 2014 20:46:19 +0000 (20:46 +0000)]
Merge pull request #121 from notandy/case-insensitive-find-headers

make rspamd_http_message_find_header case-insensitive