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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
|
<?xml version="1.0" encoding="UTF-8"?>
<rspamd>
<!-- Global section -->
<lua src="@ETC_PREFIX@/rspamd/lua/rspamd.lua" />
<!-- Options -->
<options>
<!-- Temporary directory -->
<tempdir>/tmp</tempdir>
<!-- Path to pid file -->
<pidfile>/var/run/rspamd/rspamd.pid</pidfile>
<!-- Turned on C filters -->
<filters>regexp,surbl,chartable,fuzzy_check,spf</filters>
<!-- Maximum size of statistics mapped in memory -->
<statfile_pool_size>250M</statfile_pool_size>
<!-- Raw mode is non-utf mode. In utf mode all messages are converted to utf8 (if possible) -->
<raw_mode>yes</raw_mode>
<!-- Check text attachements as ordinary text parts -->
<check_attachements>no</check_attachements>
<!-- If a rule has been met several times do not add additional score -->
<one_shot>no</one_shot>
<!-- DNS requests global timeout -->
<dns_timeout>1s</dns_timeout>
<!-- DNS retransmits count -->
<dns_retransmits>5</dns_retransmits>
<!-- File for saving settings of symbols cache -->
<cache_file>/var/run/rspamd/symbols.cache</cache_file>
</options>
<!-- End of options section -->
<!-- Logging section -->
<logging>
<level>info</level>
<log_urls>yes</log_urls>
<type>console</type>
<!-- Other types
<type filename="/var/log/rspamd/rspamd.log">file</type>
<type facility="local7">syslog</type>
-->
<!-- Selective debug
<debug_ip>127.0.0.1</debug_ip>
<debug_symbols>SYMBOL1,SYMBOL2</debug_symbols>
-->
</logging>
<!-- End of logging section -->
<!-- Metrics section -->
<metric>
<name>default</name>
<required_score>10.0</required_score>
<!-- Sample actions -->
<action>reject</action>
<action>greylist:5</action>
<action>add_header:5</action>
<!-- Weights for symbols -->
<!-- Subject is missing inside message -->
<symbol weight="2.00" description="Subject is missing inside message">MISSING_SUBJECT</symbol>
<!-- Message pretends to be send from Outlook but has 'strange' tags -->
<symbol weight="2.10" description="Message pretends to be send from Outlook but has 'strange' tags ">FORGED_OUTLOOK_TAGS</symbol>
<!-- Sender is forged (different From: header and smtp MAIL FROM: addresses) -->
<symbol weight="5.00" description="Sender is forged (different From: header and smtp MAIL FROM: addresses)">FORGED_SENDER</symbol>
<!-- Recipients seems to be autogenerated (works if recipients count is more than 5) -->
<symbol weight="3.50" description="Recipients seems to be autogenerated (works if recipients count is more than 5)">SUSPICIOUS_RECIPS</symbol>
<!-- Fake reply (has RE in subject, but has not References header) -->
<symbol weight="6.00" description="Fake reply (has RE in subject, but has not References header)">FAKE_REPLY_C</symbol>
<!-- Messages that have only HTML part -->
<symbol weight="1.00" description="Messages that have only HTML part">MIME_HTML_ONLY</symbol>
<!-- Forged yahoo msgid -->
<symbol weight="2.00" description="Forged yahoo msgid">FORGED_MSGID_YAHOO</symbol>
<!-- Forged The Bat! MUA headers -->
<symbol weight="2.00" description="Forged The Bat! MUA headers">FORGED_MUA_THEBAT_BOUN</symbol>
<!-- Charset is missing in a message -->
<symbol weight="5.00" description="Charset is missing in a message">R_MISSING_CHARSET</symbol>
<!-- Two received headers with ip addresses -->
<symbol weight="2.00" description="Two received headers with ip addresses">RCVD_DOUBLE_IP_SPAM</symbol>
<!-- Forged outlook HTML signature -->
<symbol weight="5.00" description="Forged outlook HTML signature">FORGED_OUTLOOK_HTML</symbol>
<!-- Recipients are absent or undisclosed -->
<symbol weight="5.00" description="Recipients are absent or undisclosed">R_UNDISC_RCPT</symbol>
<!-- White color on white background in HTML messages -->
<symbol weight="9.00" description="White color on white background in HTML messages">R_WHITE_ON_WHITE</symbol>
<!-- Short html part with a link to an image -->
<symbol weight="3.00" description="Short html part with a link to an image">HTML_SHORT_LINK_IMG_2</symbol>
<!-- Forged outlook MUA -->
<symbol weight="3.00" description="Forged outlook MUA">FORGED_MUA_OUTLOOK</symbol>
<!-- Forged outlook MUA, but from maillist -->
<symbol weight="0.00" description="Forged outlook MUA, but from maillist">FORGED_MUA_OUTLOOK_MAILLIST</symbol>
<!-- Suspicious boundary in header Content-Type -->
<symbol weight="5.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY</symbol>
<!-- Suspicious boundary in header Content-Type -->
<symbol weight="4.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY2</symbol>
<!-- Suspicious boundary in header Content-Type -->
<symbol weight="3.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY3</symbol>
<!-- Suspicious boundary in header Content-Type -->
<symbol weight="4.00" description="Suspicious boundary in header Content-Type">SUSPICIOUS_BOUNDARY4</symbol>
<!-- Message pretends to be send from The Bat! but has forged Message-ID -->
<symbol weight="4.00" description="Message pretends to be send from The Bat! but has forged Message-ID">FORGED_MUA_THEBAT_MSGID</symbol>
<!-- Message pretends to be send from The Bat! but has forged Message-ID -->
<symbol weight="3.00" description="Message pretends to be send from The Bat! but has forged Message-ID">FORGED_MUA_THEBAT_MSGID_UNKNOWN</symbol>
<!-- Message pretends to be send from KMail but has forged Message-ID -->
<symbol weight="3.00" description="Message pretends to be send from KMail but has forged Message-ID">FORGED_MUA_KMAIL_MSGID</symbol>
<!-- Message pretends to be send from KMail but has forged Message-ID -->
<symbol weight="2.50" description="Message pretends to be send from KMail but has forged Message-ID">FORGED_MUA_KMAIL_MSGID_UNKNOWN</symbol>
<!-- Message pretends to be send from Opera Mail but has forged Message-ID -->
<symbol weight="4.00" description="Message pretends to be send from Opera Mail but has forged Message-ID">FORGED_MUA_OPERA_MSGID</symbol>
<!-- Message pretends to be send from suspicious Opera Mail/10.x (Windows) but has forged Message-ID, apparently from KMail -->
<symbol weight="4.00" description="Message pretends to be send from suspicious Opera Mail/10.x (Windows) but has forged Message-ID, apparently from KMail">SUSPICIOUS_OPERA_10W_MSGID</symbol>
<!-- Message pretends to be send from Mozilla Mail but has forged Message-ID -->
<symbol weight="3.50" description="Message pretends to be send from Mozilla Mail but has forged Message-ID">FORGED_MUA_MOZILLA_MAIL_MSGID</symbol>
<!-- Message pretends to be send from Mozilla Mail but has forged Message-ID -->
<symbol weight="2.50" description="Message pretends to be send from Mozilla Mail but has forged Message-ID">FORGED_MUA_MOZILLA_MAIL_MSGID_UNKNOWN</symbol>
<!-- Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID -->
<symbol weight="3.50" description="Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID">FORGED_MUA_THUNDERBIRD_MSGID</symbol>
<!-- Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID -->
<symbol weight="2.50" description="Forged mail pretending to be from Mozilla Thunderbird but has forged Message-ID">FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN</symbol>
<!-- Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID -->
<symbol weight="3.50" description="Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID">FORGED_MUA_SEAMONKEY_MSGID</symbol>
<!-- Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID -->
<symbol weight="2.50" description="Forged mail pretending to be from Mozilla Seamonkey but has forged Message-ID">FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN</symbol>
<!-- Fake helo for verizon provider -->
<symbol weight="2.00" description="Fake helo for verizon provider">FM_FAKE_HELO_VERIZON</symbol>
<!--Quoted reply-to from yahoo (seems to be forged) -->
<symbol weight="2.00" description="Quoted reply-to from yahoo (seems to be forged)">REPTO_QUOTE_YAHOO</symbol>
<!-- Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange) -->
<symbol weight="5.00" description="Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange)">MISSING_MIMEOLE</symbol>
<!-- To header is missing -->
<symbol weight="2.00" description="To header is missing">MISSING_TO</symbol>
<!-- From that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
<symbol weight="1.5" description="From that contains encoded characters while base 64 is not needed as all symbols are 7bit">FROM_EXCESS_BASE64</symbol>
<!-- From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
<symbol weight="1.2" description="From that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">FROM_EXCESS_QP</symbol>
<!-- To that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
<symbol weight="1.5" description="To that contains encoded characters while base 64 is not needed as all symbols are 7bit">TO_EXCESS_BASE64</symbol>
<!-- To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
<symbol weight="1.2" description="To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">TO_EXCESS_QP</symbol>
<!-- Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
<symbol weight="1.5" description="Reply-To that contains encoded characters while base 64 is not needed as all symbols are 7bit">REPLYTO_EXCESS_BASE64</symbol>
<!-- Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
<symbol weight="1.2" description="Reply-To that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">REPLYTO_EXCESS_QP</symbol>
<!-- Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit -->
<symbol weight="1.5" description="Cc that contains encoded characters while base 64 is not needed as all symbols are 7bit">CC_EXCESS_BASE64</symbol>
<!-- Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit -->
<symbol weight="1.2" description="Cc that contains encoded characters while quoted-printable is not needed as all symbols are 7bit">CC_EXCESS_QP</symbol>
<!-- Mixed characters in a message -->
<symbol weight="5.00" description="Mixed characters in a message">R_MIXED_CHARSET</symbol>
<!-- Recipients list seems to be sorted -->
<symbol weight="3.50" description="Recipients list seems to be sorted">SORTED_RECIPS</symbol>
<!-- Spambots signatures in received headers -->
<symbol weight="3.00" description="Spambots signatures in received headers">R_RCVD_SPAMBOTS</symbol>
<!-- To header seems to be autogenerated -->
<symbol weight="2.00" description="To header seems to be autogenerated">R_TO_SEEMS_AUTO</symbol>
<!-- Subject needs encoding -->
<symbol weight="1.00" description="Subject needs encoding">SUBJECT_NEEDS_ENCODING</symbol>
<!-- Spam string at the end of message to make statistics faults 0-->
<symbol weight="3.84" description="Spam string at the end of message to make statistics faults 0">TRACKER_ID</symbol>
<!-- No space in from header -->
<symbol weight="1.00" description="No space in from header">R_NO_SPACE_IN_FROM</symbol>
<!-- Subject seems to be spam -->
<symbol weight="8.00" description="Subject seems to be spam">R_SAJDING</symbol>
<!-- Detects bad content-transfer-encoding for text parts -->
<symbol weight="3.00" description="Detects bad content-transfer-encoding for text parts">R_BAD_CTE_7BIT</symbol>
<!-- Flash redirect on imageshack.us -->
<symbol weight="10.00" description="Flash redirect on imageshack.us">R_FLASH_REDIR_IMGSHACK</symbol>
<!-- Message id is incorrect -->
<symbol weight="5.00" description="Message id is incorrect">INVALID_MSGID</symbol>
<!-- Message id is missing -->
<symbol weight="3.00" description="Message id is missing ">MISSING_MID</symbol>
<!-- Recipients are not the same as RCPT TO: mail command -->
<symbol weight="3.00" description="Recipients are not the same as RCPT TO: mail command">FORGED_RECIPIENTS</symbol>
<!-- Recipients are not the same as RCPT TO: mail command, but from maillist -->
<symbol weight="0.00" description="Recipients are not the same as RCPT TO: mail command, but from maillist">FORGED_RECIPIENTS_MAILLIST</symbol>
<!-- Forged Exchange messages -->
<symbol weight="2.00" description="Forged Exchange messages ">RATWARE_MS_HASH</symbol>
<!-- Reply-type in content-type -->
<symbol weight="1.00" description="Reply-type in content-type">STOX_REPLY_TYPE</symbol>
<!-- IP in received headers is in PBL -->
<symbol weight="3.00" description="IP in received headers is in PBL">R_IP_PBL</symbol>
<!-- One received header in a message -->
<symbol weight="1.00" description="One received header in a message ">ONCE_RECEIVED</symbol>
<!-- One received header with 'bad' patterns inside -->
<symbol weight="4.00" description="One received header with 'bad' patterns inside">ONCE_RECEIVED_STRICT</symbol>
<!-- Received headers contains addresses from RBL -->
<symbol weight="1.00" description="Received headers contains addresses from RBL">RECEIVED_RBL</symbol>
<!-- Text and HTML parts differ -->
<symbol weight="3.00" description="Text and HTML parts differ">R_PARTS_DIFFER</symbol>
<!-- Only Content-Type header without other MIME headers -->
<symbol weight="2.00" description="Only Content-Type header without other MIME headers">MIME_HEADER_CTYPE_ONLY</symbol>
<!-- Message contains empty parts and image -->
<symbol weight="2.00" description="Message contains empty parts and image ">R_EMPTY_IMAGE</symbol>
<!-- Drugs patterns inside message -->
<symbol weight="2.00" description="Drugs patterns inside message">DRUGS_MANYKINDS</symbol>
<!-- Specific drugs signatures -->
<symbol weight="2.00" description="">DRUGS_ANXIETY</symbol>
<symbol weight="2.00" description="">DRUGS_MUSCLE</symbol>
<symbol weight="2.00" description="">DRUGS_ANXIETY_EREC</symbol>
<symbol weight="2.00" description="">DRUGS_DIET</symbol>
<symbol weight="2.00" description="">DRUGS_ERECTILE</symbol>
<!-- 2 or 3 'advance fee' patterns in a message -->
<symbol weight="3.30" description="2 'advance fee' patterns in a message">ADVANCE_FEE_2</symbol>
<symbol weight="2.12" description="3 'advance fee' patterns in a message">ADVANCE_FEE_3</symbol>
<!-- Lotto signatures -->
<symbol weight="8.00" description="Lotto signatures">R_LOTTO</symbol>
<!-- Statistics -->
<symbol weight="3.00" description="Message probably spam, probability: ">BAYES_SPAM</symbol>
<symbol weight="-3.00" description="Message probably ham, probability: ">BAYES_HAM</symbol>
<!-- Fuzzy lists example -->
<symbol weight="1.00" description="">R_FUZZY</symbol>
<symbol weight="1.00" description="">R_FUZZY1</symbol>
<symbol weight="1.00" description="">R_FUZZY2</symbol>
<symbol weight="1.00" description="">R_FUZZY3</symbol>
<!-- SPF rules -->
<symbol weight="3.00" description="SPF verification failed">R_SPF_FAIL</symbol>
<symbol weight="1.00" description="SPF verification soft-failed">R_SPF_SOFTFAIL</symbol>
<symbol weight="-3.00" description="SPF verification alowed">R_SPF_ALLOW</symbol>
<!-- Whitelisted client's IP -->
<symbol weight="-2.00" description="Whitelisted client's IP">WHITELIST_IP</symbol>
<!-- Message seems to be from maillist -->
<symbol weight="-2.00" description="Message seems to be from maillist">MAILLIST</symbol>
<!-- multi.surbl.org lists (more details at http://www.surbl.org) -->
<!-- Phishing and malware sites -->
<symbol weight="5.50" description="Phishing and malware sites">PH_SURBL_MULTI</symbol>
<!-- Outblaze URI Blacklist -->
<symbol weight="5.50" description="Outblaze URI Blacklist">OB_SURBL_MULTI</symbol>
<!-- AbuseButler web sites -->
<symbol weight="5.50" description="AbuseButler web sites">AB_SURBL_MULTI</symbol>
<!-- SpamCop web sites -->
<symbol weight="5.50" description="SpamCop web sites">SC_SURBL_MULTI</symbol>
<!-- jwSpamSpy + Prolocation sites -->
<symbol weight="5.50" description="jwSpamSpy + Prolocation sites">JP_SURBL_MULTI</symbol>
<!-- sa-blacklist web sites -->
<symbol weight="5.50" description="sa-blacklist web sites ">WS_SURBL_MULTI</symbol>
<!-- rambler.ru uribl -->
<symbol weight="9.50" description="rambler.ru uribl">RAMBLER_URIBL</symbol>
<!-- rambler.ru emailbl -->
<symbol weight="9.50" description="rambler.ru emailbl">RAMBLER_EMAILBL</symbol>
<!-- Phished mail -->
<symbol weight="5.0" description="Phished mail">PHISHING</symbol>
</metric>
<!-- End of metrics section -->
<!-- Composites section -->
<composite name="FORGED_RECIPIENTS_MAILLIST">FORGED_RECIPIENTS & -MAILLIST</composite>
<composite name="FORGED_MUA_OUTLOOK_MAILLIST">FORGED_MUA_OUTLOOK & -MAILLIST</composite>
<!-- 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 -->
<hashfile>/tmp/fuzzy.db</hashfile>
<use_judy>yes</use_judy>
</worker>
<worker>
<type>controller</type>
<bind_socket>localhost:11334</bind_socket>
<count>1</count>
<maxfiles>2048</maxfiles>
<maxcore>0</maxcore>
<!-- Other params -->
<password>q1</password>
</worker>
<worker>
<type>normal</type>
<bind_socket>*: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">
<servers>localhost:11335</servers>
<symbol>R_FUZZY</symbol>
<min_bytes>300</min_bytes>
<max_score>10</max_score>
<mime_types>application/pdf</mime_types>
<fuzzy_map>1:R_FUZZY1:10,2:R_FUZZY2:5,3:R_FUZZY3:-2.1</fuzzy_map>
</module>
<!-- forged_recipients -->
<module name="forged_recipients">
<symbol_sender>FORGED_SENDER</symbol_sender>
<symbol_rcpt>FORGED_RECIPIENTS</symbol_rcpt>
</module>
<!-- maillist -->
<module name="maillist">
<symbol>MAILLIST</symbol>
</module>
<!-- surbl -->
<module name="surbl">
<whitelist>file://@ETC_PREFIX@/rspamd/surbl-whitelist.inc</whitelist>
<exceptions>file://@ETC_PREFIX@/rspamd/2tld.inc</exceptions>
<bit_64>JP</bit_64>
<bit_32>AB</bit_32>
<bit_16>OB</bit_16>
<bit_8>PH</bit_8>
<bit_4>WS</bit_4>
<bit_2>SC</bit_2>
<suffix_RAMBLER_URIBL>uribl.rambler.ru</suffix_RAMBLER_URIBL>
<option name="suffix_%b_SURBL_MULTI">multi.surbl.org</option>
<redirector_read_timeout>10s</redirector_read_timeout>
<redirector_connect_timeout>1s</redirector_connect_timeout>
<redirector>localhost:8080</redirector>
</module>
<!-- received_rbl -->
<module name="received_rbl">
<symbol>RECEIVED_RBL</symbol>
<rbl>pbl.spamhaus.org</rbl>
<rbl>xbl.spamhaus.org</rbl>
<rbl>insecure-bl.rambler.ru</rbl>
</module>
<!-- whitelist -->
<module name="whitelist">
<ip_whitelist>http://cebka.pp.ru/stuff/grey_whitelist.conf</ip_whitelist>
<symbol_ip>WHITELIST_IP</symbol_ip>
</module>
<!-- chartable -->
<module name="chartable">
<threshold>0.1</threshold>
<symbol>R_MIXED_CHARSET</symbol>
</module>
<!-- once_received -->
<module name="once_received">
<good_host>mail</good_host>
<bad_host>static</bad_host>
<bad_host>dynamic</bad_host>
<symbol_strict>ONCE_RECEIVED_STRICT</symbol_strict>
<symbol>ONCE_RECEIVED</symbol>
</module>
<!-- multimap -->
<module name="multimap">
<!--
<rule>type = header, header = To, pattern = @(.+)>?$, map = file://@ETC_PREFIX@/rspamd/rcpt_test, symbol = R_RCPT_WHITELIST</rule>
<rule>type = ip, map = file://@ETC_PREFIX@/rspamd/ip_test, symbol = R_IP_WHITELIST</rule>
-->
<rule>type = dnsbl, map = pbl.spamhaus.org, symbol = R_IP_PBL</rule>
</module>
<!-- phishing -->
<module name="phishing">
<symbol>PHISHING</symbol>
<!-- <domains>file://path/to/domains</domains> -->
</module>
<!-- Trie module -->
<!--
<module name="trie">
<option name="rule">TRIE1:bad pattern</option>
</module>
-->
<!-- Emails blacklist -->
<module name="emails">
<option name="rule">symbol = RAMBLER_EMAILBL, dnsbl = email-bl.rambler.ru, domain_only = false</option>
<!--
<option name="rule">symbol = R_BAD_EMAIL1, map = file:///tmp/emails.list, domain_only = true</option>
-->
</module>
<!-- End of modules section -->
<!-- Classifiers section -->
<!--
<classifier type="winnow">
<tokenizer>osb-text</tokenizer>
<metric>default</metric>
<min_tokens>20</min_tokens>
<statfile>
<symbol>WINNOW_HAM</symbol>
<size>100M</size>
<path>/var/run/rspamd/data.ham</path>
</statfile>
<statfile>
<symbol>WINNOW_SPAM</symbol>
<size>100M</size>
<path>/var/run/rspamd/data.spam</path>
</statfile>
</classifier>
-->
<!-- Example of slave
<classifier type="bayes">
<tokenizer>osb-text</tokenizer>
<metric>default</metric>
<min_tokens>10</min_tokens>
<learn_threshold>0.2</learn_threshold>
<statfile>
<symbol>BAYES_HAM</symbol>
<size>10M</size>
<path>/var/run/rspamd/bayes_slave.ham</path>
<binlog_master>localhost:11334</binlog_master>
<binlog>slave</binlog>
</statfile>
<statfile>
<symbol>BAYES_SPAM</symbol>
<size>10M</size>
<path>/var/run/rspamd/bayes_slave.spam</path>
<binlog>slave</binlog>
<binlog_master>localhost:11334</binlog_master>
</statfile>
</classifier>
-->
<classifier type="bayes">
<tokenizer>osb-text</tokenizer>
<metric>default</metric>
<min_tokens>10</min_tokens>
<statfile>
<symbol>BAYES_HAM</symbol>
<size>10M</size>
<path>/var/run/rspamd/bayes.ham</path>
<binlog>master</binlog>
</statfile>
<statfile>
<symbol>BAYES_SPAM</symbol>
<size>10M</size>
<path>/var/run/rspamd/bayes.spam</path>
<binlog>master</binlog>
</statfile>
</classifier>
<!-- End of classifiers section -->
<!-- Modules section -->
<modules>
<path>@ETC_PREFIX@/rspamd/plugins/lua/</path>
</modules>
<!-- End of modules section -->
</rspamd>
|