/[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.28 Revision 1.29
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.28 2004/03/04 18:24:44 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.29 2004/03/26 12:47:10 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" >
8<mail link="antifa@gentoo.org" >Ken Nowack</mail> 8<mail link="antifa@gentoo.org" >Ken Nowack</mail>
9</author> 9</author>
10<author title="Author" > 10<author title="Author" >
11<mail link="ezra@revoltltd.org" >Ezra Gorman</mail> 11<mail link="ezra@revoltltd.org" >Ezra Gorman</mail>
12</author> 12</author>
13<author title="Editor"> 13<author title="Editor">
14<mail link="klasikahl@gentoo.org" >Zack Gilburd</mail> 14<mail link="klasikahl@gentoo.org" >Zack Gilburd</mail>
15</author> 15</author>
16<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract> 16<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract>
17<version>1.0.10</version> 17<version>1.0.10</version>
375</pre> 375</pre>
376<p>Now enter the phpmyadmin page and browse the tables. You'll want to add in your local aliases, edit your user table to add a test user, and change your transport table to add information about your domains. The default values supplied with the dumpfile should be a sufficient guide to what values need to go where. Make sure that if you put information in the database that it is accurate. For instance, make sure the local users home dir exists and that the correct uid/gid values are in place. The maildirs should be created automatically by postfix when the user receives their first email. So, in general, it's a good idea to send a &quot;Welcome&quot; mail to a new user after you setup their account to make sure the .maildir gets created. </p> 376<p>Now enter the phpmyadmin page and browse the tables. You'll want to add in your local aliases, edit your user table to add a test user, and change your transport table to add information about your domains. The default values supplied with the dumpfile should be a sufficient guide to what values need to go where. Make sure that if you put information in the database that it is accurate. For instance, make sure the local users home dir exists and that the correct uid/gid values are in place. The maildirs should be created automatically by postfix when the user receives their first email. So, in general, it's a good idea to send a &quot;Welcome&quot; mail to a new user after you setup their account to make sure the .maildir gets created. </p>
377</body> 377</body>
378</section> 378</section>
379</chapter> 379</chapter>
380<chapter> 380<chapter>
381<title>The vmail user</title> 381<title>The vmail user</title>
382<section> 382<section>
383<body> 383<body>
384<p>At this point you may be wondering what user and directory to use for virtual mail users, and rightly so. Let's set that up.</p> 384<p>At this point you may be wondering what user and directory to use for virtual mail users, and rightly so. Let's set that up.</p>
385<pre caption="Adding the vmail user" > 385<pre caption="Adding the vmail user" >
386# <i>adduser -d /home/vmail -s /bin/false vmail</i> 386# <i>adduser -d /home/vmail -s /bin/false vmail</i>
387# <i>uid=`cat /etc/passwd | grep vmail | cut -f 3 -d :`</i> 387# <i>uid=`cat /etc/passwd | grep vmail | cut -f 3 -d :`</i>
388# <i>groupadd -g $uid vmail</i> 388# <i>groupadd -g $uid vmail</i>
389# <i>mkdir /home/vmail</i> 389# <i>mkdir /home/vmail</i>
390# <i>chown vmail. /home/vmail</i> 390# <i>chown vmail: /home/vmail</i>
391</pre> 391</pre>
392<p>So now when you're setting up vmail accounts, use the vmail uid, gid, and homedir. When you're setting up local accounts, use that users uid, gid, and homedir. We've been meaning to create a php admin page for this setup but haven't gotten around to it yet, as phpmyadmin generally works fine for us.</p> 392<p>So now when you're setting up vmail accounts, use the vmail uid, gid, and homedir. When you're setting up local accounts, use that users uid, gid, and homedir. We've been meaning to create a php admin page for this setup but haven't gotten around to it yet, as phpmyadmin generally works fine for us.</p>
393</body> 393</body>
394</section> 394</section>
395</chapter> 395</chapter>
396<chapter> 396<chapter>
397<title>Configuring MySQL Authentication and vhosts</title> 397<title>Configuring MySQL Authentication and vhosts</title>
398<section> 398<section>
399<body> 399<body>
400<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> 400<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>
401<pre> 401<pre>
402# <i>emerge pam_mysql</i> 402# <i>emerge pam_mysql</i>
403# <i>nano -w /etc/pam.d/imap</i> 403# <i>nano -w /etc/pam.d/imap</i>
404<codenote>Comment out the existing auth lines and add the following as shown.</codenote> 404<codenote>Comment out the existing auth lines and add the following as shown.</codenote>
405 405

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

  ViewVC Help
Powered by ViewVC 1.1.20