| 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.36 2004/11/08 10:12:54 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.37 2004/11/19 08:28:14 swift 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.14</version> |
17 | <version>1.0.15</version> |
| 18 | <date>November 08, 2004</date> |
18 | <date>November 19, 2004</date> |
| 19 | <!-- |
19 | <!-- |
| 20 | |
20 | |
| 21 | Contents |
21 | Contents |
| 22 | |
22 | |
| 23 | I. Introduction |
23 | I. Introduction |
| 24 | II. Postfix Basics |
24 | II. Postfix Basics |
| 25 | III. Courier-imap |
25 | III. Courier-imap |
| 26 | IV. Cyrus-sasl |
26 | IV. Cyrus-sasl |
| 27 | V. SSL Certificates for Postfix and Apache |
27 | V. SSL Certificates for Postfix and Apache |
| 28 | VI. Adding SSL and SASL support to Postfix |
28 | VI. Adding SSL and SASL support to Postfix |
| 29 | VII. MySQL |
29 | VII. MySQL |
| 30 | VIII. Apache and phpMyAdmin |
30 | VIII. Apache and phpMyAdmin |
| 31 | IX. The vmail user |
31 | IX. The vmail user |
| 32 | X. Configuring MySQL Authentication and vhosts |
32 | X. Configuring MySQL Authentication and vhosts |
| 33 | XI. Squirrelmail |
33 | XI. Squirrelmail |
| … | |
… | |
| 323 | |
323 | |
| 324 | <pre caption="alias table sample" > |
324 | <pre caption="alias table sample" > |
| 325 | id alias destination |
325 | id alias destination |
| 326 | 1 root foo@bar.com |
326 | 1 root foo@bar.com |
| 327 | 2 postmaster foo@bar.com |
327 | 2 postmaster foo@bar.com |
| 328 | </pre> |
328 | </pre> |
| 329 | <pre caption="user table sample" > |
329 | <pre caption="user table sample" > |
| 330 | <codenote>Line wrapped for clarity</codenote> |
330 | <codenote>Line wrapped for clarity</codenote> |
| 331 | id email clear name uid gid homedir \ |
331 | id email clear name uid gid homedir \ |
| 332 | maildir quota postfix |
332 | maildir quota postfix |
| 333 | 10 foo@virt-bar.org $password realname virtid virtid /home/vmail \ |
333 | 10 foo@virt-bar.org $password realname virtid virtid /home/vmail \ |
| 334 | /home/vmail/virt-bar.org/foo/.maildir/ y |
334 | /home/vmail/virt-bar.org/foo/.maildir/ y |
| 335 | 13 foo@bar.com $password realname localid localid /home/foo \ |
335 | 13 foo@bar.com $password realname localid localid /home/foo \ |
| 336 | /home/foo/.maildir/ y |
336 | /home/foo/.maildir/ y |
| 337 | </pre> |
337 | </pre> |
|
|
338 | |
|
|
339 | <p> |
|
|
340 | The values of the <c>virtid</c> uid and gid should be those of the <c>vmail</c> |
|
|
341 | user and group. |
|
|
342 | </p> |
|
|
343 | |
| 338 | <pre caption="transport table sample" > |
344 | <pre caption="transport table sample" > |
| 339 | id domain destination |
345 | id domain destination |
| 340 | 1 bar.com local: |
346 | 1 bar.com local: |
| 341 | 2 virt-bar.org virtual: |
347 | 2 virt-bar.org virtual: |
| 342 | </pre> |
348 | </pre> |
| 343 | <pre caption="virtual table sample" > |
349 | <pre caption="virtual table sample" > |
| 344 | id email destination |
350 | id email destination |
| 345 | 3 root@virt-bar.org other@email.address |
351 | 3 root@virt-bar.org other@email.address |
| 346 | </pre> |
352 | </pre> |
| 347 | </body> |
353 | </body> |
| 348 | </section> |
354 | </section> |
| 349 | </chapter> |
355 | </chapter> |
| 350 | <chapter> |
356 | <chapter> |
| 351 | <title>Apache and phpMyAdmin</title> |
357 | <title>Apache and phpMyAdmin</title> |
| 352 | <section> |
358 | <section> |