]>
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 | ||
26 | # Default template. Try to keep it under 78 columns (inside the the dots below). | |
27 | # ........................................................................ | |
28 | clear_report_template | |
29 | if can(Mail::SpamAssassin::Conf::feature_yesno_takes_args) | |
30 | report Spam detection software, running on the system "_HOSTNAME_", | |
31 | report has_YESNO(, NOT)_ identified this incoming email as_YESNO( possible,)_ spam. The original | |
32 | report message has been attached to this so you can view it or label | |
33 | else | |
34 | report Spam detection software, running on the system "_HOSTNAME_", has | |
35 | report identified this incoming email as possible spam. The original message | |
36 | report has been attached to this so you can view it (if it isn't spam) or label | |
37 | endif | |
38 | report similar future email. If you have any questions, see | |
39 | report _CONTACTADDRESS_ for details. | |
40 | report | |
41 | report Content preview: _PREVIEW_ | |
42 | report | |
43 | report Content analysis details: (_SCORE_ points, _REQD_ required) | |
44 | report | |
45 | report " pts rule name description" | |
46 | report ---- ---------------------- -------------------------------------------------- | |
47 | report _SUMMARY_ | |
48 | ||
49 | # ........................................................................ | |
50 | ||
51 | # A 'contact address' users should contact for more info. (replaces | |
52 | # _CONTACTADDRESS_ above if present) | |
53 | report_contact the administrator of that system | |
54 | ||
55 | ########################################################################### | |
56 | ||
57 | # Unsafe-for-viewing message report template. | |
58 | # | |
59 | # ...................................................................... | |
60 | clear_unsafe_report_template | |
61 | unsafe_report The original message was not completely plain text, and may be unsafe to | |
62 | unsafe_report open with some email clients; in particular, it may contain a virus, | |
63 | unsafe_report or confirm that your address can receive spam. If you wish to view | |
64 | unsafe_report it, it may be safer to save it to a file and open it with an editor. | |
65 | # ...................................................................... | |
66 | ||
67 | ########################################################################### | |
68 | # Database configuration options. | |
69 | # | |
70 | # user_scores_dsn MUST be in the form: | |
71 | # DBI:databasetype:databasename:hostname:port | |
72 | # ex. DBI:mysql:spamassassin:localhost | |
73 | # | |
74 | # user_scores_sql_username is the authorized username to connect to DSN | |
75 | # user_scores_sql_password is the password for the database username | |
76 | ||
77 | #user_scores_dsn DBI:mysql:spamassassin:localhost | |
78 | #user_scores_sql_username spam | |
79 | #user_scores_sql_password spamfilter | |
80 | ||
81 | ########################################################################## | |
82 | # Headers to be added to mail (can be overriden by users in | |
83 | # ~/.spamassassin/user_prefs) | |
84 | # Make sure the header stays entirely on one line here | |
85 | ||
86 | clear_headers | |
87 | ||
88 | #X-Spam-Checker-Version: SpamAssassin 2.60-cvs (1.188-2003-05-24-exp) | |
89 | add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_ | |
90 | ||
91 | #X-Spam-Flag: YES | |
92 | add_header spam Flag _YESNOCAPS_ | |
93 | ||
94 | #X-Spam-Level: ************* | |
95 | add_header all Level _STARS(*)_ | |
96 | ||
97 | #X-Spam-Status: Yes, score=14.0 required=5.0 tests=BAYES_99,CALL_FREE | |
98 | # DATE_IN_PAST_12_24,DCC_CHECK,DRASTIC_REDUCED,FROM_HAS_MIXED_NUMS | |
99 | # FROM_HAS_MIXED_NUMS3,HOME_EMPLOYMENT,INVALID_DATE,INVALID_MSGID | |
100 | # LINES_OF_YELLING,MSGID_HAS_NO_AT,NO_REAL_NAME,ONCE_IN_LIFETIME | |
101 | # UNDISC_RECIPS autolearn=spam version=2.60-cvs | |
102 | add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_" | |
103 | ||
104 | ########################################################################### | |
105 | # Default prefs values: users can override these in their | |
106 | # ~/.spamassassin/user_prefs files. | |
107 | ||
108 | # How many points before a mail is considered spam. | |
109 | required_score 5 | |
110 | ||
111 | # Mail using locales used in these country codes will not be marked | |
112 | # as being possibly spam in a foreign language. | |
113 | ok_locales all | |
114 | ||
115 | # Mail using languages used in these country codes will not be marked | |
116 | # as being possibly spam in a foreign language. This is an expensive | |
117 | # classification, so it is is disabled in init.pre by default. | |
118 | ifplugin Mail::SpamAssassin::Plugin::TextCat | |
119 | ok_languages all | |
120 | endif # Mail::SpamAssassin::Plugin::TextCat | |
121 | ||
122 | # Mail which scores outside this range will be fed back into SpamAssassin's | |
123 | # learning system automatically, to train the Bayesian scanner. | |
124 | ifplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold | |
125 | bayes_auto_learn_threshold_nonspam 0.1 | |
126 | bayes_auto_learn_threshold_spam 12.0 | |
127 | endif # Mail::SpamAssassin::Plugin::AutoLearnThreshold | |
128 | ||
129 | # Set this to 0 to turn off auto-learning. | |
130 | bayes_auto_learn 1 | |
131 | ||
132 | # report_safe controls the markup of spam. If you set it to 0, the message | |
133 | # body of spam messages will not be modified | |
134 | report_safe 1 | |
135 | ||
136 | # Headers to parse for originating IP address | |
137 | if can(Mail::SpamAssassin::Conf::feature_originating_ip_headers) | |
138 | clear_originating_ip_headers | |
139 | originating_ip_headers X-Yahoo-Post-IP X-Originating-IP X-Apparently-From | |
140 | originating_ip_headers X-SenderIP X-AOL-IP | |
141 | originating_ip_headers X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp | |
142 | endif | |
143 | ||
144 | if can(Mail::SpamAssassin::Conf::feature_dns_local_ports_permit_avoid) | |
145 | # leave out the more densely populated port number ranges | |
146 | dns_local_ports_avoid 0-11000 | |
147 | # leave out some ephemeral ports, making them available to other programs | |
148 | dns_local_ports_avoid 49152-49408 | |
149 | # avoid IANA assigned high port numbers | |
150 | dns_local_ports_avoid 11000-11001 11106 11111-11112 11161-11165 11201 11208 | |
151 | dns_local_ports_avoid 11211 11319-11321 11367 11371 11600 11720 11751 11967 | |
152 | dns_local_ports_avoid 12000-12008 12012-12013 12109 12121 12168 12172 12300 | |
153 | dns_local_ports_avoid 12321-12322 12345 12753 13160 13216-13218 13223-13224 | |
154 | dns_local_ports_avoid 13720-13722 13724 13782-13783 13785-13786 13818-13822 | |
155 | dns_local_ports_avoid 13929 14000-14001 14033-14034 14141-14142 14145 14149 | |
156 | dns_local_ports_avoid 14154 14250 14414 14936-14937 15000 15345 15363 15555 | |
157 | dns_local_ports_avoid 15660 15740 16161 16309-16311 16360-16361 16367-16368 | |
158 | dns_local_ports_avoid 16384 16900 16950 16991-16995 17007 17185 17219 17235 | |
159 | dns_local_ports_avoid 17500 17729 17754-17756 18000 18181-18187 18241 18262 | |
160 | dns_local_ports_avoid 18463 18634-18635 18769 18881 18888 19000 19191 19194 | |
161 | dns_local_ports_avoid 19283 19315 19398 19410-19412 19539-19541 19999-20003 | |
162 | dns_local_ports_avoid 20005 20014 20034 20046 20049 20167 20202 20222 20480 | |
163 | dns_local_ports_avoid 20670 20999-21000 21554 21590 21800 21845-21849 | |
164 | dns_local_ports_avoid 22000-22005 22273 22305 22343 22347 22350 22555 22763 | |
165 | dns_local_ports_avoid 22800 22951 23000-23005 23272 23333 23400-23402 | |
166 | dns_local_ports_avoid 24000-24006 24242 24249 24321 24386 24465 24554 | |
167 | dns_local_ports_avoid 24676-24678 24680 24922 25000-25009 25793 25900-25903 | |
168 | dns_local_ports_avoid 26000 26133 26208 26260-26263 26486-26487 26489 27345 | |
169 | dns_local_ports_avoid 27442 27504 27782 27999-28000 28240 29167 30001-30002 | |
170 | dns_local_ports_avoid 30260 30999 31416 31457 31620 31765 31948-31949 32034 | |
171 | dns_local_ports_avoid 32249 32483 32635-32636 32767-32777 32801 32896 33123 | |
172 | dns_local_ports_avoid 33331 33434 33656 34249 34378-34379 34962-34964 34980 | |
173 | dns_local_ports_avoid 36001 36865 37475 37654 38201-38203 39681 40000 | |
174 | dns_local_ports_avoid 40841-40843 41111 41794-41795 42508-42510 43188-43190 | |
175 | dns_local_ports_avoid 43440-43441 44321-44322 44553 44818 45054 45678 45825 | |
176 | dns_local_ports_avoid 45966 46999-47000 47557 47624 47806 47808 48000-48003 | |
177 | dns_local_ports_avoid 48128-48129 48556 48619 | |
178 | endif | |
179 | ||
180 | # Some common prefs settings can be set here, to take effect site-wide | |
181 | # unless the user override them. See the user_prefs.template file for | |
182 | # explanations. | |
183 | ||
184 |