aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 17:55:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 17:55:49 +0100
commit21d8c9a4f21c81476970c3bef2b64fef2ba68e48 (patch)
tree144ef8ab6449e9a269b14024bbf3d5a7615b51c9 /doc
parentaeb3226c5324cc289f8dd3151576f38e9bb301bf (diff)
downloadrspamd-21d8c9a4f21c81476970c3bef2b64fef2ba68e48.tar.gz
rspamd-21d8c9a4f21c81476970c3bef2b64fef2ba68e48.zip
Allow optional multiplier for whitelists.
Diffstat (limited to 'doc')
-rw-r--r--doc/markdown/modules/whitelist.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/markdown/modules/whitelist.md b/doc/markdown/modules/whitelist.md
index 2ca776748..403f103c3 100644
--- a/doc/markdown/modules/whitelist.md
+++ b/doc/markdown/modules/whitelist.md
@@ -31,6 +31,16 @@ You can also set the default metric settings using the ordinary attributes, such
- `one_shot`: default one shot mode
- `description`: default description
+Within lists, you can also use optional `multiplier` argument that defines additional
+multiplier for the score added by this module. For example, let's define twice bigger
+score for `github.com`:
+
+ ["github.com", 2.0]
+
+or if using map:
+
+ github.com 2.0
+
## Configuration example
~~~nginx
@@ -56,9 +66,9 @@ whitelist {
valid_spf = true;
valid_dkim = true;
domains = [
- "github.com",
+ ["github.com", 2.0],
]
- score = -7.0
+ score = -3.0
}
WHITELIST_DMARC_DKIM = {