ansible-role-spamassassin/templates/spamassassin-local.cf.j2

29 lines
890 B
Plaintext
Raw Normal View History

# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
required_hits {{ spamassassin_required_hits }}
report_safe {{ spamassassin_report_safe }}
rewrite_header Subject {{ spamassassin_rewrite_subject }}
{% if spamassassin_use_bayes %}
use_bayes 1
bayes_auto_learn {{ spamassassin_use_bayes_autolearn }}
bayes_auto_expire {{ spamassassin_use_bayes_auto_expire }}
{% else %}
use_bayes 0
{% endif %}
{% 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 %}