]> git.somenet.org - root/pub/somesible.git/blob - roles/server/mail/spamassassin/files/default/local.cf
[roles/client/google-chrome] install google chrome
[root/pub/somesible.git] / roles / server / mail / spamassassin / files / default / local.cf
1 #
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>
7 #
8
9 # also see /etc/default/spamassassin
10 time_limit 1800
11 dns_available yes
12
13
14 use_bayes 1
15 bayes_store_module Mail::SpamAssassin::BayesStore::SDBM
16 bayes_path /var/lib/spamassassin/bayes
17 bayes_file_mode 0660
18 bayes_auto_learn 1
19 #bayes_learn_to_journal 1
20 #bayes_journal_max_size 102400
21
22 # use periodic cronjob + lru cleanup instead.
23 bayes_auto_expire 0
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} = ...;
28
29 # debug which file is learning by adding:
30 # /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm:368
31 # dbg("archive-iterator: processing: $where");
32
33
34 report_safe 0
35 fold_headers 0
36 clear_headers
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)_
41
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
48
49 bayes_ignore_header Authentication-Results
50
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
59
60 bayes_ignore_header X-Greylist
61 bayes_ignore_header X-Virus-Scanned
62
63
64 loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
65 bayes_auto_learn_threshold_nonspam -1.0
66 bayes_auto_learn_threshold_spam 7.0
67
68
69 score BAYES_00  -2.9
70 score BAYES_05  -1.2
71 score BAYES_20  -0.5
72 score BAYES_40  -0.1
73 score BAYES_50   1.0
74 score BAYES_60   1.9
75 score BAYES_80   2.6
76 score BAYES_95   3.4
77 score BAYES_99   3.9
78 score BAYES_999  1.4
79
80
81 # allows too much spam over mailinglists
82 score RCVD_IN_DNSWL_MED 0 -0.3 0 -0.3