--- spamassassin_install: True spamassassin_spamd_enabled: True spamassassin_sql_backend: False spamassassin_required_hits: 5 spamassassin_report_safe: '0' spamassassin_rewrite_subject: "[SPAM]" spamassassin_disable_soughtrules: True spamassassin_rules_version: '3.004000' spamassassin_listen_ip: '127.0.0.1' spamassassin_authorized_ip_addresses: '127.0.0.1' spamassassin_spamd_port: 783 spamassassin_conf_dir: '{{ spamassassin_home }}' spamassassin_sysconfig_file: '/etc/sysconfig/spamassassin' # Only postgresql support for the time being spamassassin_db_user_config: True spamassassin_spamd_sql_opts: '-q -x -u {{ spamassassin_user }} -g {{ spamassassin_group }}' spamassassin_db_name: 'spamassassin' spamassassin_db_user: 'spamassassin_u' # spamassassin_db_pwd: 'use a vault file' spamassassin_db_host: 'localhost' spamassassin_db_external_host: '{{ spamassassin_db_host }}' spamassassin_db_port: 5432 spamassassin_db_sql_file: 'spamassassin-pg-3.4.sql' spamassassin_db_allowed_hosts: - '127.0.0.1' - '{{ ansible_fqdn }}' spamassassin_enable_pyzor: True # in seconds spamassassin_pyzor_timeout: '60' spamassassin_use_bayes: False spamassassin_bayes_sql_db: '{{ spamassassin_db_user_config }}' spamassassin_use_bayes_autolearn: '0' spamassassin_use_bayes_auto_expire: '1' spamassassin_bayes_ignored_headers: - 'X-Bogosity' - 'X-Spam-Flag' - 'X-Spam-Status' spamassassin_auto_whitelist: False spamassassin_auto_whitelist_sql_db: '{{ spamassassin_db_user_config }}' spamassassin_disable_rbls: False spamassassin_disabled_rbls_list: [] # - bldomain # - sorbs.net spamassassin_normalize_charset: '0' # The following do not appear anywhere in the spamassassin code. # Commented in local.cf for the time being spamassassin_text_body_scan_size: '50000' spamassassin_body_part_scan_size: '500000' # spamassassin_shortcircuit_plugin: False spamassassin_shortcircuit_rules: - { key: 'USER_IN_WHITELIST', value: 'on' } - { key: 'USER_IN_DEF_WHITELIST', value: 'on' } - { key: 'USER_IN_ALL_SPAM_TO', value: 'on' } - { key: 'SUBJECT_IN_WHITELIST', value: 'on' } - { key: 'USER_IN_BLACKLIST', value: 'on' } - { key: 'USER_IN_BLACKLIST_TO', value: 'on' } - { key: 'SUBJECT_IN_BLACKLIST', value: 'on' } - { key: 'ALL_TRUSTED', value: 'on' } spamassassin_shortcircuit_bayes_rules: - { key: 'BAYES_99', value: 'spam' } - { key: 'BAYES_00', value: 'ham' } # See https://cwiki.apache.org/confluence/display/SPAMASSASSIN/WritingRules spamassassin_local_rules: [] # - "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.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" # - "whitelist_to foo@example.com" # - "blacklist_from foo@example.org *@example.net" # - "blacklist_to foo@example.com" ### Some rules are multiline # - "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 __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 =~ /(?