/[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
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
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>

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

  ViewVC Help
Powered by ViewVC 1.1.20