swift       05/05/29 16:12:29

  Modified:    xml/htdocs/doc/en virt-mail-howto.xml
  Log:
  #93842 - Improve authentication, update on latest software titles. Added 
scygro as editor so we know an additional contact in case of future issues :)

Revision  Changes    Path
1.45      +15 -33    xml/htdocs/doc/en/virt-mail-howto.xml

file : 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/virt-mail-howto.xml?rev=1.45&content-type=text/x-cvsweb-markup&cvsroot=gentoo
plain: 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/virt-mail-howto.xml?rev=1.45&content-type=text/plain&cvsroot=gentoo
diff : 
http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/virt-mail-howto.xml.diff?r1=1.44&r2=1.45&cvsroot=gentoo

Index: virt-mail-howto.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- virt-mail-howto.xml 23 May 2005 16:09:09 -0000      1.44
+++ virt-mail-howto.xml 29 May 2005 16:12:29 -0000      1.45
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.44 
2005/05/23 16:09:09 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.45 
2005/05/29 16:12:29 swift Exp $ -->
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
 <guide link="/doc/en/virt-mail-howto.xml">
@@ -14,14 +14,17 @@
 <author title="Editor">
   <mail link="[EMAIL PROTECTED]">Zack Gilburd</mail>
 </author>
+<author title="Editor">
+  <mail link="[EMAIL PROTECTED]">Scygro</mail>
+</author>
 
 <abstract>
 This document details how to create a virtual mailhosting system based upon
 postfix, mysql, courier-imap, and cyrus-sasl.
 </abstract>
 
-<version>1.0.21</version>
-<date>2005-05-23</date>
+<version>1.0.22</version>
+<date>2005-05-29</date>
 
 <!--
 Contents
@@ -84,14 +87,14 @@
 </p>
 
 <p>
-The following packages are used in this setup: apache, courier-imap, pam_mysql,
+The following packages are used in this setup: apache, courier-imap, 
courier-authlib
 postfix, mod_php, phpmyadmin, squirrelmail, cyrus-sasl, mysql, php, and
 mailman.
 </p>
 
 <p>
 Make sure to turn on the following USE variables in <path>/etc/make.conf</path>
-before compiling the packages: <c>USE="mysql pam-mysql imap libwww maildir
+before compiling the packages: <c>USE="mysql imap libwww maildir
 sasl ssl"</c>. Otherwise you will most likely have to recompile things to
 get the support you need for all the protocols. Further, it's a good idea to
 turn off any other mail and network variables, like ipv6.
@@ -215,8 +218,8 @@
 <section>
 <body>
 
-<pre caption="Install courier-imap">
-# <i>emerge courier-imap</i>
+<pre caption="Install courier-imap and courier-authlib">
+# <i>emerge courier-imap courier-authlib</i>
 </pre>
 
 <pre caption="Courier-imap configuration">
@@ -259,7 +262,7 @@
 
 <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
+actually passing your auth variables to courier-auth, 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
@@ -279,7 +282,8 @@
 mech_list: PLAIN LOGIN
 pwcheck_method: saslauthd
 # <i>nano -w /etc/conf.d/saslauthd</i>
-SASLAUTHD_OPTS="${SASLAUTH_MECH} -a pam -r"
+SASLAUTHD_OPTS="${SASLAUTH_MECH} -a rimap -r"
+SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -O localhost"
 # <i>/etc/init.d/saslauthd start</i>
 </pre>
 
@@ -650,32 +654,10 @@
 </p>
 
 <pre caption="Configuring authentication">
-# <i>emerge pam_mysql</i>
-# <i>nano -w /etc/pam.d/smtp</i>
-<comment>(Comment out the existing auth lines and add the following as 
shown.)</comment>
-
-#auth    required        /lib/security/pam_stack.so service=system-auth
-#account required        /lib/security/pam_stack.so service=system-auth
-
-auth     optional       pam_mysql.so host=localhost db=mailsql user=mailsql \
-  passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0
-account  required       pam_mysql.so host=localhost db=mailsql user=mailsql \
-  passwd=$password table=users usercolumn=email passwdcolumn=clear crypt=0
-
-</pre>
-
-<p>
-Next, we need to edit courier's authentication config's.
-</p>
-
-<pre caption="Configuring authentication">
-# <i>nano -w /etc/courier-imap/authdaemonrc</i>
+# <i>nano -w /etc/courier/authlib/authdaemonrc</i>
 authmodulelist="authmysql authpam"
 
-# <i>nano -w /etc/courier-imap/authdaemond.conf</i>
-AUTHDAEMOND="authdaemond.mysql"
-
-# <i>nano -w /etc/courier-imap/authmysqlrc</i>
+# <i>nano -w /etc/courier/authlib/authmysqlrc</i>
 MYSQL_SERVER            localhost
 MYSQL_USERNAME       mailsql
 MYSQL_PASSWORD      $password



-- 
[email protected] mailing list

Reply via email to