summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/greylist.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-15 20:57:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-15 20:57:07 +0000
commit5f19fa64711cd73f6ce5defc3eb23ddf94983ed2 (patch)
tree903c42ff09132ac316dd88631c935c886836fcd4 /src/plugins/lua/greylist.lua
parent5b795b9a65e53c45f26394439e9c6e0ad4653dec (diff)
downloadrspamd-5f19fa64711cd73f6ce5defc3eb23ddf94983ed2.tar.gz
rspamd-5f19fa64711cd73f6ce5defc3eb23ddf94983ed2.zip
[Minor] Add some docs
Diffstat (limited to 'src/plugins/lua/greylist.lua')
-rw-r--r--src/plugins/lua/greylist.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index 671b2be69..faeaaf897 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -36,6 +36,25 @@ greylist {
--]]
if confighelp then
+ rspamd_config:add_example(nil, 'greylist',
+ "Performs adaptive greylisting using Redis",
+ [[
+greylist {
+ expire = 1d; # Buckets expire (1 day by default)
+ timeout = 5m; # Greylisting timeout
+ key_prefix = 'rg'; # Redis prefix
+ max_data_len = 10k; # Use boy hash up to this value of bytes for greylisting
+ message = 'Try again later'; # Default greylisting message
+ symbol = 'GREYLIST'; # Append symbol
+ action = 'soft reject'; # Default action change (for Exim use `greylist`)
+ whitelist_symbols = []; # Skip greylisting if one of the following symbols has been found
+ ipv4_mask = 19; # Mask bits for ipv4
+ ipv6_mask = 64; # Mask bits for ipv6
+ report_time = false; # Tell when greylisting is expired (appended to `message`)
+ check_local = false; # Greylist local messages
+ check_authed = false; # Greylist authenticated users
+}
+ ]])
return
end