/[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.14 Revision 1.15
7</author> 7</author>
8<author title="Author" > 8<author title="Author" >
9<mail link="ezra@revoltltd.org" >Ezra Gorman</mail> 9<mail link="ezra@revoltltd.org" >Ezra Gorman</mail>
10</author> 10</author>
11<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract> 11<abstract>This document details how to create a virtual mailhosting system based upon postfix, mysql, courier-imap, and cyrus-sasl. </abstract>
12<version>1.0.1</version> 12<version>1.0.2</version>
13<date>7 Aug 2003</date> 13<date>7 Aug 2003</date>
14<!-- 14<!--
15 15
16Contents 16Contents
17 17
285<li>users - all user account information</li> 285<li>users - all user account information</li>
286<li>virtual - virtual domain email alias maps</li> 286<li>virtual - virtual domain email alias maps</li>
287</ul> 287</ul>
288</p> 288</p>
289<pre caption="alias table sample" > 289<pre caption="alias table sample" >
290 id alias destination 290id alias destination
291 1 root foo@bar.com 2911 root foo@bar.com
292 2 postmaster foo@bar.com 2922 postmaster foo@bar.com
293</pre> 293</pre>
294<pre caption="user table sample" > 294<pre caption="user table sample" >
295 id email clear name uid gid homedir maildir quota postfix 295<codenote>Line wrapped for clarity</codenote>
296 10 foo@virt-bar.org $password realname virtid virtid /home/vmail /home/vmail/virt-bar.org/foo/.maildir/ y 296id email clear name uid gid homedir \
297 13 foo@bar.com $password realname localid localid /home/foo /home/foo/.maildir/ y 297 maildir quota postfix
29810 foo@virt-bar.org $password realname virtid virtid /home/vmail \
299 /home/vmail/virt-bar.org/foo/.maildir/ y
30013 foo@bar.com $password realname localid localid /home/foo \
301 /home/foo/.maildir/ y
298</pre> 302</pre>
299<pre caption="transport table sample" > 303<pre caption="transport table sample" >
300 id domain destination 304id domain destination
301 1 bar.com local: 3051 bar.com local:
302 2 virt-bar.org virtual: 3062 virt-bar.org virtual:
303</pre> 307</pre>
304<pre caption="virtual table sample" > 308<pre caption="virtual table sample" >
305 id email destination 309id email destination
306 3 root@virt-bar.org other@email.address 3103 root@virt-bar.org other@email.address
307</pre> 311</pre>
308</body> 312</body>
309</chapter> 313</chapter>
310<chapter> 314<chapter>
311<title>Apache and phpMyAdmin</title> 315<title>Apache and phpMyAdmin</title>
338<p>Next, configure phpMyAdmin.</p> 342<p>Next, configure phpMyAdmin.</p>
339<pre caption="Configuring phpMyAdmin" > 343<pre caption="Configuring phpMyAdmin" >
340# <i>nano -w /home/httpd/htdocs/phpmyadmin/config.inc.php</i> 344# <i>nano -w /home/httpd/htdocs/phpmyadmin/config.inc.php</i>
341<codenote>Change the following parameters</codenote> 345<codenote>Change the following parameters</codenote>
342 346
343$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname 347$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
344$cfg['Servers'][$i]['controluser'] = 'mailsql'; // MySQL control user settings 348$cfg['Servers'][$i]['controluser'] = 'mailsql'; // MySQL control user settings
345 // (this user must have read-only 349 // (this user must have read-only
346$cfg['Servers'][$i]['controlpass'] = '$password'; // access to the &quot;mysql/user&quot; 350$cfg['Servers'][$i]['controlpass'] = '$password'; // access to the &quot;mysql/user&quot;
347 // and &quot;mysql/db&quot; tables) 351 // and &quot;mysql/db&quot; tables)
348$cfg['Servers'][$i]['user'] = 'mailsql'; // MySQL user 352$cfg['Servers'][$i]['user'] = 'mailsql'; // MySQL user
349$cfg['Servers'][$i]['password'] = '$password'; // MySQL password 353$cfg['Servers'][$i]['password'] = '$password'; // MySQL password
350</pre> 354</pre>
351<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> 355<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>
352</body> 356</body>
353</chapter> 357</chapter>
354<chapter> 358<chapter>
728<codenote>letting you know that the service is running and ready to respond to requests.</codenote> 732<codenote>letting you know that the service is running and ready to respond to requests.</codenote>
729 733
730Trying 127.0.0.1... 734Trying 127.0.0.1...
731Connected to localhost. 735Connected to localhost.
732Escape character is '^]'. 736Escape character is '^]'.
733* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See COPYING for distribution information. 737* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.
734</pre> 738</pre>
735</body> 739</body>
736</section> 740</section>
737<section> 741<section>
738<title>Step 6: Sometimes only the big guns will give you the information you need: strace.</title> 742<title>Step 6: Sometimes only the big guns will give you the information you need: strace.</title>

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20