]> git.somenet.org - root/pub/somesible.git/blob - roles/server/mail/spamassassin/files/default/local.cf
[roles/server/mail/postfix] setup postfix mail server
[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-2026 by someone <someone@somenet.org>
7 #
8
9 # also see /etc/default/spamassassin
10 time_limit 1800
11 dns_available yes
12
13 normalize_charset 1
14
15 use_bayes 1
16 bayes_store_module Mail::SpamAssassin::BayesStore::SDBM
17 bayes_path /var/lib/spamassassin/bayes
18 bayes_file_mode 0660
19 bayes_auto_learn 1
20 #bayes_learn_to_journal 1
21 #bayes_journal_max_size 102400
22
23 # use periodic cronjob + lru cleanup instead.
24 bayes_auto_expire 0
25 #bayes_expiry_max_db_size 5000000
26 # not settable here - need to hardcode in default settings:
27 # /usr/share/perl5/Mail/SpamAssassin/Conf.pm
28 # $self->{bayes_expiry_max_exponent} = ...;
29
30 # debug which file is learning by adding:
31 # /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm:368
32 # dbg("archive-iterator: processing: $where");
33
34
35 report_safe 0
36 fold_headers 0
37 clear_headers
38 add_header all Flag _YESNOCAPS_
39 add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=[_TESTSSCORES_] autolearn=_AUTOLEARN_ _TOKENSUMMARY_
40 add_header all Spammy _SPAMMYTOKENS(5,long)_
41 add_header all Hammy _HAMMYTOKENS(5,long)_
42
43 bayes_ignore_header X-Cyrus-Session-Id
44 bayes_ignore_header X-Sieve
45 bayes_ignore_header X-Spam-Flag
46 bayes_ignore_header X-Spam-Status
47 bayes_ignore_header X-Spam-Spammy
48 bayes_ignore_header X-Spam-Hammy
49
50 bayes_ignore_header Authentication-Results
51
52 # ignored AND removed by postfix later.
53 bayes_ignore_header X-Spam-Checker-Version
54 bayes_ignore_header X-Spam
55 bayes_ignore_header X-Spamd-Bar
56 bayes_ignore_header X-Spamd-Result
57 bayes_ignore_header X-Rspamd-Action
58 bayes_ignore_header X-Rspamd-Queue-Id
59 bayes_ignore_header X-Rspamd-Server
60
61 bayes_ignore_header X-Greylist
62 bayes_ignore_header X-Virus-Scanned
63
64
65 loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
66 bayes_auto_learn_threshold_nonspam -1.0
67 bayes_auto_learn_threshold_spam 7.0
68
69
70 score BAYES_00  -2.9
71 score BAYES_05  -1.2
72 score BAYES_20  -0.5
73 score BAYES_40  -0.1
74 score BAYES_50   1.0
75 score BAYES_60   1.9
76 score BAYES_80   2.6
77 score BAYES_95   3.4
78 score BAYES_99   3.9
79 score BAYES_999  1.4
80
81
82 # allows too much spam over mailinglists
83 score RCVD_IN_DNSWL_MED 0 -0.3 0 -0.3