~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-updates

« back to all changes in this revision

Viewing changes to rules/20_dynrdns.cf

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2010-01-26 22:53:12 UTC
  • mfrom: (1.1.13 upstream) (5.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100126225312-wkftb10idc1kz2aq
Tags: 3.3.0-1
* New upstream version.
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# SpamAssassin rules file: dynamic-ish rDNS tests
2
 
#
3
 
# Please don't modify this file as your changes will be overwritten with
4
 
# the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
5
 
# See 'perldoc Mail::SpamAssassin::Conf' for details.
6
 
#
7
 
# We should write a new ruletype for these, to save typing.
8
 
#
9
 
# <@LICENSE>
10
 
# Licensed to the Apache Software Foundation (ASF) under one or more
11
 
# contributor license agreements.  See the NOTICE file distributed with
12
 
# this work for additional information regarding copyright ownership.
13
 
# The ASF licenses this file to you under the Apache License, Version 2.0
14
 
# (the "License"); you may not use this file except in compliance with
15
 
# the License.  You may obtain a copy of the License at:
16
 
17
 
#     http://www.apache.org/licenses/LICENSE-2.0
18
 
19
 
# Unless required by applicable law or agreed to in writing, software
20
 
# distributed under the License is distributed on an "AS IS" BASIS,
21
 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
 
# See the License for the specific language governing permissions and
23
 
# limitations under the License.
24
 
# </@LICENSE>
25
 
#
26
 
###########################################################################
27
 
 
28
 
require_version @@VERSION@@
29
 
 
30
 
# ---------------------------------------------------------------------------
31
 
 
32
 
# Note the '^[^\]]+ ' stanza: this ensures that we only match spamware
33
 
# connecting to a trusted relay; if a mail came from a dynamic addr but
34
 
# was relayed through their smarthost, that's fine.
35
 
 
36
 
# All of the RDNS_DYNAMIC rules require that the last untrusted relay
37
 
# did not use SMTP authentication.  These rules should not be firing on
38
 
# friendlies!
39
 
header __LAST_UNTRUSTED_RELAY_NO_AUTH X-Spam-Relays-Untrusted =~ /^[^\]]+ auth= /
40
 
 
41
 
# dhcp024-210-034-053.columbus.rr.com [24.210.34.53]
42
 
# c-66-176-16-108.se.client2.attbi.com [66.176.16.108]
43
 
# c-67-168-174-61.client.comcast.net [67.168.174.61]
44
 
# NNN-NNN-NNN-NNN.fibertel.com.ar
45
 
# NN.NN.NNN.NNN.ap.yournet.ne.jp
46
 
# NN.NNN.NN-NN.rev.gaoland.net
47
 
# vaise-1-82-67-44-166.fbx.proxad.net [82.67.44.166]
48
 
# lns-vlq-11-62-147-186-141.adsl.proxad.net [62.147.186.141]
49
 
# dsl-200-95-109-107.prod-infinitum.com.mx [200.95.109.107]
50
 
# port-212-202-77-203.reverse.qsc.de [212.202.77.203]
51
 
# pool-151-203-32-68.bos.east.verizon.net [151.203.32.68]
52
 
# c-67-164-133-216.client.comcast.net [67.164.133.216]
53
 
# 200-171-228-6.customer.telesp.net.br [200.171.228.6]
54
 
# modemcable090.28-201-24.mc.videotron.ca [24.201.28.90]
55
 
# 80-218-47-160.dclient.hispeed.ch [80.218.47.160]
56
 
# cdm-68-226-239-16.laft.cox-internet.com [68.226.239.16]
57
 
# d53-64-35-171.nap.wideopenwest.com [64.53.171.35]
58
 
# 74.67-201-80.adsl.skynet.be [80.201.67.74]
59
 
# 12-218-225-223.client.mchsi.com [12.218.225.223]
60
 
# pptp-81-30-186-139.ufanet.ru [81.30.186.139]
61
 
# (require an alpha first, as legit HELO'ing-as-IP-address is hit otherwise)
62
 
header __RDNS_DYNAMIC_IPADDR X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S*\d+[^\d\s]\d+[^\d\s]\d+[^\d\s]\d+\S*\.\S+\.\S+/i
63
 
describe __RDNS_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1)
64
 
 
65
 
# dhcp024-210-034-053.columbus.rr.com [24.210.34.53]
66
 
# catv-506237d8.miskcatv.broadband.hu [80.98.55.216]
67
 
# node-c-8b22.a2000.nl
68
 
# cm89.omega139.maxonline.com.sg
69
 
# cm114.gamma208.maxonline.com.sg
70
 
header __RDNS_DYNAMIC_DHCP X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S*(?:cm|catv|docsis|cable|dsl|dhcp|cpe|node)\S*\d+[^\d\s]+\d+/i
71
 
describe __RDNS_DYNAMIC_DHCP Relay HELO'd using suspicious hostname (DHCP)
72
 
 
73
 
# fia83-8.dsl.hccnet.nl [62.251.8.83]
74
 
# fia160-115-100.dsl.hccnet.nl [80.100.115.160]
75
 
header __RDNS_DYNAMIC_HCC   X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S*\d+[^\d\s]+\d+\S*\.(?:docsis|cable|dsl|adsl|dhcp|cpe)\./i
76
 
describe __RDNS_DYNAMIC_HCC Relay HELO'd using suspicious hostname (HCC)
77
 
 
78
 
# h0002a5d76857.ne.client2.attbi.com [65.96.12.59]
79
 
header __RDNS_DYNAMIC_ATTBI  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+\d+\S+\.client2\.attbi\.com/i
80
 
describe __RDNS_DYNAMIC_ATTBI Relay HELO'd using suspicious hostname (ATTBI.com)
81
 
 
82
 
# CPE0004e2372711-CM000a73666706.cpe.net.cable.rogers.com
83
 
# CPE00e0184f0eba-CM014490118324.cpe.net.cable.rogers.com [24.43.109.140]
84
 
header __RDNS_DYNAMIC_ROGERS X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=CPE\d+\S+\.rogers\.com/i
85
 
describe __RDNS_DYNAMIC_ROGERS Relay HELO'd using suspicious hostname (Rogers)
86
 
 
87
 
# ca-morpark-cuda1-zone7-b-159.vnnyca.adelphia.net[67.23.129.159]
88
 
# tn-greenvillecuda1cable7a-36.atlaga.adelphia.net [68.171.113.36]
89
 
# ky-richmond2a-123.rhmdky.adelphia.net [68.71.36.123]
90
 
# ny-lackawannacadent4-chtwga3a-b-117.buf.adelphia.net [68.71.205.117]
91
 
# fl-edel-u2-c3c-233.pbc.adelphia.net [68.64.89.233]
92
 
header __RDNS_DYNAMIC_ADELPHIA X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z]{2}-\S+-\d{1,3}\.[a-z]{3,8}\.adelphia\.net/i
93
 
describe __RDNS_DYNAMIC_ADELPHIA Relay HELO'd using suspicious hostname (Adelphia)
94
 
 
95
 
# pD9E4F89F.dip.t-dialin.net [217.228.248.159]
96
 
header __RDNS_DYNAMIC_DIALIN X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z][A-F0-9]+\.dip\./
97
 
describe __RDNS_DYNAMIC_DIALIN Relay HELO'd using suspicious hostname (T-Dialin)
98
 
 
99
 
# 0xd5aaf40b.dhcp.kabelnettet.dk
100
 
# 0x50a46949.virnxx11.adsl-dhcp.tele.dk
101
 
header __RDNS_DYNAMIC_HEXIP X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=0x[a-f0-9]{8}\./
102
 
describe __RDNS_DYNAMIC_HEXIP Relay HELO'd using suspicious hostname (Hex IP)
103
 
 
104
 
# 118.Red-80-35-201.pooles.rima-tde.net
105
 
header __RDNS_DYNAMIC_SPLIT_IP X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\d+\.\S+\d+[^\d\s]\d+[^\d\s]\d+[^\d\s]/
106
 
describe __RDNS_DYNAMIC_SPLIT_IP Relay HELO'd using suspicious hostname (Split IP)
107
 
 
108
 
# YahooBB219173000034.bbtec.net [219.173.0.34]
109
 
header __RDNS_DYNAMIC_YAHOOBB X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=YahooBB/i
110
 
describe __RDNS_DYNAMIC_YAHOOBB Relay HELO'd using suspicious hostname (YahooBB)
111
 
 
112
 
# ool-18be1aaf.dyn.optonline.net [24.190.26.175]
113
 
header __RDNS_DYNAMIC_OOL X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+\.dyn\.optonline\.net/
114
 
describe __RDNS_DYNAMIC_OOL Relay HELO'd using suspicious hostname (OptOnline)
115
 
 
116
 
# wiley-170-10231.roadrunner.nf.net [205.251.210.249]
117
 
header __RDNS_DYNAMIC_RR2   X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z]+-\d{1,3}-\d{1,5}\.roadrunner/i
118
 
describe __RDNS_DYNAMIC_RR2 Relay HELO'd using suspicious hostname (RR 2)
119
 
 
120
 
# pcp04024417pcs.toresd01.pa.comcast.net [68.86.206.126]
121
 
# bgp542174bgs.ewndsr01.nj.comcast.net[68.38.144.91]
122
 
# Computer-udp135632uds.union01.nj.comcast.net [68.39.99.32]
123
 
header __RDNS_DYNAMIC_COMCAST X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z-]+\d+[a-z]{3}\.[a-z0-9]+\...\.comcast/i
124
 
describe __RDNS_DYNAMIC_COMCAST Relay HELO'd using suspicious hostname (Comcast)
125
 
 
126
 
# h234n2fls32o895.telia.com [217.208.73.234]
127
 
# h53n2fls32o828.telia.com
128
 
# h116n2fls32o1111.telia.com
129
 
# h29n1fls306o1003.telia.com
130
 
header __RDNS_DYNAMIC_TELIA X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=h\d+n\d+fls\S+\.telia\.com/i
131
 
describe __RDNS_DYNAMIC_TELIA Relay HELO'd using suspicious hostname (Telia)
132
 
 
133
 
# CM-vina5-168-207.cm.vtr.net [200.104.168.207]
134
 
# CM-anto1-98-153.cm.vtr.net [200.104.98.153]
135
 
header __RDNS_DYNAMIC_VTR X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=cm-[a-z]+\d+-\d+-\d+\.cm\.vtr/i
136
 
describe __RDNS_DYNAMIC_VTR Relay HELO'd using suspicious hostname (VTR)
137
 
 
138
 
# ec9z5l.cm.chello.no
139
 
header __RDNS_DYNAMIC_CHELLO_NO  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+\.cm\.chello\.no/i
140
 
describe __RDNS_DYNAMIC_CHELLO_NO Relay HELO'd using suspicious hostname (Chello.no)
141
 
 
142
 
# g225174.upc-g.chello.nl
143
 
# a151145.upc-a.chello.nl
144
 
# a96134.upc-a.chello.nl
145
 
header __RDNS_DYNAMIC_CHELLO_NL  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z]\d+\.upc-[a-z]\.chello\.nl/i
146
 
describe __RDNS_DYNAMIC_CHELLO_NL Relay HELO'd using suspicious hostname (Chello.nl)
147
 
 
148
 
# MG001182.user.veloxzone.com.br
149
 
# ba199058073.user.veloxzone.com.br
150
 
header __RDNS_DYNAMIC_VELOX  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z]{2}\d+\.user\.veloxzone\./i
151
 
describe __RDNS_DYNAMIC_VELOX Relay HELO'd using suspicious hostname (Veloxzone)
152
 
 
153
 
# public4-seve6-5-cust173.lond.broadband.ntl.com
154
 
# spr1-bolt5-5-0-cust9.manc.broadband.ntl.com
155
 
# spc1-lewi4-6-0-cust190.lond.broadband.ntl.com
156
 
header __RDNS_DYNAMIC_NTL  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+\d+-\d+-cust\d+\.[a-z]{4,6}\.broadband\.ntl\.com/i
157
 
describe __RDNS_DYNAMIC_NTL Relay HELO'd using suspicious hostname (NTL)
158
 
 
159
 
# cp160000-a.mill1.nb.home.nl
160
 
# cp341468-b.venra1.lb.home.nl
161
 
header __RDNS_DYNAMIC_HOME_NL  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=[a-z]{2}\d+-\S\.\S+\d\.[a-z]{2}\.home\.nl/i
162
 
describe __RDNS_DYNAMIC_HOME_NL Relay HELO'd using suspicious hostname (Home.nl)
163
 
 
164
 
# (I'm quite sure these may be a good spamsign in future)
165
 
# nwblwi-nrp3-l10-a671.nwblwi.tds.net
166
 
header __RDNS_DYNAMIC_TDS X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+-[a-z]\d+\.[a-z]{6}\.tds\.net/i
167
 
header __RDNS_DYNAMIC_VIRTUA  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\d+\.cps\./i
168
 
 
169
 
# sp1-c700-131.spacelan.ne.jp
170
 
header __RDNS_DYNAMIC_SPACELAN X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+-[a-z]\d+-\d+\./i
171
 
 
172
 
# rDNS host-type indicators, as per
173
 
# http://tools.ietf.org/wg/dnsop/draft-msullivan-dnsop-generic-naming-schemes-00.txt
174
 
header __RDNS_INDICATOR_DYN   X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+[\-\.]dyn(?:amic)?[\-\.]/i
175
 
 
176
 
# surprisingly large ham hitrate
177
 
header __RDNS_INDICATOR_TYPE  X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+[\-\.](?:dial|modem|isdn|dov|\S?dsl|cable|wireless)[\-\.]/i
178
 
 
179
 
# this hits a little ham, not too much though
180
 
header __RDNS_INDICATOR_RES   X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+[\-\.](?:res|resnet|client)[\-\.]/i
181
 
 
182
 
# these are non-standard, but common in the field; 100% spam correlation!
183
 
# (I think that's a fluke)
184
 
header __RDNS_INDICATOR_TYPE2 X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+[\-\.](?:docsis|dhcp|cpe|catv)[\-\.]/i
185
 
 
186
 
# dsl.dynamic8510023760.ttnet.net.tr
187
 
header __RDNS_DYNAMIC_TTNET   X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S+[\-\.]dyn(?:amic)?\d/i
188
 
 
189
 
# exceptions (bug 5397):
190
 
header  __RDNS_STATIC         X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns=\S*(?:static|fixip)/i
191
 
 
192
 
# bug 5586:
193
 
header __CGATE_RCVD       Received =~ /by \S+ \(CommuniGate Pro/
194
 
 
195
 
header __RDNS_NONE    X-Spam-Relays-Untrusted =~ /^[^\]]+ rdns= /
196
 
 
197
 
###########################################################################
198
 
 
199
 
meta RDNS_DYNAMIC   (__LAST_UNTRUSTED_RELAY_NO_AUTH && !__RDNS_STATIC && (__RDNS_DYNAMIC_IPADDR || __RDNS_DYNAMIC_DHCP || __RDNS_DYNAMIC_HCC || __RDNS_DYNAMIC_ATTBI || __RDNS_DYNAMIC_ROGERS || __RDNS_DYNAMIC_ADELPHIA || __RDNS_DYNAMIC_DIALIN || __RDNS_DYNAMIC_HEXIP || __RDNS_DYNAMIC_SPLIT_IP || __RDNS_DYNAMIC_YAHOOBB || __RDNS_DYNAMIC_OOL || __RDNS_DYNAMIC_RR2   || __RDNS_DYNAMIC_COMCAST || __RDNS_DYNAMIC_TELIA || __RDNS_DYNAMIC_VTR || __RDNS_DYNAMIC_CHELLO_NO  || __RDNS_DYNAMIC_CHELLO_NL  || __RDNS_DYNAMIC_VELOX  || __RDNS_DYNAMIC_NTL  || __RDNS_DYNAMIC_HOME_NL  || __RDNS_DYNAMIC_TDS || __RDNS_DYNAMIC_VIRTUA || __RDNS_DYNAMIC_SPACELAN || __RDNS_INDICATOR_DYN || __RDNS_INDICATOR_RES || __RDNS_INDICATOR_TYPE2 || __RDNS_DYNAMIC_TTNET))
200
 
 
201
 
describe RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS
202
 
 
203
 
meta RDNS_NONE      (__RDNS_NONE && !__CGATE_RCVD)
204
 
describe RDNS_NONE  Delivered to trusted network by a host with no rDNS
205