summaryrefslogtreecommitdiff
path: root/debian/sendmail-8.9.3-imrss-patches
blob: 14138daa67f8cafbec0c48b3a83e37611e49b131 (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
diff -rc2 --new-file ./cf/README ./cf/README
*** ./cf/README	Wed Feb  3 14:06:38 1999
--- ./cf/README	Mon Apr  5 19:24:45 1999
***************
*** 852,860 ****
  		described below.
  
! rbl		Turns on rejection of hosts found in the Realtime Blackhole
! 		List.  If an argument is provided it is used as the
!                 name sever to contact; otherwise, the main RBL server at
! 		rbl.maps.vix.com is used.  For details, see
! 		http://maps.vix.com/rbl/.
  
  loose_relay_check
--- 852,873 ----
  		described below.
  
! rbl		Turns on rejection of incoming E-mail from SMTP clients
! 		whose IP addresses are currently included in the MAPS
! 		Realtime Blackhole List (RBL), a list of known (fixed)
! 		spam sources.  For additional information regarding the
! 		MAPS RBL list, see http://maps.vix.com/rbl/.
! 
! imrss		Turns on rejection of incoming E-mail from SMTP clients
! 		whose IP addresses are currently included in the Internet
! 		Mail Relay Services Survey (IMRSS) list of unrestricted
! 		"open" E-mail relay servers.  For additional information
! 		regarding the IMRSS list, see http://www.imrss.org/.
! 
! dssl		Turns on rejection of incoming E-mail from SMTP clients
! 		whose IP addresses are currently included in the DynamicIP
! 		Spam Sources List (DSSL), a list of IP addresses of dynamic
! 		dialup ports for many commercial ISPs and some Universities.
! 		For additional information regarding the DSSL, see
! 		http://www.imrss.org/dssl/.
  
  loose_relay_check
***************
*** 1385,1397 ****
  Mail can't be sent to spammer@aol.com or anyone at cyberspammer.com.
  
! There is also a ``Realtime Blackhole List'' run by the MAPS project
! at http://maps.vix.com/.  This is a database maintained in DNS of
! spammers.  To use this database, use
  
  	FEATURE(`rbl')
  
! This will cause sendmail to reject mail from any site in the
! Realtime Blackhole List database.  You can specify an alternative
! RBL name server to contact by specifying an argument to the FEATURE.
  
  The features described above make use of the check_relay, check_mail,
--- 1398,1437 ----
  Mail can't be sent to spammer@aol.com or anyone at cyberspammer.com.
  
! In addition to the above do-it-yourself spam contol mechanisms, you can also
! enable support in Sendmail for arbitrary combinations of some popular data
! bases of IP addrsses that may try to send spam to your local site via SMTP.
! The list described below are all accessed via a special (kludge?) form of
! DNS lookups.
! 
! The first such list is the ``Realtime Blackhole List'' run by the MAPS
! project.  Information about this list is available at http://maps.vix.com/rbl/.
! This is a database of the IP addresses of known (fixed) spam sources.  To use
! the MAPS RBL list for blocking incoming E-mail, include the line:
  
  	FEATURE(`rbl')
  
! into your .mc file.  This will cause Sendmail to reject mail from any IP
! address currently listed in the MAPS RBL database.
! 
! Another list that can be used for junk E-mail filtering is the Internet
! Mail Relay Services Survey's (IMRSS) list of unsecured/unrestricted "open"
! E-mail relays.  To use the IMRSS list of open relays for blocking incoming
! E-mail, include the line:
! 
! 	FEATURE(`imrss')
! 
! into your .mc file.  This will cause Sendmail to reject mail from any IP
! address currently listed in the IMRSS open relays database.
! 
! Yet another list that can be used for junk E-mail filtering is the DynamicIP
! Spam Sources List (DSSL).  This is a list of the IP address of various
! "dynamic" dialup lines, mostly belonging to commercial Internet Service
! Providers and/or Universities.  To use the DSSL list of dynamic dialups
! for blocking incoming E-mail, include the line:
! 
!         FEATURE(`dssl')
! 
! into your .mc file.  This will cause Sendmail to reject mail from any IP
! address currently listed in the DSSL database.
  
  The features described above make use of the check_relay, check_mail,
diff -rc2 --new-file ./cf/feature/dssl.m4 ./cf/feature/dssl.m4
*** ./cf/feature/dssl.m4	Wed Dec 31 16:00:00 1969
--- ./cf/feature/dssl.m4	Mon Apr  5 19:05:35 1999
***************
*** 0 ****
--- 1,15 ----
+ divert(-1)
+ #
+ # Copyright (c) 1998 Sendmail, Inc.  All rights reserved.
+ #
+ # By using this file, you agree to the terms and conditions set
+ # forth in the LICENSE file which can be found at the top level of
+ # the sendmail distribution.
+ #
+ #
+ 
+ divert(0)
+ VERSIONID(`@(#)imrss.m4	8.8 (Berkeley) 4/5/1999')
+ divert(-1)
+ 
+ define(`_DSSL_',`dssl.imrss.org')dnl
diff -rc2 --new-file ./cf/feature/imrss.m4 ./cf/feature/imrss.m4
*** ./cf/feature/imrss.m4	Wed Dec 31 16:00:00 1969
--- ./cf/feature/imrss.m4	Mon Apr  5 19:05:20 1999
***************
*** 0 ****
--- 1,15 ----
+ divert(-1)
+ #
+ # Copyright (c) 1998 Sendmail, Inc.  All rights reserved.
+ #
+ # By using this file, you agree to the terms and conditions set
+ # forth in the LICENSE file which can be found at the top level of
+ # the sendmail distribution.
+ #
+ #
+ 
+ divert(0)
+ VERSIONID(`@(#)imrss.m4	8.8 (Berkeley) 4/5/1999')
+ divert(-1)
+ 
+ define(`_IMRSS_',`mr-out.imrss.org')dnl
diff -rc2 --new-file ./cf/feature/rbl.m4 ./cf/feature/rbl.m4
*** ./cf/feature/rbl.m4	Tue Dec 29 09:42:13 1998
--- ./cf/feature/rbl.m4	Mon Apr  5 19:05:06 1999
***************
*** 13,15 ****
  divert(-1)
  
! define(`_RBL_', ifelse(_ARG_, `', `rbl.maps.vix.com', `_ARG_'))dnl
--- 13,15 ----
  divert(-1)
  
! define(`_RBL_',`rbl.maps.vix.com')dnl
diff -rc2 --new-file ./cf/m4/proto.m4 ./cf/m4/proto.m4
*** ./cf/m4/proto.m4	Tue Feb  2 15:21:30 1999
--- ./cf/m4/proto.m4	Tue Apr  6 00:18:06 1999
***************
*** 1109,1119 ****
  R<$+> $*		$#error $@ 5.7.1 $: $1', `dnl')
  
  ifdef(`_RBL_', `dnl
! # DNS based IP address spam lists
  R$*			$: $&{client_addr}
  R$-.$-.$-.$-		$: $(host $4.$3.$2.$1._RBL_. $: OK $)
! ROK			$@ OK
! R$+			$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused by blackhole site _RBL_"',
  `dnl')
  
  ######################################################################
--- 1109,1137 ----
  R<$+> $*		$#error $@ 5.7.1 $: $1', `dnl')
  
+ # For the sake of efficiency, spam blocking list checks are ordered by the
+ # amount of incoming traffic they are likely to affect, mostest firstest.
+ 
+ ifdef(`_IMRSS_', `dnl
+ # DNS based IMRSS IP address list
+ R$*			$: $&{client_addr}
+ R$-.$-.$-.$-		$: $(host $4.$3.$2.$1._IMRSS_. $: OK $)
+ R$+.			$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused.  See http://www.imrss.org/error.html"',
+ `dnl')
+ 
+ ifdef(`_DSSL_', `dnl
+ # DNS based DSSL IP address list
+ R$*			$: $&{client_addr}
+ R$-.$-.$-.$-		$: $(host $4.$3.$2.$1._DSSL_. $: OK $)
+ R$+.			$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused.  See http://www.imrss.org/dssl/unblock.html"',
+ `dnl')
+ 
  ifdef(`_RBL_', `dnl
! # DNS based MAPS RBL IP address list
  R$*			$: $&{client_addr}
  R$-.$-.$-.$-		$: $(host $4.$3.$2.$1._RBL_. $: OK $)
! R$+.			$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused.  See http://maps.vix.com/rbl/enduser.html"',
  `dnl')
+ 
+ R$*			$@ OK
  
  ######################################################################