/[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.26 Revision 1.27
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.26 2004/02/19 16:51:53 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.27 2004/03/04 16:52:33 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.9</version> 17<version>1.0.10</version>
18<date>February 8, 2004</date> 18<date>March 4, 2004</date>
19<!-- 19<!--
20 20
21Contents 21Contents
22 22
23I. Introduction 23I. Introduction
24II. Postfix Basics 24II. Postfix Basics
25III. Courier-imap 25III. Courier-imap
26IV. Cyrus-sasl 26IV. Cyrus-sasl
27V. SSL Certificates for Postfix and Apache 27V. SSL Certificates for Postfix and Apache
28VI. Adding SSL and SASL support to Postfix 28VI. Adding SSL and SASL support to Postfix
29VII. MySQL 29VII. MySQL
30VIII. Apache and phpMyAdmin 30VIII. Apache and phpMyAdmin
31IX. The vmail user 31IX. The vmail user
32X. Configuring MySQL Authentication and vhosts 32X. Configuring MySQL Authentication and vhosts
33XI. Squirrelmail 33XI. Squirrelmail
125<p>Start up your favorite mail client and verify that all connections you've started work for receiving and sending mail. Now that the basics work, we're going to do a whole bunch of stuff at once to get the rest of the system running. Again, please verify that what we've installed already works before progressing.</p> 125<p>Start up your favorite mail client and verify that all connections you've started work for receiving and sending mail. Now that the basics work, we're going to do a whole bunch of stuff at once to get the rest of the system running. Again, please verify that what we've installed already works before progressing.</p>
126</body> 126</body>
127</section> 127</section>
128</chapter> 128</chapter>
129<chapter> 129<chapter>
130<title>Cyrus-sasl</title> 130<title>Cyrus-sasl</title>
131<section> 131<section>
132<body> 132<body>
133<p>Next we're going to install cyrus-sasl. Sasl is going to play the role of actually passing your auth variables to pam, which will in turn pass that information to mysql for authentication of smtp users. For this howto, we'll not even try to verify that sasl is working until mysql is set up and contains a test user. Which is fine since we'll be authenticating against mysql in the end anyway.</p> 133<p>Next we're going to install cyrus-sasl. Sasl is going to play the role of actually passing your auth variables to pam, which will in turn pass that information to mysql for authentication of smtp users. For this howto, we'll not even try to verify that sasl is working until mysql is set up and contains a test user. Which is fine since we'll be authenticating against mysql in the end anyway.</p>
134<note>Now for some reason, sasl will not play nicely with pam against the shadow file. I banged my head against this problem for, well, a long time. If anyone knows why sasl will not auth against the shadow file in its current gentoo incarnation, please <mail link="ken@kickasskungfu.com" >email me</mail> as I'd love to hear a solution to this.</note> 134<note>Now for some reason, sasl will not play nicely with pam against the shadow file. I banged my head against this problem for, well, a long time. If anyone knows why sasl will not auth against the shadow file in its current gentoo incarnation, please <mail link="ken@kickasskungfu.com" >email me</mail> as I'd love to hear a solution to this.</note>
135<pre caption="Configuring and installing the cyrus-sasl ebuild" > 135<pre caption="Configuring and installing the cyrus-sasl ebuild" >
136# <i>USE='-ldap -mysql' emerge cyrus-sasl</i> 136# <i>USE='-ldap -mysql' emerge cyrus-sasl</i>
137<codenote>We don't have ldap and we're not using sasl's mysql capabilities </codenote> 137<codenote>We don't have ldap and we're not using sasl's mysql capabilities </codenote>
138<codenote>so we need to turn them off for this build.</codenote> 138<codenote>so we need to turn them off for this build.</codenote>
139</pre> 139</pre>
140<p>Next, edit <path>/usr/lib/sasl2/smtpd.conf</path>.</p> 140<p>Next, edit <path>/etc/sasl2/smtpd.conf</path>.</p>
141<pre caption="Starting sasl" > 141<pre caption="Starting sasl" >
142# <i>nano -w /usr/lib/sasl2/smtpd.conf</i> 142# <i>nano -w /etc/sasl2/smtpd.conf</i>
143pwcheck_method: saslauthd 143pwcheck_method: saslauthd
144mech_list: LOGIN PLAIN 144mech_list: LOGIN PLAIN
145<codenote>It's important to turn off auth mehtods we are not using.</codenote> 145<codenote>It's important to turn off auth mehtods we are not using.</codenote>
146<codenote>They cause problems for some mail clients.</codenote> 146<codenote>They cause problems for some mail clients.</codenote>
147# <i>/etc/init.d/saslauthd start</i> 147# <i>/etc/init.d/saslauthd start</i>
148</pre> 148</pre>
149</body> 149</body>
150</section> 150</section>
151</chapter> 151</chapter>
152<chapter> 152<chapter>
153<title>SSL Certs for Postfix and Apache</title> 153<title>SSL Certs for Postfix and Apache</title>
154<section> 154<section>
155<body> 155<body>
156<p>Next we're going to make a set of ssl certificates for postfix and apache.</p> 156<p>Next we're going to make a set of ssl certificates for postfix and apache.</p>
157<pre> 157<pre>

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20