This commit is contained in:
parent
10adbd73d5
commit
1b1716508e
|
@ -12,13 +12,14 @@ spamassassin_home: /etc/mail/spamassassin
|
|||
spamassassin_rh_packages:
|
||||
- spamassassin
|
||||
- spamassassin-iXhash2
|
||||
- pyzor
|
||||
|
||||
spamassassin_sql_rh_packages:
|
||||
- perl-DBD-Pg
|
||||
- perl-DBI
|
||||
|
||||
spamassassin_spamd_port: 783
|
||||
spamassassin_conf_dir: '/etc/mail/spamassassin'
|
||||
spamassassin_conf_dir: '{{ spamassassin_home }}'
|
||||
spamassassin_sysconfig_file: '/etc/sysconfig/spamassassin'
|
||||
# Only postgresql support for the time being
|
||||
spamassassin_db_user_config: True
|
||||
|
@ -67,3 +68,10 @@ spamassassin_milter_whitelisted_networks: '127.0.0.1/8'
|
|||
spamassassin_milter_reject_limit: 15
|
||||
spamassassin_milter_change_headers: True
|
||||
|
||||
spamassassin_disable_rbls: False
|
||||
spamassassin_disabled_rbls_list: []
|
||||
# - bldomain
|
||||
# - sorbs.net
|
||||
|
||||
spamassassin_enable_pyzor: True
|
||||
|
||||
|
|
|
@ -57,6 +57,13 @@
|
|||
template: src=spamassassin_sysconfig.j2 dest=/etc/sysconfig/spamassassin owner=root group=root mode=0444
|
||||
notify: Reload spamassassin
|
||||
|
||||
- name: Configure pyzor if enabled
|
||||
command: pyzor --homedir {{ spamassassin_conf_dir }} discover
|
||||
args:
|
||||
creates: '{{ spamassassin_conf_dir }}/servers'
|
||||
when: spamassassin_enable_pyzor | bool
|
||||
notify: Reload spamassassin
|
||||
|
||||
tags: [ 'spamassassin', 'spamassassin_conf' ]
|
||||
|
||||
- name: Install the Spamassassin DB configuration
|
||||
|
|
|
@ -17,3 +17,12 @@ use_bayes 0
|
|||
{% if spamassassin_auto_whitelist %}
|
||||
use_auto_whitelist 1
|
||||
{% endif %}
|
||||
{% if spamassassin_disable_rbls %}
|
||||
skip_rbl_checks 1
|
||||
{% endif %}
|
||||
{% for rbl in spamassassin_disabled_rbls_list %}
|
||||
dns_query_restriction deny {{ rbl }}
|
||||
{% endfor %}
|
||||
{% if spamassassin_enable_pyzor %}
|
||||
pyzor_options --homedir {{ spamassassin_conf_dir }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue