Jose,
   thank you very much for the feed-back!  Unfortunatelly, it didn't
solve my problem :-(

I did manage to get courier-4.0.2 working with

1) daemontools supervising imap, authdaemon, etc
2) tcpserver handling sockets
3) authdaemon handling proxyed connections

what I'm missing is:

- I can't get authdaemon to create the user's homedir.  The "auth_imap"
programm shipped with qldap was responsible for doing that...

Anyone managed to do that?

[s]
Krico

Jose Javier Sianes Ruiz wrote:

Few days ago we talk about this problem. Here you are a copy about the
solution.


---------------------------- Mensaje original ---------------------------- Asunto: Re: Courier-imap 4.0.2 setup with qmail-ldap De: [EMAIL PROTECTED] Fecha: Dom, 3 de Abril de 2005, 18:16 Para: [EMAIL PROTECTED] Cc: [email protected] --------------------------------------------------------------------------

I treid differnt ways to reslove this issue. Finally got this working with
courier-imap 4.x with tcpserver but only I need to run courier-authlib
service. Bleow is how I configured

-----------------------START--------------------------------------------
Used: 4.0.2 (tar.bz2)
courier-authlib-0.53

Extracting
bunzip2 courier-authlib-0.53.tar.bz2
tar xvf courier-authlib-0.53.tar
./configure --with-redhat
./configure --prefix=/usr/local/courier-authlib --without-authpam
--without-authpwd --without-authmysql --without-authpgsql
--without-authshadow --without-authuserdb --without-authcram
--without-authdaemon --without-authvchkpw --with-mailuser=vmail
--with-mailgroup=vmail --with-redhat
# I am see no differnece with and without --without-authdaemon
make
make install
make install-configure

bunzip2 courier-imap-4.0.2.tar.bz2
tar xvf courier-imap-4.0.2.tar

./configure --prefix=/usr/local/courier-imap --disable-root-check
--with-redhat
COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig
CPPFLAGS=-I/usr/local/courier-authlib/include

make
make install
make install-configure


edit /usr/local/courier-authlib/etc/authlib/authdaemonrc for enabling logging if required edit /usr/local/courier-authlib/etc/authlib/authldaprc for ldap options

LDAP_GLOB_UID           vmail
LDAP_GLOB_GID           vmail
LDAP_HOMEDIR            mailMessageStore
LDAP_MAILROOT           /mail
LDAP_CRYPTPW            userPassword
LDAP_MAIL       uid

Change other entries if required

# beware of  tabs and spaces.

Add authlib to service
cp /usr/local/src/courier-authlib-0.55/courier-authlib.sysvinit
/etc/init.d/courier-authlib
chkconfig --add courier-authlib

mkdir -p /var/qmail/supervise/courier-imap/log

mkdir -p /var/log/qmail/courier-imap

chown qmaill /var/log/qmail/courier-imap

Create a file /var/qmail/supervise/courier-imap/run and with following
entries

----------------------------------------------------------------------------
#!/bin/sh

exec_prefix=/usr/local/courier-imap

. /usr/local/courier-imap/etc/imapd

exec /usr/local/bin/tcpserver -v -R -H -l 0 -x /etc/tcp.smtp.cdb  -c 100
0.0.0.0 imap ${exec_prefix}/sbin/imaplogin ${exec_prefix}/bin/imapd
Maildir  2>&1
----------------------------------------------------------------------------


Create a file /var/qmail/supervise/courier-imap/log/run with following entries

------------------------------------------------------------------------
#!/bin/sh

exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/courier-imap

------------------------------------------------------------------------------------------------------

Change the permissions

chmod 755 /var/qmail/supervise/courier-imap/run
chmod 755 /var/qmail/supervise/courier-imap/log/run
ln -s /var/qmail/supervise/courier-imap /service

Change the qmailctl file (if the script file has already courier skip this)

Add the following to qmailctl's "start" section:

if svok /service/courier-imap ; then
      svc -u /service/courier-imap /service/courier-imap/log
else
     echo courier-imap supervise not running
fi


Ad the following to qmailctl's "stop" section:

echo " courier-imap "
svc -d /service/courier-imap /service/courier-imap/log

Add the following to qmailctl's "stat" section:

svstat /service/courier-imap
svstat /service/courier-imap/log

Add the following to qmailctl's "pause" section:

echo "Pausing courier-imap "
svc -p /service/courier-imap

Add the following to qmailctl's "cont" section:

echo "Continuing courier-imap "
svc -c /service/courier-imap

Add the following to qmailctl's "restart" section:

echo "* Restarting courier-imap."
svc -t /service/courier-imap /service/courier-imap/log

------------------------------END ----------------------------------

Hope this help

Thanks
Kaliki



I have a similar problem. Triying to upgrade from 3.0.X to 4.0.X my


tcpserver courier-imap service doesnt work. Talking in courier-imap
mailist It seems you can not authenticate users like allways , using
auth_imap binary from qmail-ldap. Now you have to use authlib from
courier-imap, no other way. If someone find a smart solution to use
courier-imap 4.0.x with tcpserver like allways it will be very
apreciated.




Can any one help how to configure courier-imap 4.02 with qmail-ldap.

I have installed courier-imap and courier-authlib as below
------------------------------------------------------------------------


courier-authlib-0.53


bunzip2 courier-authlib-0.53.tar.bz2
tar xvf courier-authlib-0.53.tar
./configure --with-redhat
./configure --prefix=/usr/local/courier-authlib --without-authpam


--without-authpwd --without-authmysql --without-authpgsql


--without-authshadow --without-authuserdb --without-authcram
--without-authdaemon --without-authvchkpw --with-mailuser=vmail


--with-mailgroup=vmail --with-redhat


make
make install
make install-configure

bunzip2 courier-imap-4.0.2.tar.bz2
tar xvf courier-imap-4.0.2.tar

./configure --prefix=/usr/local/courier-imap --disable-root-check


--with-redhat


COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig


CPPFLAGS=-I/usr/local/courier-authlib/include


make
make install
make install-configure

----------------------------------------------------------------

Can any one help me how to proceed from here I have qmail-ldap running


with pop3 successfully.


Any help is greatly appreciated .

Thanks

Kaliki














Reply via email to