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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Spam Control Configurations: Junk mail controls</TITLE>
<LINK HREF="postfix_spamctrl-3.html" REL=next>
<LINK HREF="postfix_spamctrl-1.html" REL=previous>
<LINK HREF="postfix_spamctrl.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="postfix_spamctrl-3.html">Next</A>
<A HREF="postfix_spamctrl-1.html">Previous</A>
<A HREF="postfix_spamctrl.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2. Junk mail controls</A></H2>
<P>
<P>
<DL>
<DT><B>Header checks</B><DD><P>The "Header checks" option restricts what may appear in message
headers. This requires that POSIX or PCRE regular expression support
is built-in. Specify "/^header-name: stuff you do not want/ REJECT"
in the pattern file. Patterns are case-insensitive by default. Note:
specify only patterns ending in REJECT. Patterns ending in OK are
mostly a waste of cycles. This option sets the "header_checks"
postfix variable.
<P>
<DT><B>Body checks</B><DD><P>The "Body checks" option specifies an optional table with patterns
that each physical non-header line is matched against (including
MIME headers inside the message body). Lines are matched one at
a time. Long lines are matched in chunks of at most $line_length_limit
characters. Patterns are matched in the specified order, and the
search stops upon the first match. When a pattern matches, and
the associated action is REJECT, the entire message is rejected.
This option sets the "body_checks" postfix variable.
<P>
<DT><B>Networks</B><DD><P>The "Networks" option specifies the list of networks that are
local to this machine. The list is used by the anti-UCE software
to distinguish local clients from strangers. See permit_mynetworks
and smtpd_recipient_restrictions in the file sample-smtpd.cf file.
<P>The default is a list of all networks attached to the machine: a
complete class A network (X.0.0.0/8), a complete class B network
(X.X.0.0/16), and so on. If you want stricter control, specify a
list of network/mask patterns, where the mask specifies the number
of bits in the network part of a host address. You can also specify
the absolute pathname of a pattern file instead of listing the
patterns here. This option sets the "mynetworks" postfix variable.
</DL>
<P>
<HR>
<A HREF="postfix_spamctrl-3.html">Next</A>
<A HREF="postfix_spamctrl-1.html">Previous</A>
<A HREF="postfix_spamctrl.html#toc2">Contents</A>
</BODY>
</HTML>
|