Fix the syntax and the scores in the examples.

This commit is contained in:
Andrea Dell'Amico 2020-07-23 14:20:43 +02:00
parent 9e90b603c3
commit 1397a0402f
2 changed files with 10 additions and 10 deletions

View File

@ -80,12 +80,12 @@ spamassassin_shortcircuit_bayes_rules:
- { key: 'BAYES_00', value: 'ham' }
spamassassin_local_rules: []
# - "score DKIM_VALID 0"
# - "score DKIM_VALID 0.001"
# - "score DKIM_INVALID 2"
# - "score PYZOR_CHECK 0 2.985 0 2.392 # n=0 n=2"
# - "score RCVD_IN_DNSWL_HI 1.0"
# - "score RCVD_IN_DNSWL_LOW 0 # default -1"
# - "score RCVD_IN_DNSWL_MED 0 # default -4"
# - "score RCVD_IN_DNSWL_LOW 0.1 # default -1"
# - "score RCVD_IN_DNSWL_MED 0.5 # default -4"
# - "score SPF_FAIL 0 1.919 0 1.001 # n=0 n=2"
# - "score SPF_HELO_FAIL 0 1.001 0 1.001 # n=0 n=2"
# - "whitelist_from foo@example.org *@example.net"
@ -93,19 +93,19 @@ spamassassin_local_rules: []
# - "blacklist_from foo@example.org *@example.net"
# - "blacklist_to foo@example.com"
### Some rules are multiline
# - "full blacklist_bar /bar\@example.net/"
# - "full blacklist_bar /bar\\@example.net/"
# - "describe blacklist_bar blacklist bar@example.net/"
# - "score blacklist_bar 6.5"
# - "header __f1 Return-path =~ /pop(store)?\.(foo|bar)\.example\.org/"
# - "header __f2 From =~ /(([0-9]+)|pop(store)?)\.(foo|bar)\.example\.org/"
# - "header __f3 Return-path =~ /([0-9]+)\@example.org/"
# - "header __f1 Return-path =~ /pop(store)?\\.(foo|bar)\\.example\\.org/"
# - "header __f2 From =~ /(([0-9]+)|pop(store)?)\\.(foo|bar)\\.example\\.org/"
# - "header __f3 Return-path =~ /([0-9]+)\\@example.org/"
# - "header __f4 exists:List-Id"
# - "meta unallow USER_IN_WHITELIST && (__f1||__f2||__f3||__f4||cnuce||SUBJECT_FUZZY_MEDS||diplomas_future)"
# - "describe unallow Remove almost all whitelist advantage"
# - "priority unallow 10"
# - "score unallow 98"
# - "header __more_bar ToCc =~ /(?<!me)\@example\.net/i"
# - "header __more_mine ToCc =~ /me\@example\.net/i"
# - "header __more_bar ToCc =~ /(?<!me)\\@example\\.net/i"
# - "header __more_mine ToCc =~ /me\\@example\\.net/i"
# - "header __more_list_owner List-Owner =~ /.+/"
# - "meta more_mine __more_bar && !__more_min && !__more_list_owner"
# - "describe more_mine To someone different than me"

View File

@ -71,7 +71,7 @@
template: src=spamassassin_sysconfig.j2 dest=/etc/sysconfig/spamassassin owner=root group=root mode=0444
notify: Reload spamassassin
tags: [ 'spamassassin', 'spamassassin_conf' ]
tags: [ 'spamassassin', 'spamassassin_conf', 'spamassassin_local_conf' ]
- name: Install the Spamassassin DB configuration
block: