summaryrefslogtreecommitdiffstats
path: root/rspamd.xml.sample
blob: 00d5459080ff80bc978b2f54a5cbbda1bc9b0703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?xml version="1.0" encoding="UTF-8"?>
<rspamd>
<!-- Main section -->
<tempdir>/tmp</tempdir>
<pidfile>/var/run/rspamd.pid</pidfile>
<filters>regexp,surbl,chartable,emails,fuzzy_check,spf</filters>
<statfile_pool_size>262144000</statfile_pool_size>
<raw_mode>yes</raw_mode>
<lua src="@ETC_PREFIX@/rspamd/lua/rspamd.lua">fake</lua>
<!-- End of main section -->

<!-- Logging section -->
<logging>
 <level>info</level>
 <log_urls>yes</log_urls>
 <type>console</type>
</logging>
<!-- End of logging section -->


<!-- Factors section -->
<metric>
 <name>default</name>
 <required_score>10.0</required_score>
 <symbol weight="8.00">R_SPAM_FROM_MTU</symbol>
 <symbol weight="10.00">R_WWW_EKONF_COM</symbol>
 <symbol weight="2.00">R_TINYURL</symbol>
 <symbol weight="2.00">MISSING_SUBJECT</symbol>
 <symbol weight="2.10">FORGED_OUTLOOK_TAGS</symbol>
 <symbol weight="8.00">R_FAKE_THEBAT</symbol>
 <symbol weight="5.00">FORGED_SENDER</symbol>
 <symbol weight="2.00">DRUGS_MANYKINDS</symbol>
 <symbol weight="3.30">ADVANCE_FEE_2</symbol>
 <symbol weight="2.12">ADVANCE_FEE_3</symbol>
 <symbol weight="3.50">SUSPICIOUS_RECIPS</symbol>
 <symbol weight="6.00">FAKE_REPLY_C</symbol>
 <symbol weight="1.00">MIME_HTML_ONLY</symbol>
 <symbol weight="5.50">AB_SURBL_MULTI</symbol>
 <symbol weight="2.00">FORGED_MSGID_YAHOO</symbol>
 <symbol weight="5.50">SC_SURBL_MULTI</symbol>
 <symbol weight="2.00">FORGED_MUA_THEBAT_BOUN</symbol>
 <symbol weight="5.00">R_MISSING_CHARSET</symbol>
 <symbol weight="2.00">RCVD_DOUBLE_IP_SPAM</symbol>
 <symbol weight="5.50">OB_SURBL_MULTI</symbol>
 <symbol weight="5.00">FORGED_OUTLOOK_HTML</symbol>
 <symbol weight="2.00">HTML_MIME_NO_HTML_TAG</symbol>
 <symbol weight="10.50">R_BAD_EMAIL</symbol>
 <symbol weight="10.00">R_SPAM_FROM_LIBERO</symbol>
 <symbol weight="-2.00">WHITELIST_IP</symbol>
 <symbol weight="5.00">R_UNDISC_RCPT</symbol>
 <symbol weight="2.00">DRUGS_ANXIETY</symbol>
 <symbol weight="2.00">DRUGS_ANXIETY_EREC</symbol>
 <symbol weight="5.50">PH_SURBL_MULTI</symbol>
 <symbol weight="9.00">R_WHITE_ON_WHITE</symbol>
 <symbol weight="1.00">FAKE_HTML</symbol>
 <symbol weight="10.00">R_SPAM_FROM_VERSATEL</symbol>
 <symbol weight="3.00">HTML_SHORT_LINK_IMG_2</symbol>
 <symbol weight="3.00">FORGED_MUA_OUTLOOK</symbol>
 <symbol weight="4.00">R_FREE_HOSTING</symbol>
 <symbol weight="2.00">DRUGS_ERECTILE</symbol>
 <symbol weight="3.00">R_FREE_HOSTING_NAROD</symbol>
 <symbol weight="10.00">R_SPAM_FROM_ONO</symbol>
 <symbol weight="2.00">FM_FAKE_HELO_VERIZON</symbol>
 <symbol weight="2.00">REPTO_QUOTE_YAHOO</symbol>
 <symbol weight="5.00">MISSING_MIMEOLE</symbol>
 <symbol weight="0.50">RAMBLER_URIBL</symbol>
 <symbol weight="10.00">R_SPAM_FROM_VALUEHOST</symbol>
 <symbol weight="5.00">R_MIXED_CHARSET</symbol>
 <symbol weight="3.50">SORTED_RECIPS</symbol>
 <symbol weight="3.00">R_RCVD_SPAMBOTS</symbol>
 <symbol weight="5.50">JP_SURBL_MULTI</symbol>
 <symbol weight="3.00">R_TO_SEEMS_AUTO</symbol>
 <symbol weight="1.00">SUBJECT_NEEDS_ENCODING</symbol>
 <symbol weight="3.84">TRACKER_ID</symbol>
 <symbol weight="7.00">KAM_LOTTO1</symbol>
 <symbol weight="3.00">R_NO_SPACE_IN_FROM</symbol>
 <symbol weight="8.00">R_SAJDING</symbol>
 <symbol weight="6.00">R_BAD_CTE_7BIT</symbol>
 <symbol weight="5.50">WS_SURBL_MULTI</symbol>
 <symbol weight="10.00">R_POCHTA_RU</symbol>
 <symbol weight="10.00">R_FLASH_REDIR_IMGSHACK</symbol>
 <symbol weight="5.00">INVALID_MSGID</symbol>
 <symbol weight="8.00">R_FORGED_MPOP_WEBMAIL</symbol>
 <symbol weight="3.00">MISSING_MID</symbol>
 <symbol weight="2.00">DRUGS_DIET</symbol>
 <symbol weight="3.00">FORGED_RECIPIENTS</symbol>
 <symbol weight="2.00">RATWARE_MS_HASH</symbol>
 <symbol weight="5.00">HTML_TAG_BALANCE_HEAD</symbol>
 <symbol weight="1.00">STOX_REPLY_TYPE</symbol>
 <symbol weight="1.00">WINNOW_SPAM</symbol>
 <symbol weight="-1.00">WINNOW_HAM</symbol>
 <symbol weight="2.00">MIME_HEADER_CTYPE_ONLY</symbol>
 <symbol weight="8.00">R_FAKE_OUTLOOK</symbol>
</metric>
<!-- End of factors section -->

<!-- Composites section -->
<!-- End of composites section -->

<!-- Workers section -->
<worker>
  <type>fuzzy</type>
  <bind_socket>localhost:11335</bind_socket>
  <count>1</count>
  <maxfiles>2048</maxfiles>
  <maxcore>0</maxcore>
<!-- Other params -->
    <param name="hashfile">/tmp/fuzzy.db</param>
    <param name="use_judy">yes</param>
</worker>
<worker>
  <type>controller</type>
  <bind_socket>localhost:11334</bind_socket>
  <count>1</count>
  <maxfiles>2048</maxfiles>
  <maxcore>0</maxcore>
<!-- Other params -->
    <param name="password">q1</param>
</worker>
<worker>
  <type>normal</type>
  <bind_socket>localhost:11333</bind_socket>
  <count>1</count>
  <maxfiles>2048</maxfiles>
  <maxcore>0</maxcore>
<!-- Other params -->
</worker>
<!-- End of workers section -->

<!-- Modules section -->
<!-- fuzzy_check -->
<module name="fuzzy_check">
  <option name="servers">localhost:11335</option>
  <option name="symbol">R_FUZZY</option>
  <option name="min_length">300</option>
  <option name="max_score">10</option>
  <option name="metric">default</option>
</module>

<!-- forged_recipients -->
<module name="forged_recipients">
  <option name="symbol_sender">FORGED_SENDER</option>
  <option name="symbol_rcpt">FORGED_RECIPIENTS</option>
</module>

<!-- maillist -->
<module name="maillist">
  <option name="symbol">MAILLIST</option>
</module>

<!-- surbl -->
<module name="surbl">
  <option name="whitelist">file://@ETC_PREFIX@/rspamd/surbl-whitelist.inc</option>
  <option name="2tld">file://@ETC_PREFIX@/rspamd/2tld.inc</option>
  <option name="metric">default</option>
  <option name="bit_64">JP</option>
  <option name="bit_32">AB</option>
  <option name="bit_16">OB</option>
  <option name="bit_8">PH</option>
  <option name="bit_4">WS</option>
  <option name="bit_2">SC</option>
  <option name="suffix_RAMBLER_URIBL">uribl.rambler.ru</option>
  <option name="suffix_%b_SURBL_MULTI">multi.surbl.org</option>
  <option name="redirector_read_timeout">10s</option>
  <option name="redirector_connect_timeout">1s</option>
  <option name="redirector">localhost:8080</option>
</module>

<!-- received_rbl -->
<module name="received_rbl">
  <option name="symbol">RECEIVED_RBL</option>
  <option name="rbl">pbl.spamhaus.org</option>
  <option name="rbl">xbl.spamhaus.org</option>
  <option name="rbl">insecure-bl.rambler.ru</option>
</module>

<!-- emails -->
<module name="emails">
  <option name="symbol">R_BAD_EMAIL</option>
  <option name="metric">default</option>
</module>

<!-- whitelist -->
<module name="whitelist">
  <option name="ip_whitelist">http://cebka.pp.ru/stuff/grey_whitelist.conf</option>
  <option name="symbol_ip">WHITELIST_IP</option>
</module>

<!-- chartable -->
<module name="chartable">
  <option name="threshold">0.1</option>
  <option name="symbol">R_MIXED_CHARSET</option>
  <option name="metric">default</option>
</module>

<!-- once_received -->
<module name="once_received">
  <option name="good_host">mail</option>
  <option name="bad_host">static</option>
  <option name="bad_host">dynamic</option>
  <option name="symbol_strict">ONCE_RECEIVED_STRICT</option>
  <option name="symbol">ONCE_RECEIVED</option>
</module>

<!-- End of modules section -->

<!-- Classifiers section -->
<classifier type="winnow">
 <tokenizer>osb-text</tokenizer>
 <metric>default</metric>
 <option name="min_tokens">20</option>
 <statfile>
  <symbol>WINNOW_HAM</symbol>
  <size>100M</size>
  <path>/var/run/rspamd/data.ham</path>
  <normalizer>internal:3</normalizer>
 </statfile>
 <statfile>
  <symbol>WINNOW_SPAM</symbol>
  <size>100M</size>
  <path>/var/run/rspamd/data.spam</path>
  <normalizer>internal:3</normalizer>
 </statfile>
</classifier>
<!-- End of classifiers section -->

<!-- Modules section -->
<modules>
	<path>@ETC_PREFIX@/rspamd/plugins/lua/</path>
</modules>
<!-- End of modules section -->

</rspamd>