/[gentoo]/xml/htdocs/doc/en/virt-mail-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/virt-mail-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.29 Revision 1.30
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.29 2004/03/26 12:47:10 cam Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.30 2004/04/11 10:52:16 cam 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<author title="Author" > 7<author title="Author" >
80# (yes) (yes) (yes) (never) (50) 80# (yes) (yes) (yes) (never) (50)
81# 81#
82========================================================================== 82==========================================================================
83smtp inet n - n - - smtpd -v 83smtp inet n - n - - smtpd -v
84 84
85<codenote>Just add the <c>-v</c> after the smtpd in the above line</codenote> 85<codenote>Just add the "-v" after the smtpd in the above line</codenote>
86</pre> 86</pre>
87<p>Next, edit <path>/etc/mail/aliases</path> to add your local aliases. There should at least be an alias for root like: <c>root: your@email.address</c>.</p> 87<p>Next, edit <path>/etc/mail/aliases</path> to add your local aliases. There should at least be an alias for root like: <c>root: your@email.address</c>.</p>
88<pre caption="Starting postfix for the first time" > 88<pre caption="Starting postfix for the first time" >
89# <i>/usr/bin/newaliases</i> 89# <i>/usr/bin/newaliases</i>
90<codenote>This will install the new aliases. You only need to do this </codenote> 90<codenote>This will install the new aliases. You only need to do this </codenote>
294 -> <i>quit</i> 294 -> <i>quit</i>
295<codenote>Verify that the new mailsql user can connect to the mysql server.</codenote> 295<codenote>Verify that the new mailsql user can connect to the mysql server.</codenote>
296 296
297# <i>mysql -u mailsql -p mailsql</i> 297# <i>mysql -u mailsql -p mailsql</i>
298</pre> 298</pre>
299
300<p>
299<p>Your new database has default values and tables set up for two domains. The following tables are included: 301Your new database has default values and tables set up for two domains. The following tables are included:
302</p>
303
300 <ul> 304<ul>
301<li>alias - local email alias and mailman alias information.</li> 305<li>alias - local email alias and mailman alias information.</li>
302<li>relocated - relocated user email address maps</li> 306<li>relocated - relocated user email address maps</li>
303<li>transport - default mail transport information for all domains you are hosting</li> 307<li>transport - default mail transport information for all domains you are hosting</li>
304<li>users - all user account information</li> 308<li>users - all user account information</li>
305<li>virtual - virtual domain email alias maps</li> 309<li>virtual - virtual domain email alias maps</li>
306</ul> 310</ul>
307</p> 311
308<pre caption="alias table sample" > 312<pre caption="alias table sample" >
309id alias destination 313id alias destination
3101 root foo@bar.com 3141 root foo@bar.com
3112 postmaster foo@bar.com 3152 postmaster foo@bar.com
312</pre> 316</pre>
338<p>Next we'll set up apache and add an interface to interact with the database more easily. </p> 342<p>Next we'll set up apache and add an interface to interact with the database more easily. </p>
339<pre caption="Setting up apache and phpmyadmin" > 343<pre caption="Setting up apache and phpmyadmin" >
340# <i>emerge apache mod_php phpmyadmin</i> 344# <i>emerge apache mod_php phpmyadmin</i>
341</pre> 345</pre>
342<p>There are plenty of guides out there about how to set up apache with php. Like this one: <uri>http://www.linuxguruz.org/z.php?id=31</uri>. There are also numerous posts on <uri>http://forums.gentoo.org</uri> detailing how to solve problems with the installation (search for 'apache php'). So, that said, I'm not going to cover it here. Set up the apache and php installs, then continue with this howto. Now, a word for the wise: .htaccess the directory that you put phpmyadmin in. If you do not do this, search engine spiders will come along and index the page which in turn will mean that anyone will be able to find your phpmyadmin page via google and in turn be able to come change your database however they want which is <e>BAD!</e> There are many howtos on this including: <uri>http://www.csoft.net/docs/micro/htaccess.html.en</uri>.</p> 346<p>There are plenty of guides out there about how to set up apache with php. Like this one: <uri>http://www.linuxguruz.org/z.php?id=31</uri>. There are also numerous posts on <uri>http://forums.gentoo.org</uri> detailing how to solve problems with the installation (search for 'apache php'). So, that said, I'm not going to cover it here. Set up the apache and php installs, then continue with this howto. Now, a word for the wise: .htaccess the directory that you put phpmyadmin in. If you do not do this, search engine spiders will come along and index the page which in turn will mean that anyone will be able to find your phpmyadmin page via google and in turn be able to come change your database however they want which is <e>BAD!</e> There are many howtos on this including: <uri>http://www.csoft.net/docs/micro/htaccess.html.en</uri>.</p>
347
348<p>
343<p>Now we're going to install the Apache certificates we made previously. The Apache-SSL directives that you need to use the resulting cert are: 349Now we're going to install the Apache certificates we made previously. The Apache-SSL directives that you need to use the resulting cert are:
350</p>
351
344 <ul> 352<ul>
345<li>SSLCertificateFile /path/to/certs/new.cert.cert</li> 353<li>SSLCertificateFile /path/to/certs/new.cert.cert</li>
346<li>SSLCertificateKeyFile /path/to/certs/new.cert.key</li> 354<li>SSLCertificateKeyFile /path/to/certs/new.cert.key</li>
347</ul> 355</ul>
348</p> 356
349<pre caption="Install Apache SSL certificates" > 357<pre caption="Install Apache SSL certificates" >
350# <i>cp /etc/ssl/misc/new.cert.cert /etc/apache/conf/ssl/</i> 358# <i>cp /etc/ssl/misc/new.cert.cert /etc/apache/conf/ssl/</i>
351# <i>cp /etc/ssl/misc/new.cert.key /etc/apache/conf/ssl/</i> 359# <i>cp /etc/ssl/misc/new.cert.key /etc/apache/conf/ssl/</i>
352# <i>nano -w /etc/apache/conf/vhosts/ssl.default-vhost.conf</i> 360# <i>nano -w /etc/apache/conf/vhosts/ssl.default-vhost.conf</i>
353<codenote>Change the following parameters</codenote> 361<codenote>Change the following parameters</codenote>
792</section> 800</section>
793<section> 801<section>
794<title>Step 7: Research</title> 802<title>Step 7: Research</title>
795<body> 803<body>
796<p>Once you have the information, if you can diagnose and fix the problem, great! If not, you'll probably need to go digging on the net for information that will help you fix it. Here's a list of sites you can check to see if your error has already been resolved. There's also a really good howto on setting up smtp-auth which contains some great debugging ideas.</p> 804<p>Once you have the information, if you can diagnose and fix the problem, great! If not, you'll probably need to go digging on the net for information that will help you fix it. Here's a list of sites you can check to see if your error has already been resolved. There's also a really good howto on setting up smtp-auth which contains some great debugging ideas.</p>
797<p> 805
798<ul> 806<ul>
799<li> 807<li>
800<uri>http://forums.gentoo.org/</uri> - Great forums for gentoo users</li> 808<uri>http://forums.gentoo.org/</uri> - Great forums for gentoo users</li>
801<li> 809<li>
802<uri>http://bugs.gentoo.org/</uri> - Bugs database for gentoo - great place to look for specific errors</li> 810<uri>http://bugs.gentoo.org/</uri> - Bugs database for gentoo - great place to look for specific errors</li>
808<uri>http://sourceforge.net/mailarchive/forum.php?forum_id=6705</uri> - Courier-imap mailing list archives - not searchable</li> 816<uri>http://sourceforge.net/mailarchive/forum.php?forum_id=6705</uri> - Courier-imap mailing list archives - not searchable</li>
809<li> 817<li>
810<uri>http://www.google.com/</uri> - If all else fails, there's always google, which has never failed me</li> 818<uri>http://www.google.com/</uri> - If all else fails, there's always google, which has never failed me</li>
811<li>I also spend a lot of time on irc.freenode.net #gentoo. Irc is a great place to go for help.</li> 819<li>I also spend a lot of time on irc.freenode.net #gentoo. Irc is a great place to go for help.</li>
812</ul> 820</ul>
813</p> 821
814</body> 822</body>
815</section> 823</section>
816</chapter> 824</chapter>
817</guide> 825</guide>
818 826

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20