| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.51 2006/06/18 22:09:40 nightmorph Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.52 2006/07/04 00:21:20 rane Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide link="/doc/en/virt-mail-howto.xml"> |
5 | <guide link="/doc/en/virt-mail-howto.xml"> |
| 6 | <title>Virtual Mailhosting System with Postfix Guide</title> |
6 | <title>Virtual Mailhosting System with Postfix Guide</title> |
| 7 | |
7 | |
| 8 | <author title="Author"> |
8 | <author title="Author"> |
| 9 | <mail link="antifa@gentoo.org">Ken Nowack</mail> |
9 | <mail link="antifa@gentoo.org">Ken Nowack</mail> |
| 10 | </author> |
10 | </author> |
| 11 | <author title="Author"> |
11 | <author title="Author"> |
| 12 | <mail link="ezra@revoltltd.org">Ezra Gorman</mail> |
12 | <mail link="ezra@revoltltd.org">Ezra Gorman</mail> |
| 13 | </author> |
13 | </author> |
| 14 | <author title="Editor"> |
14 | <author title="Editor"> |
| 15 | <mail link="klasikahl@gentoo.org">Zack Gilburd</mail> |
15 | <mail link="klasikahl@gentoo.org">Zack Gilburd</mail> |
| 16 | </author> |
16 | </author> |
| 17 | <author title="Editor"> |
17 | <author title="Editor"> |
| 18 | <mail link="seather@scygro.za.net">Scygro</mail> |
18 | <mail link="seather@scygro.za.net">Scygro</mail> |
| 19 | </author> |
19 | </author> |
| 20 | |
20 | |
| 21 | <abstract> |
21 | <abstract> |
| 22 | This document details how to create a virtual mailhosting system based upon |
22 | This document details how to create a virtual mailhosting system based upon |
| 23 | postfix, mysql, courier-imap, and cyrus-sasl. |
23 | postfix, mysql, courier-imap, and cyrus-sasl. |
| 24 | </abstract> |
24 | </abstract> |
| 25 | |
25 | |
| 26 | <version>1.0.28</version> |
26 | <version>1.1</version> |
| 27 | <date>2006-06-18</date> |
27 | <date>2006-07-04</date> |
| 28 | |
28 | |
| 29 | <!-- |
29 | <!-- |
| 30 | Contents |
30 | Contents |
| 31 | |
31 | |
| 32 | I. Introduction |
32 | I. Introduction |
| 33 | II. Postfix Basics |
33 | II. Postfix Basics |
| 34 | III. Courier-imap |
34 | III. Courier-imap |
| 35 | IV. Cyrus-sasl |
35 | IV. Cyrus-sasl |
| 36 | V. SSL Certificates for Postfix and Apache |
36 | V. SSL Certificates for Postfix and Apache |
| 37 | VI. Adding SSL and SASL support to Postfix |
37 | VI. Adding SSL and SASL support to Postfix |
| 38 | VII. MySQL |
38 | VII. MySQL |
| 39 | VIII. Apache and phpMyAdmin |
39 | VIII. Apache and phpMyAdmin |
| 40 | IX. The vmail user |
40 | IX. The vmail user |
| 41 | X. Configuring MySQL Authentication and vhosts |
41 | X. Configuring MySQL Authentication and vhosts |
| 42 | XI. Squirrelmail |
42 | XI. Squirrelmail |
| … | |
… | |
| 533 | <title>Apache and phpMyAdmin</title> |
533 | <title>Apache and phpMyAdmin</title> |
| 534 | <section> |
534 | <section> |
| 535 | <body> |
535 | <body> |
| 536 | |
536 | |
| 537 | <p> |
537 | <p> |
| 538 | Next we'll set up apache and add an interface to interact with the database |
538 | Next we'll set up apache and add an interface to interact with the database |
| 539 | more easily. |
539 | more easily. |
| 540 | </p> |
540 | </p> |
| 541 | |
541 | |
| 542 | <pre caption="Setting up apache and phpmyadmin"> |
542 | <pre caption="Setting up apache and phpmyadmin"> |
| 543 | # <i>emerge apache mod_php phpmyadmin</i> |
543 | # <i>emerge apache mod_php phpmyadmin</i> |
| 544 | </pre> |
544 | </pre> |
| 545 | |
545 | |
| 546 | <p> |
546 | <p> |
| 547 | There are plenty of guides out there about how to set up apache with php. Like |
547 | There are plenty of guides out there about how to set up apache with php. Like |
| 548 | this one: <uri>http://www.linuxguruz.org/z.php?id=31</uri>. There are also |
548 | this one: <uri>http://www.linuxguruz.com/z.php?id=31</uri>. There are also |
| 549 | numerous posts on <uri>http://forums.gentoo.org</uri> detailing how to solve |
549 | numerous posts on <uri>http://forums.gentoo.org</uri> detailing how to solve |
| 550 | problems with the installation (search for 'apache php'). So, that said, I'm |
550 | problems with the installation (search for 'apache php'). So, that said, I'm |
| 551 | not going to cover it here. Set up the apache and php installs, then continue |
551 | not going to cover it here. Set up the apache and php installs, then continue |
| 552 | with this howto. Now, a word for the wise: .htaccess the directory that you put |
552 | with this howto. Now, a word for the wise: .htaccess the directory that you put |
| 553 | phpmyadmin in. If you do not do this, search engine spiders will come along and |
553 | phpmyadmin in. If you do not do this, search engine spiders will come along and |
| 554 | index the page which in turn will mean that anyone will be able to find your |
554 | index the page which in turn will mean that anyone will be able to find your |
| 555 | phpmyadmin page via google and in turn be able to come change your database |
555 | phpmyadmin page via google and in turn be able to come change your database |
| 556 | however they want which is <e>BAD!</e> There are many howtos on this |
556 | however they want which is <e>BAD!</e> There are many howtos on this |
| 557 | including: <uri>http://www.csoft.net/docs/micro/htaccess.html.en</uri>. |
557 | including: <uri>http://www.csoft.net/docs/micro/htaccess.html.en</uri>. |
| 558 | </p> |
558 | </p> |
| 559 | |
559 | |
| 560 | <p> |
560 | <p> |
| 561 | Now we're going to install the Apache certificates we made previously. The |
561 | Now we're going to install the Apache certificates we made previously. The |
| 562 | Apache-SSL directives that you need to use the resulting cert are: |
562 | Apache-SSL directives that you need to use the resulting cert are: |
| 563 | </p> |
563 | </p> |