> Hi,
>
> I'm trying to integrate courier-imap with qmail-ldap, but so far with no
> success :(
>
> I've been googling, but found no answer tho this questions.
>
> Let's see if i can make this compreensible.
>
> 1) i configured courier-imap with ldap support
>
> 2) When i run /usr/local/sbin/authdaemond, i get:
> [EMAIL PROTECTED] ~]# /usr/local/sbin/authdaemond
> Unknown option '-'
> [EMAIL PROTECTED] ~]#
>
> I looked through the config files, saw no "-" in the wild;
>
>
> 3) How is it supposed to integrate auth_imap in the puzzle ?
>
> 4) Should i also run authdaemond along with auth_imap ?
>
> 5) You canfind my authldaprc and authdaemonrc at:
> http://www.gamito.org/authldaprc.html
> http://www.gamito.org/authdaemonrc.html
I use qmail-ldap and courier-imap, and I don't bother to run the
authdaemon, I just go directly against /var/qmail/bin/auth_imap. It's been
so long since I did this, that I don't remember what was wrong with the
authaemon, but this works for me today. Below is my start script for
courier imap.
#!/bin/sh
#
# courier-imap Courier Imap
#
# chkconfig: 2345 80 30
# description: Courier Imap is an Imap program.
# $Id: imapd.rc.in,v 1.26 2004/04/18 15:54:38 mrsam Exp $
#
# Copyright 1998 - 2002 Double Precision, Inc.
# See COPYING for distribution information.
prefix=/usr/lib/courier-imap
exec_prefix=/usr/lib/courier-imap
bindir=${exec_prefix}/bin
libexecdir=/usr/lib/courier-imap/libexec
if test ! -f ${prefix}/etc/imapd
then
echo "${prefix}/etc/imapd does not exist, forgot make
install-configure?"
exit 1
fi
if test ! -f ${prefix}/etc/imapd-ssl
then
echo "${prefix}/etc/imapd-ssl does not exist, forgot make
install-configure?"
exit 1
fi
TLS_CACHEFILE=""
. ${prefix}/etc/imapd-ssl
. ${prefix}/etc/imapd
case $1 in
start)
LIBAUTHMODULES="/var/qmail/bin/auth_imap"
# for f in `echo $AUTHMODULES`
# do
# LIBAUTHMODULES="$LIBAUTHMODULES
/usr/lib/courier-imap/libexec/authlib/$f"
# done
# if test -x ${libexecdir}/authlib/authdaemond
# then
# /bin/env - DEBUG_LOGIN="$DEBUG_LOGIN"
${libexecdir}/authlib/authdaemond start
# fi
if test "$TLS_CACHEFILE" != ""
then
rm -f $TLS_CACHEFILE
fi
ulimit -v $IMAP_ULIMITD
/bin/env - /bin/sh -c " set -a ;
prefix=/usr/lib/courier-imap ;
exec_prefix=/usr/lib/courier-imap ;
bindir=${exec_prefix}/bin ;
libexecdir=/usr/lib/courier-imap/libexec ;
. ${prefix}/etc/imapd ; \
. ${prefix}/etc/imapd-ssl ; \
IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
/usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \
-stderrlogger=${exec_prefix}/sbin/courierlogger \
-stderrloggername=imapd \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
-pid=$PIDFILE $TCPDOPTS \
$PORT ${exec_prefix}/sbin/imaplogin $LIBAUTHMODULES \
${exec_prefix}/bin/imapd ${MAILDIRPATH}"
;;
stop)
/usr/lib/courier-imap/libexec/couriertcpd -pid=$PIDFILE -stop
if test -x ${libexecdir}/authlib/authdaemond
then
${libexecdir}/authlib/authdaemond stop
fi
;;
esac
exit 0