/[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.17 Revision 1.21
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.21 2003/12/07 18:21:26 pylon Exp $ -->
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3 4
4<guide link=" /doc/en/virt-mail-howto.xml" > 5<guide link=" /doc/en/virt-mail-howto.xml" >
5<title>Virtual Mailhosting System Guide</title> 6<title>Virtual Mailhosting System Guide</title>
6<author title="Author" > 7<author title="Author" >
8</author> 9</author>
9<author title="Author" > 10<author title="Author" >
10<mail link="ezra@revoltltd.org" >Ezra Gorman</mail> 11<mail link="ezra@revoltltd.org" >Ezra Gorman</mail>
11</author> 12</author>
12<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract> 13<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract>
13<version>1.0.3</version> 14<version>1.0.6</version>
14<date>October 23, 2003</date> 15<date>December 7, 2003</date>
15<!-- 16<!--
16 17
17Contents 18Contents
18 19
19I. Introduction 20I. Introduction
340# <i>/etc/init.d/apache restart</i> 341# <i>/etc/init.d/apache restart</i>
341</pre> 342</pre>
342<note>If you have an existing apache install, you'll likely have to perform a full server reboot to install your new certificates. Check your logs to verify apache restarted successfully.</note> 343<note>If you have an existing apache install, you'll likely have to perform a full server reboot to install your new certificates. Check your logs to verify apache restarted successfully.</note>
343<p>Next, configure phpMyAdmin.</p> 344<p>Next, configure phpMyAdmin.</p>
344<pre caption="Configuring phpMyAdmin" > 345<pre caption="Configuring phpMyAdmin" >
345# <i>nano -w /home/httpd/htdocs/phpmyadmin/config.inc.php</i> 346# <i>nano -w /var/www/localhost/htdocs/phpmyadmin/config.inc.php</i>
346<codenote>Change the following parameters</codenote> 347<codenote>Change the following parameters</codenote>
347 348
348$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname 349$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
349$cfg['Servers'][$i]['controluser'] = 'mailsql'; // MySQL control user settings 350$cfg['Servers'][$i]['controluser'] = 'mailsql'; // MySQL control user settings
350 // (this user must have read-only 351 // (this user must have read-only
373<chapter> 374<chapter>
374<title>Configuring MySQL Authentication and vhosts</title> 375<title>Configuring MySQL Authentication and vhosts</title>
375<body> 376<body>
376<p>Next we'll reconfigure our authentication to use the mailsql database in courier-imap and postfix. In all of the following examples, replace $password with the password you set for the mailsql mysql user.</p> 377<p>Next we'll reconfigure our authentication to use the mailsql database in courier-imap and postfix. In all of the following examples, replace $password with the password you set for the mailsql mysql user.</p>
377<pre> 378<pre>
378# <i>emerge /usr/portage/sys-libs/pam_mysql/pam_mysql-$currentversion.ebuild</i> 379# <i>emerge pam_mysql</i>
379<codenote>This package is currently masked so you'll have to give it an explicit path </codenote>
380<codenote>or unmask the package. This is subject to change when the package is unmasked</codenote>
381<codenote>in the portage tree.</codenote>
382
383# <i>nano -w /etc/pam.d/imap</i> 380# <i>nano -w /etc/pam.d/imap</i>
384<codenote>Comment out the existing auth lines and add the following as shown.</codenote> 381<codenote>Comment out the existing auth lines and add the following as shown.</codenote>
385 382
386#auth required pam_nologin.so 383#auth required pam_nologin.so
387#auth required pam_stack.so service=system-auth 384#auth required pam_stack.so service=system-auth
388#account required pam_stack.so service=system-auth 385#account required pam_stack.so service=system-auth
389#session required pam_stack.so service=system-auth 386#session required pam_stack.so service=system-auth
390 387
391auth optional pam_mysql.so server=localhost db=mailsql user=mailsql \ 388auth optional pam_mysql.so host=localhost db=mailsql user=mailsql \
392 passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0 389 passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0
393account required pam_mysql.so server=localhost db=mailsql user=mailsql \ 390account required pam_mysql.so host=localhost db=mailsql user=mailsql \
394 passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0 391 passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0
395 392
396# <i>nano -w /etc/pam.d/pop3</i> 393# <i>nano -w /etc/pam.d/pop3</i>
397# <i>nano -w /etc/pam.d/smtp</i> 394# <i>nano -w /etc/pam.d/smtp</i>
398<codenote>Make the same changes to the pop3 and smtp files</codenote> 395<codenote>Make the same changes to the pop3 and smtp files</codenote>
545<body> 542<body>
546<pre> 543<pre>
547# <i>emerge squirrelmail</i> 544# <i>emerge squirrelmail</i>
548<codenote>I like to add a link to the htdocs space for a shorter url.</codenote> 545<codenote>I like to add a link to the htdocs space for a shorter url.</codenote>
549 546
550# <i>ln -s /home/httpd/htdocs/squirrelmail/ /home/httpd/htdocs/mail</i> 547# <i>ln -s /var/www/localhost/htdocs/squirrelmail/ /var/www/localhost/htdocs/mail</i>
551# <i>cd /home/httpd/htdocs/mail/conf</i> 548# <i>cd /var/www/localhost/htdocs/mail/conf</i>
552# <i>./conf.pl</i> 549# <i>./conf.pl</i>
553<codenote>Change your Organization, Server, and Folder settings for squirrelmail.</codenote> 550<codenote>Change your Organization, Server, and Folder settings for squirrelmail.</codenote>
554<codenote>Now you should be able to login to squirrelmail, again - with your full email address,</codenote> 551<codenote>Now you should be able to login to squirrelmail, again - with your full email address,</codenote>
555<codenote>and use your new webmail setup.</codenote> 552<codenote>and use your new webmail setup.</codenote>
556</pre> 553</pre>

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20