Gentoo Archives: gentoo-doc-cvs

From: Sven Vermeulen <swift@××××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: qmail-howto.xml
Date: Fri, 23 May 2008 19:39:41
Message-Id: E1Jzd71-0000l4-Nf@stork.gentoo.org
1 swift 08/05/23 19:39:35
2
3 Modified: qmail-howto.xml
4 Log:
5 Coding style
6
7 Revision Changes Path
8 1.40 xml/htdocs/doc/en/qmail-howto.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/qmail-howto.xml?rev=1.40&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/qmail-howto.xml?rev=1.40&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/qmail-howto.xml?r1=1.39&r2=1.40
13
14 Index: qmail-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/qmail-howto.xml,v
17 retrieving revision 1.39
18 retrieving revision 1.40
19 diff -u -r1.39 -r1.40
20 --- qmail-howto.xml 11 Oct 2007 20:17:47 -0000 1.39
21 +++ qmail-howto.xml 23 May 2008 19:39:35 -0000 1.40
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding='UTF-8'?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/qmail-howto.xml,v 1.39 2007/10/11 20:17:47 nightmorph Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/qmail-howto.xml,v 1.40 2008/05/23 19:39:35 swift Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/qmail-howto.xml">
29 @@ -33,23 +33,23 @@
30 </p>
31
32 <p>
33 -Specifically, the packages this guide will help you with are netqmail,
34 -courier-imap, vpopmail, and horde/imp. These core packages will also bring in
35 -daemontools, ucspi-tcp, mysql, apache, and mod_php. netqmail provides the core
36 -mta functions, courier-imap provides remote retrieval services, vpopmail
37 +Specifically, the packages this guide will help you with are netqmail,
38 +courier-imap, vpopmail, and horde/imp. These core packages will also bring in
39 +daemontools, ucspi-tcp, mysql, apache, and mod_php. netqmail provides the core
40 +mta functions, courier-imap provides remote retrieval services, vpopmail
41 provides virtual domain management, and horde/imp provides webmail access.
42 </p>
43
44 <p>
45 -Before emerging anything, you will need the following USE variables enabled.
46 +Before emerging anything, you will need the following USE variables enabled.
47 If you've already emerged any of these packages, you may have to re-emerge them.
48 -<c>USE="maildir ssl imap mysql"</c>. Additionally, if you want to use
49 -horde/imp for your webmail then you will need <c>USE="nls"</c> before emerging
50 +<c>USE="maildir ssl imap mysql"</c>. Additionally, if you want to use
51 +horde/imp for your webmail then you will need <c>USE="nls"</c> before emerging
52 mod_php.
53 </p>
54
55 <note>
56 -This guide is written in steps. If at anytime you feel your setup is
57 +This guide is written in steps. If at anytime you feel your setup is
58 'complete', you do not need to continue.
59 </note>
60
61 @@ -77,14 +77,14 @@
62 </pre>
63
64 <impo>
65 -This guide is designed around netqmail-1.05-r4 or later. Will it work with
66 -earlier versions? Maybe. Should you upgrade? Yes, if you want to be sure this
67 +This guide is designed around netqmail-1.05-r4 or later. Will it work with
68 +earlier versions? Maybe. Should you upgrade? Yes, if you want to be sure this
69 guide will work.
70 </impo>
71
72 <warn>
73 -If you get a message like <c>the virtual/mta package conflicts with another
74 -package</c> then you need to make sure to unmerge the other MTA on your system.
75 +If you get a message like <c>the virtual/mta package conflicts with another
76 +package</c> then you need to make sure to unmerge the other MTA on your system.
77 To figure out what package that is, just run <c>emerge netqmail -p</c>.
78 </warn>
79
80 @@ -149,12 +149,12 @@
81 # <i>qmail-inject vapier &lt;&lt; EOF
82 test vapier e-mail!
83 EOF</i>
84 -# <i>mutt</i>
85 +# <i>mutt</i>
86 <comment>(You should now have 3 e-mails in your inbox)</comment>
87 </pre>
88
89 <p>
90 -And that's all! Now you have a mail system that will handle mail for your
91 +And that's all! Now you have a mail system that will handle mail for your
92 local machine and the system daemons/users who utilize it.
93 </p>
94
95 @@ -213,27 +213,27 @@
96 </pre>
97
98 <impo>
99 -This guide is designed around vpopmail-5.4.6 or later. Will it work with
100 -earlier versions? Maybe. Should you upgrade? Yes, if you want to be sure
101 +This guide is designed around vpopmail-5.4.6 or later. Will it work with
102 +earlier versions? Maybe. Should you upgrade? Yes, if you want to be sure
103 this guide will work.
104 </impo>
105
106 <p>
107 -vpopmail takes a little bit more effort to setup than the previous packages.
108 -Since vpopmail runs off of mysql, we'll have to make sure that it's up and
109 -running first. Then we can setup the vpopmail database and move on.
110 -Before you do this step, you should make sure you've already emerged
111 -and setup mysql properly. Note that the password I will use for the
112 +vpopmail takes a little bit more effort to setup than the previous packages.
113 +Since vpopmail runs off of mysql, we'll have to make sure that it's up and
114 +running first. Then we can setup the vpopmail database and move on.
115 +Before you do this step, you should make sure you've already emerged
116 +and setup mysql properly. Note that the password I will use for the
117 vpopmail database is 'vpoppw', you however should pick a different one.
118 </p>
119
120 <pre caption="Setting up vpopmail in mysql">
121 # <i>rc-update add mysql default</i>
122 -<comment>If you just emerged mysql for the first time, make sure you run
123 -the <i>ebuild &lt;mysql.ebuild&gt; config</i> command and follow the
124 +<comment>If you just emerged mysql for the first time, make sure you run
125 +the <i>ebuild &lt;mysql.ebuild&gt; config</i> command and follow the
126 directions before starting the mysql server.</comment>
127 # <i>/etc/init.d/mysql start</i>
128 -# <i>nano /etc/vpopmail.conf</i>
129 +# <i>nano /etc/vpopmail.conf</i>
130 <comment>(Change the password from 'secret' to 'vpoppw')</comment>
131 # <i>mysql -p &lt;&lt; EOF
132 create database vpopmail;
133 @@ -249,14 +249,14 @@
134 </pre>
135
136 <warn>
137 -If you experience permission problems with mysql/vpopmail, you may want to
138 +If you experience permission problems with mysql/vpopmail, you may want to
139 try restarting mysql. Just run <c>/etc/init.d/mysql restart</c>.
140 </warn>
141
142 <p>
143 -At this point in time, vpopmail is ready to roll. In this guide, we will be
144 -providing virtual hosting for the domain 'wh0rd.org'. This means we need to
145 -tell vpopmail about this domain we want it to host for us. We'll also quickly
146 +At this point in time, vpopmail is ready to roll. In this guide, we will be
147 +providing virtual hosting for the domain 'wh0rd.org'. This means we need to
148 +tell vpopmail about this domain we want it to host for us. We'll also quickly
149 add an user account for 'vapier' while we're here.
150 </p>
151
152 @@ -277,9 +277,9 @@
153 </pre>
154
155 <p>
156 -Every domain that vpopmail creates comes with a 'postmaster' account. Here we
157 -told vpopmail that the password for the postmaster account is 'postpass'.
158 -Before vpopmail can be truly useful, we'll need to be able to receive mail
159 +Every domain that vpopmail creates comes with a 'postmaster' account. Here we
160 +told vpopmail that the password for the postmaster account is 'postpass'.
161 +Before vpopmail can be truly useful, we'll need to be able to receive mail
162 via courier and send mail via netqmail and SMTP.
163 </p>
164
165 @@ -297,20 +297,20 @@
166 </pre>
167
168 <impo>
169 -You must emerge courier-imap after vpopmail. That way the authvchkpw module
170 +You must emerge courier-imap after vpopmail. That way the authvchkpw module
171 will be built.
172 </impo>
173
174 <impo>
175 -This guide is designed around net-mail/courier-imap-3.0.7 or later. Will
176 -it work with earlier versions? Maybe. Should you upgrade? Yes, if you want
177 +This guide is designed around net-mail/courier-imap-3.0.7 or later. Will
178 +it work with earlier versions? Maybe. Should you upgrade? Yes, if you want
179 to be sure this guide will work.
180 </impo>
181
182 <p>
183 -Now for the common post-install configuration steps. These steps are only
184 -needed if you wish to run SSL encrypted communications (which you should !).
185 -Otherwise you can skip to the last two steps in the two following code
186 +Now for the common post-install configuration steps. These steps are only
187 +needed if you wish to run SSL encrypted communications (which you should !).
188 +Otherwise you can skip to the last two steps in the two following code
189 listings, removing the '-ssl' from the init script name each time.
190 </p>
191
192 @@ -318,7 +318,7 @@
193 # <i>nano /etc/courier/authlib/authdaemonrc</i>
194 <comment>(Set the authmodulelist variable to only contain "authvchkpw")</comment>
195 # <i>cd /etc/courier-imap</i>
196 -# <i>nano pop3d.cnf</i>
197 +# <i>nano pop3d.cnf</i>
198 <comment>(Edit the [ req_dn ] section)</comment>
199 # <i>mkpop3dcert</i>
200 # <i>rc-update add courier-pop3d-ssl default</i>
201 @@ -327,7 +327,7 @@
202
203 <pre caption="Out-of-the-box setup for IMAP/SSL">
204 # <i>cd /etc/courier-imap</i>
205 -# <i>nano imapd.cnf</i>
206 +# <i>nano imapd.cnf</i>
207 <comment>(Edit the [ req_dn ] section)</comment>
208 # <i>mkimapdcert</i>
209 # <i>rc-update add courier-imapd-ssl default</i>
210 @@ -335,8 +335,8 @@
211 </pre>
212
213 <p>
214 -Your mail client should now be able to login to the host running courier and
215 -retrieve mail for the virtual host. In my case, I am now able to login with
216 +Your mail client should now be able to login to the host running courier and
217 +retrieve mail for the virtual host. In my case, I am now able to login with
218 the username 'vapier@×××××.org' and password 'vappw'.
219 </p>
220
221 @@ -350,7 +350,7 @@
222 <body>
223
224 <p>
225 -Let's get SMTP up and running while making sure we don't create another spam
226 +Let's get SMTP up and running while making sure we don't create another spam
227 hole for people to abuse.
228 </p>
229
230 @@ -358,7 +358,7 @@
231 # <i>cd /var/qmail/control/</i>
232 # <i>nano conf-smtpd</i>
233 <comment>(Uncomment the SMTP-AUTH variables and set QMAIL_SMTP_CHECKPASSWORD to /var/vpopmail/bin/vchkpw)</comment>
234 -# <i>nano servercert.cnf</i>
235 +# <i>nano servercert.cnf</i>
236 <comment>(Edit the [ req_dn ] section)</comment>
237 # <i>mkservercert</i>
238 # <i>cd /service</i>
239 @@ -388,12 +388,12 @@
240 <body>
241
242 <p>
243 -Although there are plenty of webmail clients out there (and you're free to use
244 -any of them), I prefer the <uri link="http://www.horde.org/imp/">IMP Webmail
245 -Client</uri> that is part of the Horde framework. The biggest reason is that
246 +Although there are plenty of webmail clients out there (and you're free to use
247 +any of them), I prefer the <uri link="http://www.horde.org/imp/">IMP Webmail
248 +Client</uri> that is part of the Horde framework. The biggest reason is that
249 Horde can simply provide Webmail access, or you can easily add other components
250 -to handle Address Books, Calendars, Tasks, etc... If this hasn't convinced
251 -you yet, then perhaps you need to read up on <uri
252 +to handle Address Books, Calendars, Tasks, etc... If this hasn't convinced
253 +you yet, then perhaps you need to read up on <uri
254 link="http://www.horde.org/">Horde</uri> for yourself.
255 </p>
256
257 @@ -406,13 +406,13 @@
258 </pre>
259
260 <impo>
261 -This guide is based around horde-2.2.x and horde-imp-3.2.x. The CVS versions
262 -(and thus the next major release) will probably have very different
263 +This guide is based around horde-2.2.x and horde-imp-3.2.x. The CVS versions
264 +(and thus the next major release) will probably have very different
265 configuration settings. Also note that php-5.x will probably break horde-2.x.
266 </impo>
267
268 <p>
269 -Horde currently isn't the easiest to setup unless you know exactly what to do.
270 +Horde currently isn't the easiest to setup unless you know exactly what to do.
271 Fortunately for you, I know exactly what to do, thus you will too.
272 </p>
273
274 @@ -444,8 +444,8 @@
275 </pre>
276
277 <note>
278 -You'll may want to change the 'webmaster' e-mail account to something else. If
279 -you wish to use that e-mail address, then remember you'll have to add that
280 +You'll may want to change the 'webmaster' e-mail account to something else. If
281 +you wish to use that e-mail address, then remember you'll have to add that
282 user via vpopmail (or see below about qmailadmin).
283 </note>
284
285 @@ -460,16 +460,16 @@
286
287 <comment>(Edit the $servers['imap'] array:)</comment>
288 $servers['imap'] = array(
289 - 'name' => 'wh0rd.org',
290 - 'server' => 'localhost',
291 - 'protocol' => 'imap/ssl/novalidate-cert',
292 - 'port' => 993,
293 - 'folders' => '',
294 - 'namespace' => 'INBOX.',
295 - 'maildomain' => 'wh0rd.org',
296 - 'smtphost' => 'localhost',
297 - 'realm' => '',
298 - 'preferred' => ''
299 + 'name' => 'wh0rd.org',
300 + 'server' => 'localhost',
301 + 'protocol' => 'imap/ssl/novalidate-cert',
302 + 'port' => 993,
303 + 'folders' => '',
304 + 'namespace' => 'INBOX.',
305 + 'maildomain' => 'wh0rd.org',
306 + 'smtphost' => 'localhost',
307 + 'realm' => '',
308 + 'preferred' => ''
309 );
310 </pre>
311
312 @@ -478,27 +478,27 @@
313 </p>
314
315 <pre caption="Running apache">
316 -# <i>nano /etc/conf.d/apache2</i>
317 +# <i>nano /etc/conf.d/apache2</i>
318 <comment>(Uncomment APACHE2_OPTS="-D SSL -D PHP5")</comment>
319 # <i>rc-update add apache2 default</i>
320 # <i>/etc/init.d/apache2 start</i>
321 </pre>
322
323 <warn>
324 -You should really look into forcing https on users of horde. This isn't a
325 +You should really look into forcing https on users of horde. This isn't a
326 trivial issue, but you should look into it for the sake of security.
327 </warn>
328
329 <p>
330 -To test out the new IMP setup, launch a web browser and visit
331 -<uri>http://localhost/horde/</uri> (or change localhost with the server you're
332 +To test out the new IMP setup, launch a web browser and visit
333 +<uri>http://localhost/horde/</uri> (or change localhost with the server you're
334 setting this up on). You should see the Horde welcome page where you can login.
335 -Again, in my setup, I simply login with 'vapier@×××××.org' and 'vappw' as my
336 +Again, in my setup, I simply login with 'vapier@×××××.org' and 'vappw' as my
337 username and password.
338 </p>
339
340 <p>
341 -At this point, Horde and IMP are all setup. You should, however, go back
342 +At this point, Horde and IMP are all setup. You should, however, go back
343 through the config directories and tweak each to your heart's content.
344 </p>
345
346 @@ -513,11 +513,11 @@
347 <body>
348
349 <p>
350 -The first package I would suggest you look into is <uri
351 -link="http://www.inter7.com/qmailadmin.html">qmailadmin</uri>. It's a web based
352 -interface for managing virtual domains. Simply <c>emerge
353 -net-mail/qmailadmin</c> and then point your webbrowser to
354 -<uri>http://localhost/cgi-bin/qmailadmin</uri> in order to use it. Makes life
355 +The first package I would suggest you look into is <uri
356 +link="http://www.inter7.com/qmailadmin.html">qmailadmin</uri>. It's a web based
357 +interface for managing virtual domains. Simply <c>emerge
358 +net-mail/qmailadmin</c> and then point your webbrowser to
359 +<uri>http://localhost/cgi-bin/qmailadmin</uri> in order to use it. Makes life
360 a lot easier.
361 </p>
362
363 @@ -542,13 +542,13 @@
364 <body>
365
366 <p>
367 -I would highly recommend looking into the many other Horde applications. The
368 -<uri link="http://www.horde.org/turba/">Turba</uri>, <uri
369 -link="http://www.horde.org/kronolith/">Kronolith</uri>, and <uri
370 -link="http://www.horde.org/nag/">Nag</uri> applications complement IMP very
371 -well for instance. Their configuration is similar to that of IMP, so you
372 -should have no trouble setting them up. Just remember to edit registry.php in
373 -the horde config directory so the new applications show up at the bottom of
374 +I would highly recommend looking into the many other Horde applications. The
375 +<uri link="http://www.horde.org/turba/">Turba</uri>, <uri
376 +link="http://www.horde.org/kronolith/">Kronolith</uri>, and <uri
377 +link="http://www.horde.org/nag/">Nag</uri> applications complement IMP very
378 +well for instance. Their configuration is similar to that of IMP, so you
379 +should have no trouble setting them up. Just remember to edit registry.php in
380 +the horde config directory so the new applications show up at the bottom of
381 the horde website.
382 </p>
383
384 @@ -578,18 +578,18 @@
385 <body>
386
387 <p>
388 -If you wish to do content filtering on your mail server (spam and virus), then
389 -you'll need to use a different queuing program than the default one. One good
390 -program for doing so is <uri
391 -link="http://qmail-scanner.sourceforge.net/">qmail-scanner</uri>.
392 -Just <c>emerge qmail-scanner</c> and edit the
393 +If you wish to do content filtering on your mail server (spam and virus), then
394 +you'll need to use a different queuing program than the default one. One good
395 +program for doing so is <uri
396 +link="http://qmail-scanner.sourceforge.net/">qmail-scanner</uri>.
397 +Just <c>emerge qmail-scanner</c> and edit the
398 <path>/etc/tcprules.d/tcp.qmail-smtp</path> file.
399 </p>
400
401 <impo>
402 -The build process of qmail-scanner is quite ugly. In order to support
403 -packages, they must already be on your system. This means you will have
404 -to emerge SpamAssassin and/or Clam AntiVirus before you emerge
405 +The build process of qmail-scanner is quite ugly. In order to support
406 +packages, they must already be on your system. This means you will have
407 +to emerge SpamAssassin and/or Clam AntiVirus before you emerge
408 qmail-scanner. See the relevant following sections for more information.
409 </impo>
410
411 @@ -601,8 +601,8 @@
412 </pre>
413
414 <p>
415 -See the following sections for setting up spam and virus filtering. You may
416 -want to set a few custom options by editing
417 +See the following sections for setting up spam and virus filtering. You may
418 +want to set a few custom options by editing
419 <path>/var/qmail/bin/qmail-scanner-queue.pl</path>.
420 </p>
421
422 @@ -613,12 +613,12 @@
423 <body>
424
425 <p>
426 -One of the best Open Source spam filters out there is <uri
427 -link="http://www.spamassassin.org/">SpamAssassin</uri>. Just <c>emerge
428 -mail-filter/spamassassin</c> to install. The package comes in two flavors, a
429 -command line version and a client/server version. For servers that will be
430 -handling a small amount of mail, running with the command line version is OK,
431 -but for anyone whose server will be handling appreciative loads should utilize
432 +One of the best Open Source spam filters out there is <uri
433 +link="http://www.spamassassin.org/">SpamAssassin</uri>. Just <c>emerge
434 +mail-filter/spamassassin</c> to install. The package comes in two flavors, a
435 +command line version and a client/server version. For servers that will be
436 +handling a small amount of mail, running with the command line version is OK,
437 +but for anyone whose server will be handling appreciative loads should utilize
438 the client/server version.
439 </p>
440
441 @@ -636,15 +636,15 @@
442 </pre>
443
444 <impo>
445 -If you did not have SpamAssassin on your system before you emerged
446 -qmail-scanner, you will have to re-emerge qmail-scanner now. Its build
447 -process is pretty ugly and will only add in features for packages it detects
448 +If you did not have SpamAssassin on your system before you emerged
449 +qmail-scanner, you will have to re-emerge qmail-scanner now. Its build
450 +process is pretty ugly and will only add in features for packages it detects
451 on the system at build time.
452 </impo>
453
454 <p>
455 -At this point, incoming mail should be sent through qmail-scanner which will
456 -run it through SpamAssassin for you.
457 +At this point, incoming mail should be sent through qmail-scanner which will
458 +run it through SpamAssassin for you.
459 </p>
460
461 </body>
462 @@ -654,13 +654,13 @@
463 <body>
464
465 <p>
466 -Like SpamAssassin, <uri link="http://www.clamav.net/">Clam AntiVirus</uri>
467 -comes in two flavors. I'll give you a quick run down on how to quickly setup
468 -the client/server version. First, just <c>emerge app-antivirus/clamav</c>.
469 +Like SpamAssassin, <uri link="http://www.clamav.net/">Clam AntiVirus</uri>
470 +comes in two flavors. I'll give you a quick run down on how to quickly setup
471 +the client/server version. First, just <c>emerge app-antivirus/clamav</c>.
472 </p>
473
474 <pre caption="Out-of-the-box setup for Clam AntiVirus">
475 -# <i>nano /etc/conf.d/clamd</i>
476 +# <i>nano /etc/conf.d/clamd</i>
477 <comment>(Set START_CLAMD=yes)</comment>
478 # <i>nano /etc/clamav.conf</i>
479 <comment>(Setup stuff the way you want it)</comment>
480 @@ -674,14 +674,14 @@
481 </pre>
482
483 <impo>
484 -If you did not have Clam AntiVirus on your system before you emerged
485 -qmail-scanner, you will have to re-emerge qmail-scanner now. Its build
486 -process is pretty ugly and will only add in features for packages it detects
487 +If you did not have Clam AntiVirus on your system before you emerged
488 +qmail-scanner, you will have to re-emerge qmail-scanner now. Its build
489 +process is pretty ugly and will only add in features for packages it detects
490 on the system at build time.
491 </impo>
492
493 <p>
494 -At this point, incoming mail should be sent through qmail-scanner which will
495 +At this point, incoming mail should be sent through qmail-scanner which will
496 run it through Clam AntiVirus for you.
497 </p>
498
499 @@ -695,11 +695,11 @@
500 <body>
501
502 <p>
503 -I have no final notes other than if you experience any troubles with the guide,
504 -please contact <mail link="vapier@g.o">me</mail> or file a bug with
505 -<uri link="http://bugs.gentoo.org/">Gentoo's Bugtracking Website</uri>. If
506 -you have some interesting bits you think would enhance this guide, by all means
507 -send it my way for inclusion. I love netqmail and would gladly add stuff that
508 +I have no final notes other than if you experience any troubles with the guide,
509 +please contact <mail link="vapier@g.o">me</mail> or file a bug with
510 +<uri link="http://bugs.gentoo.org/">Gentoo's Bugtracking Website</uri>. If
511 +you have some interesting bits you think would enhance this guide, by all means
512 +send it my way for inclusion. I love netqmail and would gladly add stuff that
513 could possibly enhance a user's experience with the mta.
514 </p>
515
516
517
518
519 --
520 gentoo-doc-cvs@l.g.o mailing list