1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<link rel="STYLESHEET" href="mailman-admin.css" type='text/css' />
5
<link rel="first" href="mailman-admin.html" title='GNU mailman - list Administration Manual' />
6
<link rel='contents' href='contents.html' title="Contents" />
7
<link rel='last' href='about.html' title='About this document...' />
8
<link rel='help' href='about.html' title='About this document...' />
9
<link rel="prev" href="node23.html" />
10
<link rel="parent" href="node20.html" />
11
<link rel="next" href="node25.html" />
12
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
13
<meta name='aesop' content='information' />
14
<title>2.7.4 Spam Filters</title>
17
<div class="navigation">
18
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
19
<table align="center" width="100%" cellpadding="0" cellspacing="2">
21
<td class='online-navigation'><a rel="prev" title="2.7.3 recipient Filters"
22
href="node23.html"><img src='previous.png'
23
border='0' height='32' alt='Previous Page' width='32' /></a></td>
24
<td class='online-navigation'><a rel="parent" title="2.7 the Privacy Options"
25
href="node20.html"><img src='up.png'
26
border='0' height='32' alt='Up one Level' width='32' /></a></td>
27
<td class='online-navigation'><a rel="next" title="2.8 the Bounce Processing"
28
href="node25.html"><img src='next.png'
29
border='0' height='32' alt='Next Page' width='32' /></a></td>
30
<td align="center" width="100%">GNU Mailman - List Administration Manual</td>
31
<td class='online-navigation'><a rel="contents" title="Table of Contents"
32
href="contents.html"><img src='contents.png'
33
border='0' height='32' alt='Contents' width='32' /></a></td>
34
<td class='online-navigation'><img src='blank.png'
35
border='0' height='32' alt='' width='32' /></td>
36
<td class='online-navigation'><img src='blank.png'
37
border='0' height='32' alt='' width='32' /></td>
39
<div class='online-navigation'>
40
<b class="navlabel">Previous:</b>
41
<a class="sectref" rel="prev" href="node23.html">2.7.3 Recipient Filters</a>
42
<b class="navlabel">Up:</b>
43
<a class="sectref" rel="parent" href="node20.html">2.7 The Privacy Options</a>
44
<b class="navlabel">Next:</b>
45
<a class="sectref" rel="next" href="node25.html">2.8 The Bounce Processing</a>
49
<!--End of Navigation Panel-->
51
<h3><a name="SECTION002274000000000000000">
52
2.7.4 Spam Filters</a>
56
This section provides some adjuncts to spam fighting tools; it
57
doesn't replace dedicated anti-spam tools such as SpamAssassin or
62
<dt><strong>bounce_matching_headers</strong></dt>
63
<dd>This variable contains header regular expressions, one per line,
64
and if any of a message's headers matches one of these patterns,
65
it will be held for moderation. The format is a colon separated
66
header and value, where the header is case insensitive and the
67
value is any valid Python regular expression. Lines that start
71
This variable can be used to catch known spammers by writing
72
regexps that match against <span class="mailheader">To:</span> or <span class="mailheader">Cc:</span>
73
lines, or known-bad <span class="mailheader">Message-ID:</span>s. Perhaps more useful
74
though are patterns that match headers added by spam detection
75
tools higher up in the tool chain. For example, you might
76
configure SpamAssassin to add an <span class="mailheader">X-Spam-Score:</span> header
77
with between zero and 5 stars depending on the spam score. Then
78
you can add a line to this variable like:
81
<div class="verbatim"><pre>
82
X-Spam-Score: [*]{3,5}
86
This line will match from 3 to 5 stars in the value of this
93
<div class="navigation">
94
<div class='online-navigation'>
96
<table align="center" width="100%" cellpadding="0" cellspacing="2">
98
<td class='online-navigation'><a rel="prev" title="2.7.3 recipient Filters"
99
href="node23.html"><img src='previous.png'
100
border='0' height='32' alt='Previous Page' width='32' /></a></td>
101
<td class='online-navigation'><a rel="parent" title="2.7 the Privacy Options"
102
href="node20.html"><img src='up.png'
103
border='0' height='32' alt='Up one Level' width='32' /></a></td>
104
<td class='online-navigation'><a rel="next" title="2.8 the Bounce Processing"
105
href="node25.html"><img src='next.png'
106
border='0' height='32' alt='Next Page' width='32' /></a></td>
107
<td align="center" width="100%">GNU Mailman - List Administration Manual</td>
108
<td class='online-navigation'><a rel="contents" title="Table of Contents"
109
href="contents.html"><img src='contents.png'
110
border='0' height='32' alt='Contents' width='32' /></a></td>
111
<td class='online-navigation'><img src='blank.png'
112
border='0' height='32' alt='' width='32' /></td>
113
<td class='online-navigation'><img src='blank.png'
114
border='0' height='32' alt='' width='32' /></td>
116
<div class='online-navigation'>
117
<b class="navlabel">Previous:</b>
118
<a class="sectref" rel="prev" href="node23.html">2.7.3 Recipient Filters</a>
119
<b class="navlabel">Up:</b>
120
<a class="sectref" rel="parent" href="node20.html">2.7 The Privacy Options</a>
121
<b class="navlabel">Next:</b>
122
<a class="sectref" rel="next" href="node25.html">2.8 The Bounce Processing</a>
126
<span class="release-info">Release 2.1, documentation updated on January 11, 2009.</span>
128
<!--End of Navigation Panel-->