2
# MailSpike is included in SpamAssassin 3.4+
3
if (version >= 3.004000)
4
ifplugin Mail::SpamAssassin::Plugin::DNSEval
6
header __RCVD_IN_MSPIKE_B eval:check_rbl('mspikeb-lastexternal', 'bl.mailspike.net.')
7
tflags __RCVD_IN_MSPIKE_B net
10
header __RCVD_IN_MSPIKE_L eval:check_rbl('mspikeg-firsttrusted', 'wl.mailspike.net.')
11
tflags __RCVD_IN_MSPIKE_L net
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
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
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
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
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
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
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
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
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
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
56
meta RCVD_IN_MSPIKE_ZBI __RCVD_IN_MSPIKE_Z && !__RCVD_IN_MSPIKE_LOW
57
tflags RCVD_IN_MSPIKE_ZBI net
59
## Meta rules for aggregating good and bad senders
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
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