/[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.40 Revision 1.41
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.40 2004/12/22 21:33:10 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.41 2005/02/05 15:24:39 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 7
8<author title="Author"> 8<author title="Author">
9 <mail link="antifa@gentoo.org">Ken Nowack</mail> 9 <mail link="antifa@gentoo.org">Ken Nowack</mail>
10</author> 10</author>
11<author title="Author"> 11<author title="Author">
12 <mail link="ezra@revoltltd.org">Ezra Gorman</mail> 12 <mail link="ezra@revoltltd.org">Ezra Gorman</mail>
13</author> 13</author>
14<author title="Editor"> 14<author title="Editor">
15 <mail link="klasikahl@gentoo.org">Zack Gilburd</mail> 15 <mail link="klasikahl@gentoo.org">Zack Gilburd</mail>
16</author> 16</author>
17 17
18<abstract> 18<abstract>
19This document details how to create a virtual mailhosting system based upon 19This document details how to create a virtual mailhosting system based upon
20postfix, mysql, courier-imap, and cyrus-sasl. 20postfix, mysql, courier-imap, and cyrus-sasl.
21</abstract> 21</abstract>
22 22
23<version>1.0.17</version> 23<version>1.0.18</version>
24<date>2004-12-22</date> 24<date>2005-02-05</date>
25 25
26<!-- 26<!--
27Contents 27Contents
28 28
29I. Introduction 29I. Introduction
30II. Postfix Basics 30II. Postfix Basics
31III. Courier-imap 31III. Courier-imap
32IV. Cyrus-sasl 32IV. Cyrus-sasl
33V. SSL Certificates for Postfix and Apache 33V. SSL Certificates for Postfix and Apache
34VI. Adding SSL and SASL support to Postfix 34VI. Adding SSL and SASL support to Postfix
35VII. MySQL 35VII. MySQL
36VIII. Apache and phpMyAdmin 36VIII. Apache and phpMyAdmin
37IX. The vmail user 37IX. The vmail user
38X. Configuring MySQL Authentication and vhosts 38X. Configuring MySQL Authentication and vhosts
39XI. Squirrelmail 39XI. Squirrelmail
254 254
255<chapter> 255<chapter>
256<title>Cyrus-sasl</title> 256<title>Cyrus-sasl</title>
257<section> 257<section>
258<body> 258<body>
259 259
260<p> 260<p>
261Next we're going to install cyrus-sasl. Sasl is going to play the role of 261Next we're going to install cyrus-sasl. Sasl is going to play the role of
262actually passing your auth variables to pam, which will in turn pass that 262actually passing your auth variables to pam, which will in turn pass that
263information to mysql for authentication of smtp users. For this howto, we'll 263information to mysql for authentication of smtp users. For this howto, we'll
264not even try to verify that sasl is working until mysql is set up and contains 264not even try to verify that sasl is working until mysql is set up and contains
265a test user. Which is fine since we'll be authenticating against mysql in the 265a test user. Which is fine since we'll be authenticating against mysql in the
266end anyway. 266end anyway.
267</p> 267</p>
268 268
269<note>
270Now for some reason, sasl will not play nicely with pam against the shadow
271file. I banged my head against this problem for, well, a long time. If anyone
272knows why sasl will not auth against the shadow file in its current gentoo
273incarnation, please <mail link="ken@kickasskungfu.com">email me</mail> as I'd
274love to hear a solution to this.
275</note>
276
277<pre caption="Configuring and installing the cyrus-sasl ebuild"> 269<pre caption="Configuring and installing the cyrus-sasl ebuild">
278<comment>(We don't have ldap and we're using sasl's mysql capabilities
279 so we need to set the appropriate USE flags, but only if your USE flags
280 doesn't already contain the mysql USE flag and not the ldap one)</comment>
281# <i>mkdir /etc/portage</i>
282# <i>echo "dev-libs/cyrus-sasl -ldap mysql" &gt;&gt; /etc/portage/package.use</i>
283# <i>emerge cyrus-sasl</i> 270# <i>emerge cyrus-sasl</i>
284</pre> 271</pre>
285 272
286<p> 273<p>
287Next, edit <path>/etc/sasl2/smtpd.conf</path>. 274Next, edit <path>/etc/sasl2/smtpd.conf</path>.
288</p> 275</p>
289 276
290<pre caption="Starting sasl"> 277<pre caption="Starting sasl">
291# <i>nano -w /etc/sasl2/smtpd.conf</i> 278# <i>nano -w /etc/sasl2/smtpd.conf</i>
292pwcheck_method: auxprop 279mech_list: PLAIN LOGIN
293auxprop_plugin: sql
294sql_engine: mysql
295sql_hostnames: localhost
296sql_user: mailsql
297sql_passwd: <comment>&lt;password&gt;</comment>
298sql_database: mailsql
299sql_select: select clear from users where email = '%u@%r'
300mech_list: plain login
301pwcheck_method: saslauthd 280pwcheck_method: saslauthd
302mech_list: LOGIN PLAIN 281# <i>nano -w /etc/conf.d/saslauthd</i>
303<comment>(It's important to turn off auth methods we are not using. 282SASLAUTHD_OPTS="${SASLAUTH_MECH} -a pam -r"
304They cause problems for some mail clients.)</comment>
305# <i>/etc/init.d/saslauthd start</i> 283# <i>/etc/init.d/saslauthd start</i>
306</pre> 284</pre>
307 285
308</body> 286</body>
309</section> 287</section>
310</chapter> 288</chapter>
311 289
312<chapter> 290<chapter>
313<title>SSL Certs for Postfix and Apache</title> 291<title>SSL Certs for Postfix and Apache</title>
314<section> 292<section>
315<body> 293<body>
316 294
317<p> 295<p>
318Next we're going to make a set of ssl certificates for postfix and apache. 296Next we're going to make a set of ssl certificates for postfix and apache.
319</p> 297</p>

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20