diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 09:34:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 09:34:40 +0100 |
commit | f0004af0229a615d166716ed65ea1c3aff11f9fb (patch) | |
tree | 26f04bf665b9ddc753ce0da1c89ba6d1eafda852 /conf/settings.conf | |
parent | e16042d0d4db18d29724f596e735dde321675ed5 (diff) | |
download | rspamd-f0004af0229a615d166716ed65ea1c3aff11f9fb.tar.gz rspamd-f0004af0229a615d166716ed65ea1c3aff11f9fb.zip |
[Conf] Clarify documentation in the config files
Diffstat (limited to 'conf/settings.conf')
-rw-r--r-- | conf/settings.conf | 98 |
1 files changed, 50 insertions, 48 deletions
diff --git a/conf/settings.conf b/conf/settings.conf index c03c13477..95d71e4bf 100644 --- a/conf/settings.conf +++ b/conf/settings.conf @@ -1,14 +1,17 @@ -# You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine -# parameters defined on the top level +# Settings setup +# Please don't modify this file as your changes might be overwritten with +# the next update. # -# You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add -# parameters defined on the top level +# You can modify 'local.d/settings.conf' to add and merge +# parameters defined inside this section # -# For specific modules or configuration you can also modify -# '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults -# '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults +# You can modify 'override.d/settings.conf' to strictly override all +# parameters defined inside this section # -# See https://rspamd.com/doc/tutorials/writing_rules.html for details +# See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories +# for details +# +# Module documentation: https://rspamd.com/doc/configuration/settings.html # If you want to use settings map, then please define something like: # @@ -17,48 +20,47 @@ # in rspamd.conf.override settings { -/* Commented out # Some examples below (define in local.d/settings.conf without `settings {}`!) - some_users { - id = "some_users"; - priority = high; - from = "@example.com"; - rcpt = "admin"; - rcpt = "/user.*/"; - ip = "172.16.0.0/16"; - user = "@example.net"; - request_header = { - "MTA-Tag" = "\.example\.net$"; - } - apply { - symbol1 = 10.0; - symbol2 = 0.0; - actions { - reject = 100.0; - greylist = 10.0; - "add header" = 5.0; # Please note the space, NOT an underscore - } - } - # Always add these symbols when settings rule has matched - symbols [ - "symbol2", "symbol4" - ] - } - whitelist { - priority = low; - rcpt = "postmaster@example.com"; - want_spam = yes; - } + #some_users { + # id = "some_users"; + # priority = high; + # from = "@example.com"; + # rcpt = "admin"; + # rcpt = "/user.*/"; + # ip = "172.16.0.0/16"; + # user = "@example.net"; + # request_header = { + # "MTA-Tag" = "\.example\.net$"; + # } + # apply { + # symbol1 = 10.0; + # symbol2 = 0.0; + # actions { + # reject = 100.0; + # greylist = 10.0; + # "add header" = 5.0; # Please note the space, NOT an underscore + # } + # } + # Always add these symbols when settings rule has matched + # symbols [ + # "symbol2", "symbol4" + # ] + #} + #whitelist { + # priority = low; + # rcpt = "postmaster@example.com"; + # want_spam = yes; + #} # Disable some checks for authenticated users - authenticated { - priority = high; - authenticated = yes; - apply { - groups_disabled = ["rbl", "spf"]; - } - } - # End of example -*/ + #authenticated { + # priority = high; + # authenticated = yes; + # apply { + # groups_disabled = ["rbl", "spf"]; + # } + #} + # End of examples + .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/settings.conf" .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/settings.conf" }
\ No newline at end of file |