Vsevolod Stakhov
79417a5f81
[Minor] Update more copyright years/email
2 лет назад
Vsevolod Stakhov
55e758f714
[Minor] Use standard utility to get check_local/authed
3 лет назад
Alexander Moisseev
c5d426c10a
[Minor] Remove extra space
4 лет назад
Vsevolod Stakhov
9ec2301bfd
[Minor] Improve logging and set hostname for further usage
4 лет назад
Vsevolod Stakhov
4c9f6b2118
[Minor] Unify check_auth/check_local options
5 лет назад
Vsevolod Stakhov
0d4212eb6c
[Fix] Deprecate task:inc_dns_req as it is redundant
5 лет назад
Vsevolod Stakhov
7f0966b5fb
[Fix] Various fixes to once_received module
- Exclude artificial headers
- Avoid extra '#' operations
- Do not insert ONCE_RECEIVED if MTA has not resolved the first received
(#2190 )
6 лет назад
Alexander Moisseev
8738186f1b
[Minor] Insert symbol on PTR verification DNS error
6 лет назад
Andrew Lewis
8308c7983f
[Fix] Setting check_local / check_authed in plugins (#1954)
6 лет назад
Andrew Lewis
286ed38486
[Minor] Stop expecting hostname to be "unknown"
6 лет назад
Vsevolod Stakhov
a1dc1fd059
[Fix] Detect confighelp in plugins initialisation
7 лет назад
Steve Freegard
5909eaece4
Add DIRECT_TO_MX rule to once_received plugin
7 лет назад
Vsevolod Stakhov
7021ddcc38
[Minor] Remove deprecated API calls
7 лет назад
Vsevolod Stakhov
e6b6f6bb9c
[Rework] Use new maps add function
7 лет назад
Andrew Lewis
a9dd24b172
[Minor] Fix DNS lookup errors
7 лет назад
Andrew Lewis
3590c28e73
[Minor] Lint Lua plugins & global functions
7 лет назад
Andrew Lewis
6bdb25f84b
[Minor] Remove couple more globals in Lua plugins
7 лет назад
Alexander Moisseev
84e0d5df1a
[Fix] Unbreak once_received skipping for local networks
7 лет назад
Andrew Lewis
b561e9b9cb
[Minor] Allow for re-enabling default-disabled checks
7 лет назад
Alexander Moisseev
0057d84357
[Minor] Disable ONCE_RECEIVED for local networks
7 лет назад
Andrew Lewis
68d3c2f3f3
Revert "[Feature] Add common way to disable Lua modules"
This reverts commit f552edd887
.
Conflicts:
src/plugins/lua/antivirus.lua
src/plugins/lua/asn.lua
src/plugins/lua/dcc.lua
src/plugins/lua/dmarc.lua
src/plugins/lua/emails.lua
src/plugins/lua/forged_recipients.lua
src/plugins/lua/greylist.lua
src/plugins/lua/hfilter.lua
src/plugins/lua/ip_score.lua
src/plugins/lua/maillist.lua
src/plugins/lua/mime_types.lua
src/plugins/lua/multimap.lua
src/plugins/lua/once_received.lua
src/plugins/lua/ratelimit.lua
src/plugins/lua/rbl.lua
src/plugins/lua/replies.lua
src/plugins/lua/rspamd_update.lua
src/plugins/lua/trie.lua
src/plugins/lua/whitelist.lua
7 лет назад
Vsevolod Stakhov
1d0ad06316
[Minor] Use infox instead of info in logging
7 лет назад
Andrew Lewis
f552edd887
[Feature] Add common way to disable Lua modules
7 лет назад
Vsevolod Stakhov
9b8f8d728c
[Feature] Enable forced resolving for some lua plugins
Issue: #661
Reported by: @FelixSchwarz
8 лет назад
Vsevolod Stakhov
3a5a2d470d
[Fix] Restore ONCE_RECEIVED symbol
Issue: #602
Reported by: @AlexeySa
8 лет назад
Vsevolod Stakhov
0cdf354cb4
[Feature] Use new version of register_symbol in rspamd plugins
8 лет назад
Andrew Lewis
70fa6e154c
[Fix] Avoid problematic operation on possibly nil value in once_received
8 лет назад
Vsevolod Stakhov
894cc089e1
[Fix] Add more guards for IP address
8 лет назад
Vsevolod Stakhov
2a1598dbb6
[Fix] Fix some cases for RDNS_NONE
8 лет назад
Vsevolod Stakhov
2b9068e5f7
[Fix] Fix placement of RDNS checks
8 лет назад
Vsevolod Stakhov
bf384868ac
[Feature] Add RDNS_NONE rule
8 лет назад
Alexander Moisseev
6a44267b05
Unbreak bad_hosts check
8 лет назад
Alexander Moisseev
160461020d
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 лет назад
Vsevolod Stakhov
c44e6068da
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 лет назад
Vsevolod Stakhov
8766fba694
Switch the rest to apache 2
8 лет назад
Vsevolod Stakhov
f8fbf1dd71
Update logging in lua modules.
8 лет назад
Vsevolod Stakhov
e72d601aa6
Fix lua plugins with the new DNS API.
8 лет назад
Vsevolod Stakhov
2830e7e3ea
Fix lua plugins.
9 лет назад
Vsevolod Stakhov
82f6ff61d5
Clarify copyright for lua plugins.
9 лет назад
Andrew Lewis
284406915a
once_received.lua: Fix indentation & add exclusion for authenticated users
9 лет назад
eneq123
2b75c0189d
We should check here :is_valid() instead of :to_string()
9 лет назад
eneq123
b0c74e7f5a
real_ip to_string should not nil
9 лет назад
Vsevolod Stakhov
ae18696598
Fix PTR resolving in lua resolver.
9 лет назад
Vsevolod Stakhov
562b5336ac
Adopt once_received plugin.
9 лет назад
Vsevolod Stakhov
2e6ede7291
Rework once_received plugin.
10 лет назад
Vsevolod Stakhov
623320f7c5
* Fix DNS PTR resolving
* Add ability to resolve ip in once_received plugin to avoid temporary DNS fails of SMTP resolving
12 лет назад
Vsevolod Stakhov
5a334d3e12
More checks in lua plugins.
12 лет назад
Vsevolod Stakhov
29c3237009
* Add versions to lua API
* Provide compatibility for lua plugins for old versions of rspamd
13 лет назад
Vsevolod Stakhov
b8211fbcc8
* Introduce new system of configuration checks:
- now symbols inside metrics definition must be inside rules as well
- symbols may be virtual (e.g. when module can insert several symbols inside callback)
- symbols may be pure callbacks (when symbol's name is unknown and depends on conditions)
* Module 'emails' is removed as it is not used in the current rspamd
MANY fixes to sample config files
13 лет назад
Vsevolod Stakhov
ea03e94d0a
Add registering options for lua modules
* Add ability to output colored messages for file and console loggers
13 лет назад