~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to pkgrules/20_mailspike.cf

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# MailSpike is included in SpamAssassin 3.4+
 
3
if (version >= 3.004000)
 
4
ifplugin Mail::SpamAssassin::Plugin::DNSEval
 
5
## Spam sources
 
6
header __RCVD_IN_MSPIKE_B       eval:check_rbl('mspikeb-lastexternal', 'bl.mailspike.net.')
 
7
tflags __RCVD_IN_MSPIKE_B       net
 
8
 
 
9
## Ham sources
 
10
header __RCVD_IN_MSPIKE_L       eval:check_rbl('mspikeg-firsttrusted', 'wl.mailspike.net.')
 
11
tflags __RCVD_IN_MSPIKE_L       net
 
12
 
 
13
##### Reputation compensations
 
14
# Definitions - Bad senders
 
15
header __RCVD_IN_MSPIKE_Z       eval:check_rbl_sub('mspikeb-lastexternal', '127.0.0.2')
 
16
describe __RCVD_IN_MSPIKE_Z     Spam wave participant
 
17
tflags __RCVD_IN_MSPIKE_Z       net
 
18
 
 
19
header RCVD_IN_MSPIKE_L5        eval:check_rbl_sub('mspikeb-lastexternal', '127.0.0.10')
 
20
describe RCVD_IN_MSPIKE_L5      Very bad reputation (-5)
 
21
tflags RCVD_IN_MSPIKE_L5        net
 
22
 
 
23
header RCVD_IN_MSPIKE_L4        eval:check_rbl_sub('mspikeb-lastexternal', '127.0.0.11')
 
24
describe RCVD_IN_MSPIKE_L4      Bad reputation (-4)
 
25
tflags RCVD_IN_MSPIKE_L4        net
 
26
 
 
27
header RCVD_IN_MSPIKE_L3        eval:check_rbl_sub('mspikeb-lastexternal', '127.0.0.12')
 
28
describe RCVD_IN_MSPIKE_L3      Low reputation (-3)
 
29
tflags RCVD_IN_MSPIKE_L3        net
 
30
 
 
31
header RCVD_IN_MSPIKE_L2        eval:check_rbl_sub('mspikeb-lastexternal', '127.0.0.13')
 
32
describe RCVD_IN_MSPIKE_L2      Suspicious reputation (-2)
 
33
tflags RCVD_IN_MSPIKE_L2        net
 
34
 
 
35
# Definitions - Good senders
 
36
header RCVD_IN_MSPIKE_H5        eval:check_rbl_sub('mspikeg-firsttrusted', '127.0.0.20')
 
37
describe RCVD_IN_MSPIKE_H5      Excellent reputation (+5)
 
38
tflags RCVD_IN_MSPIKE_H5        nice net
 
39
 
 
40
header RCVD_IN_MSPIKE_H4        eval:check_rbl_sub('mspikeg-firsttrusted', '127.0.0.19')
 
41
describe RCVD_IN_MSPIKE_H4      Very Good reputation (+4)
 
42
tflags RCVD_IN_MSPIKE_H4        nice net
 
43
 
 
44
header RCVD_IN_MSPIKE_H3        eval:check_rbl_sub('mspikeg-firsttrusted', '127.0.0.18')
 
45
describe RCVD_IN_MSPIKE_H3      Good reputation (+3)
 
46
tflags RCVD_IN_MSPIKE_H3        nice net
 
47
 
 
48
header RCVD_IN_MSPIKE_H2        eval:check_rbl_sub('mspikeg-firsttrusted', '127.0.0.17')
 
49
describe RCVD_IN_MSPIKE_H2      Average reputation (+2)
 
50
tflags RCVD_IN_MSPIKE_H2        nice net
 
51
 
 
52
# *_L and *_Z may overlap each other, so account for that
 
53
meta __RCVD_IN_MSPIKE_LOW       RCVD_IN_MSPIKE_L5 || RCVD_IN_MSPIKE_L4 || RCVD_IN_MSPIKE_L3
 
54
tflags __RCVD_IN_MSPIKE_LOW     net
 
55
 
 
56
meta RCVD_IN_MSPIKE_ZBI         __RCVD_IN_MSPIKE_Z && !__RCVD_IN_MSPIKE_LOW
 
57
tflags RCVD_IN_MSPIKE_ZBI       net
 
58
 
 
59
## Meta rules for aggregating good and bad senders
 
60
# Bad
 
61
meta RCVD_IN_MSPIKE_BL          RCVD_IN_MSPIKE_L5 || RCVD_IN_MSPIKE_L4 || RCVD_IN_MSPIKE_L3 || __RCVD_IN_MSPIKE_Z
 
62
describe RCVD_IN_MSPIKE_BL      Mailspike blacklisted
 
63
tflags RCVD_IN_MSPIKE_BL        net
 
64
 
 
65
# Good
 
66
meta RCVD_IN_MSPIKE_WL          RCVD_IN_MSPIKE_H5 || RCVD_IN_MSPIKE_H4 || RCVD_IN_MSPIKE_H3
 
67
describe RCVD_IN_MSPIKE_WL      Mailspike good senders
 
68
tflags RCVD_IN_MSPIKE_WL        nice net
 
69
 
 
70
  endif
 
71
endif