2020-04-04 20:13:34 +02:00
|
|
|
# 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 }}
|
2020-07-12 19:28:37 +02:00
|
|
|
{% for header in spamassassin_bayes_ignored_headers %}
|
|
|
|
bayes_ignore_header {{ header }}
|
|
|
|
{% endfor %}
|
2020-04-04 20:13:34 +02:00
|
|
|
{% else %}
|
|
|
|
use_bayes 0
|
|
|
|
{% endif %}
|
|
|
|
{% if spamassassin_auto_whitelist %}
|
|
|
|
use_auto_whitelist 1
|
|
|
|
{% endif %}
|
2020-04-14 13:23:49 +02:00
|
|
|
{% 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 %}
|
2020-06-12 14:41:09 +02:00
|
|
|
use_pyzor 1
|
|
|
|
pyzor_timeout {{ spamassassin_pyzor_timeout }}s
|
2020-04-14 19:03:57 +02:00
|
|
|
pyzor_options --homedir {{ spamassassin_conf_dir }}/pyzor
|
2020-06-12 14:41:09 +02:00
|
|
|
{% else %}
|
|
|
|
use_pyzor 0
|
2020-04-14 13:23:49 +02:00
|
|
|
{% endif %}
|
2020-07-12 19:28:37 +02:00
|
|
|
#
|
|
|
|
# Whether to decode non- UTF-8 and non-ASCII textual parts and recode
|
|
|
|
# them to UTF-8 before the text is given over to rules processing.
|
|
|
|
#
|
|
|
|
normalize_charset {{ spamassassin_normalize_charset }}
|
2020-08-14 11:59:39 +02:00
|
|
|
#
|
2020-09-23 19:38:40 +02:00
|
|
|
# ***** The scan_size options are not working
|
2020-07-12 19:28:37 +02:00
|
|
|
# Amount of data per email text/* mimepart, that will be run through body
|
|
|
|
# rules. This enables safer and faster scanning of large messages,
|
|
|
|
# perhaps having very large textual attachments. There should be no need
|
|
|
|
# to change this well tested default.
|
|
|
|
#
|
2020-09-23 19:38:40 +02:00
|
|
|
#body_part_scan_size {{ spamassassin_text_body_scan_size }}
|
2020-08-14 11:59:39 +02:00
|
|
|
#
|
2020-07-12 19:28:37 +02:00
|
|
|
# Textual rawbody data scan limit (default: 500000)
|
|
|
|
#
|
|
|
|
# Amount of data per email text/* mimepart, that will be run through
|
|
|
|
# rawbody rules.
|
|
|
|
#
|
2020-09-23 19:38:40 +02:00
|
|
|
#rawbody_part_scan_size {{ spamassassin_body_part_scan_size }}
|
2020-07-12 19:28:37 +02:00
|
|
|
|
|
|
|
{% if spamassassin_shortcircuit_plugin %}
|
|
|
|
loadplugin Mail::SpamAssassin::Plugin::Shortcircuit
|
|
|
|
{% for rule in spamassassin_shortcircuit_rules %}
|
|
|
|
shortcircuit {{ rule.key }} {{ rule.value }}
|
|
|
|
{% endfor %}
|
|
|
|
{% if spamassassin_use_bayes %}
|
|
|
|
{% for rule in spamassassin_shortcircuit_bayes_rules %}
|
|
|
|
shortcircuit {{ rule.key }} {{ rule.value }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2020-07-23 12:55:32 +02:00
|
|
|
|
|
|
|
{% for rule in spamassassin_local_rules %}
|
|
|
|
{{ rule }}
|
2020-08-14 11:59:39 +02:00
|
|
|
{% endfor %}
|