1 |
swift 05/08/12 08:34:23 |
2 |
|
3 |
Modified: xml/htdocs/doc/en mailfilter-guide.xml |
4 |
Log: |
5 |
#102150 - Miscellaneous updates |
6 |
|
7 |
Revision Changes Path |
8 |
1.12 +33 -30 xml/htdocs/doc/en/mailfilter-guide.xml |
9 |
|
10 |
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.12&content-type=text/x-cvsweb-markup&cvsroot=gentoo |
11 |
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.12&content-type=text/plain&cvsroot=gentoo |
12 |
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml.diff?r1=1.11&r2=1.12&cvsroot=gentoo |
13 |
|
14 |
Index: mailfilter-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v |
17 |
retrieving revision 1.11 |
18 |
retrieving revision 1.12 |
19 |
diff -u -r1.11 -r1.12 |
20 |
--- mailfilter-guide.xml 12 Aug 2005 08:15:33 -0000 1.11 |
21 |
+++ mailfilter-guide.xml 12 Aug 2005 08:34:23 -0000 1.12 |
22 |
@@ -1,6 +1,6 @@ |
23 |
<?xml version='1.0' encoding='utf-8'?> |
24 |
|
25 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v 1.11 2005/08/12 08:15:33 swift Exp $ --> |
26 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v 1.12 2005/08/12 08:34:23 swift Exp $ --> |
27 |
|
28 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
29 |
<guide link="/doc/en/mailfilter-guide.xml"> |
30 |
@@ -23,7 +23,7 @@ |
31 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
32 |
<license/> |
33 |
|
34 |
-<version>0.7.10</version> |
35 |
+<version>0.8.0</version> |
36 |
<date>2005-08-12</date> |
37 |
|
38 |
<chapter> |
39 |
@@ -98,9 +98,12 @@ |
40 |
setup special IMAP folders for learning of the Bayesian |
41 |
filter and for delivery of false positives |
42 |
</li> |
43 |
+<!-- |
44 |
<li>setup log analyzers to create daily reports</li> |
45 |
- <li>setup greylisting with Postfix 2.1</li> |
46 |
- <li>setup amavisd-new to use a MySQL backend for user preferences</li> |
47 |
+--> |
48 |
+ <li>setup greylisting with Postfix</li> |
49 |
+ <li>setup Amavisd-new to use a MySQL backend for user preferences</li> |
50 |
+ <li>setup Spamassassin to use a MySQL backend for AWL and Bayes data</li> |
51 |
</ul> |
52 |
|
53 |
<note> |
54 |
@@ -260,7 +263,7 @@ |
55 |
-o smtp_data_done_timeout=1200 |
56 |
-o smtp_send_xforward_command=yes |
57 |
<comment>#Equivalently when using lmtp: |
58 |
-#smtp-amavis unix - - n - 2 lmtp |
59 |
+#lmtp-amavis unix - - n - 2 lmtp |
60 |
# -o lmtp_data_done_timeout=1200 |
61 |
# -o lmtp_send_xforward_command=yes</comment> |
62 |
|
63 |
@@ -292,7 +295,7 @@ |
64 |
The <c>smtp-amavis</c> line specifies that a maximum of two of these |
65 |
processes may run at any time. If you need a greater degree of |
66 |
concurrency tune this number to fit your needs. Remember that to match |
67 |
-the number with <c>$max_servers=</c> in <path>amavisd.conf</path> |
68 |
+the number with <c>$max_servers</c> in <path>amavisd.conf</path> |
69 |
</note> |
70 |
|
71 |
<note> |
72 |
@@ -422,6 +425,7 @@ |
73 |
</pre> |
74 |
--> |
75 |
|
76 |
+<!-- |
77 |
<p> |
78 |
Create the new home directory and set the proper permissions. |
79 |
</p> |
80 |
@@ -431,7 +435,8 @@ |
81 |
# <i>chown amavis:amavis /var/amavis</i> |
82 |
# <i>chmod 750 /var/amavis</i> |
83 |
</pre> |
84 |
- |
85 |
+--> |
86 |
+ |
87 |
<p> |
88 |
Edit the following lines in <path>/etc/amavisd.conf</path> |
89 |
</p> |
90 |
@@ -481,6 +486,10 @@ |
91 |
# <i>chmod 750 /var/amavis/virusmails</i> |
92 |
</pre> |
93 |
|
94 |
+<note> |
95 |
+Amavisd-new offers finer policy tuning by using policy banks. |
96 |
+</note> |
97 |
+ |
98 |
</body> |
99 |
</section> |
100 |
<section> |
101 |
@@ -702,7 +711,7 @@ |
102 |
</note> |
103 |
|
104 |
<note> |
105 |
-In a future version of this guide I plan to implement per-user policies using |
106 |
+In a later chapter I will show how to implement per-user policies using |
107 |
MySQL. |
108 |
</note> |
109 |
|
110 |
@@ -744,7 +753,6 @@ |
111 |
</p> |
112 |
|
113 |
<pre caption="Installing rulesdujour"> |
114 |
-# <i>echo "mail-filter/spamassassin-ruledujour ~x86" >> /etc/portage/package.keywords</i> |
115 |
# <i>emerge "mail-filter/spamassassin-ruledujour"</i> |
116 |
</pre> |
117 |
|
118 |
@@ -845,6 +853,8 @@ |
119 |
<note> |
120 |
If you want to see the complete output from amavisd-new start |
121 |
<c>amavisd debug-sa</c> as the <c>amavis</c> user and send a mail. |
122 |
+For this to work you might have to change the default shell in |
123 |
+<path>/etc/passwd</path>. |
124 |
</note> |
125 |
|
126 |
<p> |
127 |
@@ -1447,15 +1457,6 @@ |
128 |
Postgrey is now in Portage, currently still unstable. |
129 |
</note> |
130 |
|
131 |
-<note> |
132 |
-Instead of trusting the IO-Multiplex ebuild you can simply |
133 |
-emerge it using <c>g-cpan.pl</c>, a Perl script that automatically |
134 |
-downloads the latest version of a Perl module, creates an ebuild for it |
135 |
-and installs it on your system: <c>g-cpan.pl IO-Multiplex</c>. This does require |
136 |
-that your CPAN environment is set up correctly. |
137 |
-</note> |
138 |
- |
139 |
- |
140 |
<p> |
141 |
After installing <c>postgrey</c> we have to edit <path>main.cf</path>. |
142 |
Changes are almost exactly like the built in greylisting. |
143 |
@@ -1530,11 +1531,16 @@ |
144 |
</note> |
145 |
|
146 |
<p> |
147 |
-The upcoming Spamassassin 3.0 has support for SPF, however it is only in |
148 |
-the prerelease stage and the new policy daemon in Postfix supports SPF |
149 |
-so let's install SPF support for Postfix. |
150 |
+Spamassassin 3.0 has support for SPF, however it is not enabled by default |
151 |
+and the new policy daemon in Postfix supports SPF so let's install SPF support |
152 |
+for Postfix. |
153 |
</p> |
154 |
|
155 |
+<note> |
156 |
+If you want to use SPF with Spamassassin instead simply |
157 |
+<c>emerge dev-perl/Mail-SPF-Query</c> and restart Amavisd-new. |
158 |
+</note> |
159 |
+ |
160 |
</body> |
161 |
</section> |
162 |
<section> |
163 |
@@ -1548,7 +1554,7 @@ |
164 |
</p> |
165 |
|
166 |
<pre caption="Installing spf.pl"> |
167 |
-# <i>cp postfix-2.1.0/examples/smtpd-policy/spf.pl /usr/bin/</i> |
168 |
+# <i>cp postfix-<version>/examples/smtpd-policy/spf.pl /usr/local/bin/</i> |
169 |
</pre> |
170 |
|
171 |
<note> |
172 |
@@ -1566,16 +1572,9 @@ |
173 |
</p> |
174 |
|
175 |
<pre caption="Installing the needed Perl libraries"> |
176 |
-# <i>echo "dev-perl/Mail-SPF-Query ~x86" >> /etc/portage/package.keywords</i> |
177 |
-# <i>echo "dev-perl/Net-CIDR-Lite ~x86" >> /etc/portage/package.keywords</i> |
178 |
-# <i>echo "dev-perl/Sys-Hostname-Long ~x86" >> /etc/portage/package.keywords</i> |
179 |
# <i>emerge Mail-SPF-Query Net-CIDR-Lite Sys-Hostname-Long</i> |
180 |
</pre> |
181 |
|
182 |
-<note> |
183 |
-The above Perl libraries are now in Portage, currently still unstable. |
184 |
-</note> |
185 |
- |
186 |
<p> |
187 |
Now that we have everything in place all we need is to configure |
188 |
Postfix to use this new policy. |
189 |
@@ -1583,7 +1582,7 @@ |
190 |
|
191 |
<pre caption="Modifying master.cf to use SPF"> |
192 |
policy-spf unix - n n - - spawn |
193 |
- user=nobody argv=/usr/bin/perl /usr/bin/spf.pl |
194 |
+ user=nobody argv=/usr/bin/perl /usr/local/bin/spf.pl |
195 |
</pre> |
196 |
|
197 |
<p> |
198 |
@@ -2025,6 +2024,10 @@ |
199 |
Postfix README</uri> |
200 |
</li> |
201 |
<li><uri |
202 |
+link="http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks">Amavisd-new |
203 |
+Policy bank documentation</uri> |
204 |
+</li> |
205 |
+<li><uri |
206 |
link="http://spamassassin.apache.org/full/3.0.x/dist/sql/README">Spamassassin |
207 |
SQL README</uri></li> |
208 |
<li><uri link="http://www.greylisting.org">Greylisting</uri></li> |
209 |
|
210 |
|
211 |
|
212 |
-- |
213 |
gentoo-doc-cvs@g.o mailing list |