# 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 }} {% for header in spamassassin_bayes_ignored_headers %} bayes_ignore_header {{ header }} {% endfor %} {% 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 %} use_pyzor 1 pyzor_timeout {{ spamassassin_pyzor_timeout }}s pyzor_options --homedir {{ spamassassin_conf_dir }}/pyzor {% else %} use_pyzor 0 {% endif %} # # 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 }} # 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. # #body_part_scan_size {{ spamassassin_text_body_scan_size }} # Textual rawbody data scan limit (default: 500000) # # Amount of data per email text/* mimepart, that will be run through # rawbody rules. # #rawbody_part_scan_size {{ spamassassin_body_part_scan_size }} {% 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 %} {% for rule in spamassassin_local_rules %} {{ rule }} {% endfor %}