2020-04-04 20:13:34 +02:00
|
|
|
---
|
|
|
|
spamassassin_install: True
|
|
|
|
spamassassin_spamd_enabled: True
|
|
|
|
spamassassin_sql_backend: False
|
|
|
|
spamassassin_required_hits: 5
|
|
|
|
spamassassin_report_safe: 0
|
|
|
|
spamassassin_rewrite_subject: "[SPAM]"
|
|
|
|
spamassassin_user: spamassassin
|
|
|
|
spamassassin_group: '{{ spamassassin_user }}'
|
|
|
|
spamassassin_home: /etc/mail/spamassassin
|
|
|
|
|
|
|
|
spamassassin_rh_packages:
|
|
|
|
- spamassassin
|
|
|
|
- spamassassin-iXhash2
|
2020-04-14 13:23:49 +02:00
|
|
|
- pyzor
|
2020-04-04 20:13:34 +02:00
|
|
|
|
|
|
|
spamassassin_sql_rh_packages:
|
|
|
|
- perl-DBD-Pg
|
|
|
|
- perl-DBI
|
|
|
|
|
|
|
|
spamassassin_spamd_port: 783
|
2020-04-14 13:23:49 +02:00
|
|
|
spamassassin_conf_dir: '{{ spamassassin_home }}'
|
2020-04-04 20:13:34 +02:00
|
|
|
spamassassin_sysconfig_file: '/etc/sysconfig/spamassassin'
|
|
|
|
# Only postgresql support for the time being
|
|
|
|
spamassassin_db_user_config: True
|
|
|
|
spamassassin_spamd_sql_opts: '-q -x '
|
|
|
|
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_use_bayes: False
|
|
|
|
spamassassin_bayes_sql_db: '{{ spamassassin_db_user_config }}'
|
|
|
|
spamassassin_use_bayes_autolearn: '0'
|
|
|
|
spamassassin_use_bayes_auto_expire: '1'
|
|
|
|
spamassassin_auto_whitelist: False
|
|
|
|
spamassassin_auto_whitelist_sql_db: '{{ spamassassin_db_user_config }}'
|
|
|
|
|
|
|
|
spamassassin_spamd_ssl_enabled: True
|
|
|
|
spamassassin_spamd_ssl_opts: '-u {{ spamassassin_user }} -g {{ spamassassin_group }} --ssl --server-key {{ spamassassin_home }}/client-key.pem --server-cert {{ spamassassin_home }}/client-cert.pem'
|
|
|
|
|
|
|
|
psql_db_data:
|
|
|
|
- { name: '{{ spamassassin_db_name }}', encoding: 'UTF8', user: '{{ spamassassin_db_user }}', roles: 'NOCREATEDB,NOSUPERUSER', pwd: '{{ spamassassin_db_pwd }}', managedb: True, allowed_hosts: '{{ spamassassin_db_allowed_hosts }}', extensions: [ '' ], schema_file: '/srv/spamassassin.sql' }
|
|
|
|
|
|
|
|
## Spamassassin milter settings
|
|
|
|
spamassassin_milter_install: False
|
|
|
|
spamassassin_rh_milter_packages:
|
|
|
|
- spamass-milter
|
|
|
|
- spamass-milter-postfix
|
|
|
|
|
|
|
|
spamassassin_milter_set_pref_dom_and_user: False
|
|
|
|
spamassassin_milter_pref_default_domain: 'localhost'
|
|
|
|
spamassassin_milter_pref_default_user: 'root'
|
|
|
|
spamassassin_milter_reject_code: '5.7.1'
|
|
|
|
spamassassin_milter_reject_message: 'Blocked by SpamAssassin'
|
|
|
|
spamassassin_milter_connect_to_external_spamd: False
|
|
|
|
spamassassin_milter_external_spamd_host: '127.0.0.1'
|
|
|
|
spamassassin_milter_external_spamd_port: '{{ spamassassin_spamd_port }}'
|
|
|
|
spamassassin_milter_exclude_whitelisted_networks: False
|
|
|
|
# Separate with commas
|
|
|
|
spamassassin_milter_whitelisted_networks: '127.0.0.1/8'
|
|
|
|
spamassassin_milter_reject_limit: 15
|
|
|
|
spamassassin_milter_change_headers: True
|
|
|
|
|
2020-04-14 13:23:49 +02:00
|
|
|
spamassassin_disable_rbls: False
|
|
|
|
spamassassin_disabled_rbls_list: []
|
|
|
|
# - bldomain
|
|
|
|
# - sorbs.net
|
|
|
|
|
|
|
|
spamassassin_enable_pyzor: True
|
|
|
|
|