]>
Commit | Line | Data |
---|---|---|
b780ea8d SI |
1 | # SpamAssassin basic config file |
2 | # | |
3 | # Please don't modify this file as your changes will be overwritten with | |
4 | # the next update. Use /etc/mail/spamassassin/local.cf instead. | |
5 | # See 'perldoc Mail::SpamAssassin::Conf' for details. | |
6 | # | |
7 | # <@LICENSE> | |
8 | # Licensed to the Apache Software Foundation (ASF) under one or more | |
9 | # contributor license agreements. See the NOTICE file distributed with | |
10 | # this work for additional information regarding copyright ownership. | |
11 | # The ASF licenses this file to you under the Apache License, Version 2.0 | |
12 | # (the "License"); you may not use this file except in compliance with | |
13 | # the License. You may obtain a copy of the License at: | |
14 | # | |
15 | # http://www.apache.org/licenses/LICENSE-2.0 | |
16 | # | |
17 | # Unless required by applicable law or agreed to in writing, software | |
18 | # distributed under the License is distributed on an "AS IS" BASIS, | |
19 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
20 | # See the License for the specific language governing permissions and | |
21 | # limitations under the License. | |
22 | # </@LICENSE> | |
23 | # | |
24 | ########################################################################### | |
25 | ||
cabe596e | 26 | require_version 3.004006 |
b780ea8d SI |
27 | |
28 | ########################################################################### | |
29 | ||
30 | ifplugin Mail::SpamAssassin::Plugin::Bayes | |
31 | ||
32 | body BAYES_00 eval:check_bayes('0.00', '0.01') | |
33 | body BAYES_05 eval:check_bayes('0.01', '0.05') | |
34 | body BAYES_20 eval:check_bayes('0.05', '0.20') | |
35 | body BAYES_40 eval:check_bayes('0.20', '0.40') | |
36 | ||
37 | # note: tread carefully around 0.5... the Bayesian classifier | |
38 | # will use that for anything it's unsure about, or if it's untrained. | |
39 | body BAYES_50 eval:check_bayes('0.40', '0.60') | |
40 | ||
41 | body BAYES_60 eval:check_bayes('0.60', '0.80') | |
42 | body BAYES_80 eval:check_bayes('0.80', '0.95') | |
43 | body BAYES_95 eval:check_bayes('0.95', '0.99') | |
44 | body BAYES_99 eval:check_bayes('0.99', '1.00') | |
45 | ||
46 | #Additional rule to add more of a score to BAYES_99 FOR 99.9% to 100% | |
47 | body BAYES_999 eval:check_bayes('0.999', '1.00') | |
48 | ||
49 | tflags BAYES_00 nice learn | |
50 | tflags BAYES_05 nice learn | |
51 | tflags BAYES_20 nice learn | |
52 | tflags BAYES_40 nice learn | |
53 | tflags BAYES_50 learn | |
54 | tflags BAYES_60 learn | |
55 | tflags BAYES_80 learn | |
56 | tflags BAYES_95 learn | |
57 | tflags BAYES_99 learn | |
58 | tflags BAYES_999 learn | |
59 | ||
60 | describe BAYES_00 Bayes spam probability is 0 to 1% | |
61 | describe BAYES_05 Bayes spam probability is 1 to 5% | |
62 | describe BAYES_20 Bayes spam probability is 5 to 20% | |
63 | describe BAYES_40 Bayes spam probability is 20 to 40% | |
64 | describe BAYES_50 Bayes spam probability is 40 to 60% | |
65 | describe BAYES_60 Bayes spam probability is 60 to 80% | |
66 | describe BAYES_80 Bayes spam probability is 80 to 95% | |
67 | describe BAYES_95 Bayes spam probability is 95 to 99% | |
68 | describe BAYES_99 Bayes spam probability is 99 to 100% | |
69 | describe BAYES_999 Bayes spam probability is 99.9 to 100% | |
70 | ||
71 | priority BAYES_00 -90 | |
72 | priority BAYES_05 -90 | |
73 | priority BAYES_20 -90 | |
74 | priority BAYES_40 -90 | |
75 | priority BAYES_50 -90 | |
76 | priority BAYES_60 -90 | |
77 | priority BAYES_80 -90 | |
78 | priority BAYES_95 -90 | |
79 | priority BAYES_99 -90 | |
80 | priority BAYES_99 -90 | |
81 | priority BAYES_999 -90 | |
82 | ||
83 | endif |