| 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.19 2003/11/15 00:35:19 neysx Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.20 2003/12/06 16:34:43 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 Guide</title> |
6 | <title>Virtual Mailhosting System Guide</title> |
| 7 | <author title="Author" > |
7 | <author title="Author" > |
| … | |
… | |
| 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 | <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> |
| 14 | <version>1.0.4</version> |
14 | <version>1.0.5</version> |
| 15 | <date>November 13, 2003</date> |
15 | <date>December 6, 2003</date> |
| 16 | <!-- |
16 | <!-- |
| 17 | |
17 | |
| 18 | Contents |
18 | Contents |
| 19 | |
19 | |
| 20 | I. Introduction |
20 | I. Introduction |
| … | |
… | |
| 374 | <chapter> |
374 | <chapter> |
| 375 | <title>Configuring MySQL Authentication and vhosts</title> |
375 | <title>Configuring MySQL Authentication and vhosts</title> |
| 376 | <body> |
376 | <body> |
| 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 | <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> |
| 378 | <pre> |
378 | <pre> |
| 379 | # <i>emerge /usr/portage/sys-libs/pam_mysql/pam_mysql-$currentversion.ebuild</i> |
379 | # <i>emerge pam_mysql</i> |
| 380 | <codenote>This package is currently masked so you'll have to give it an explicit path </codenote> |
|
|
| 381 | <codenote>or unmask the package. This is subject to change when the package is unmasked</codenote> |
|
|
| 382 | <codenote>in the portage tree.</codenote> |
|
|
| 383 | |
|
|
| 384 | # <i>nano -w /etc/pam.d/imap</i> |
380 | # <i>nano -w /etc/pam.d/imap</i> |
| 385 | <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> |
| 386 | |
382 | |
| 387 | #auth required pam_nologin.so |
383 | #auth required pam_nologin.so |
| 388 | #auth required pam_stack.so service=system-auth |
384 | #auth required pam_stack.so service=system-auth |