2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2024 by someone <someone@somenet.org>
9 # also see /etc/default/spamassassin
15 bayes_store_module Mail::SpamAssassin::BayesStore::SDBM
16 bayes_path /var/lib/spamassassin/bayes
19 #bayes_learn_to_journal 1
20 #bayes_journal_max_size 102400
22 # use periodic cronjob + lru cleanup instead.
24 #bayes_expiry_max_db_size 5000000
25 # not settable here - need to hardcode in default settings:
26 # /usr/share/perl5/Mail/SpamAssassin/Conf.pm
27 # $self->{bayes_expiry_max_exponent} = ...;
29 # debug which file is learning by adding:
30 # /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm:368
31 # dbg("archive-iterator: processing: $where");
37 add_header all Flag _YESNOCAPS_
38 add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=[_TESTSSCORES_] autolearn=_AUTOLEARN_ _TOKENSUMMARY_
39 add_header all Spammy _SPAMMYTOKENS(5,long)_
40 add_header all Hammy _HAMMYTOKENS(5,long)_
42 bayes_ignore_header X-Cyrus-Session-Id
43 bayes_ignore_header X-Sieve
44 bayes_ignore_header X-Spam-Flag
45 bayes_ignore_header X-Spam-Status
46 bayes_ignore_header X-Spam-Spammy
47 bayes_ignore_header X-Spam-Hammy
49 bayes_ignore_header Authentication-Results
51 # ignored AND removed by postfix later.
52 bayes_ignore_header X-Spam-Checker-Version
53 bayes_ignore_header X-Spam
54 bayes_ignore_header X-Spamd-Bar
55 bayes_ignore_header X-Spamd-Result
56 bayes_ignore_header X-Rspamd-Action
57 bayes_ignore_header X-Rspamd-Queue-Id
58 bayes_ignore_header X-Rspamd-Server
60 bayes_ignore_header X-Greylist
61 bayes_ignore_header X-Virus-Scanned
64 loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
65 bayes_auto_learn_threshold_nonspam -1.0
66 bayes_auto_learn_threshold_spam 7.0
81 # allows too much spam over mailinglists
82 score RCVD_IN_DNSWL_MED 0 -0.3 0 -0.3