Sorry,

I have courier running with no problem...

My version is courier 3.0.7 and 3.0.8 in another system. The only problem is to change the path to the binaries. I paste my run scripts:

For IMAPD:
#!/bin/sh
exec 2>&1
#
# IMAP service: this script is for courier-imap
#
QMAIL="/var/qmail"
ME=$(head -1 $QMAIL/control/me)
ALIASEMPTY=$(head -1 $QMAIL/control/aliasempty 2> /dev/null)
ALIASEMPTY=${ALIASEMPTY:="./Maildir/"}

PATH="$QMAIL/bin:$PATH"

# source the environemt in ./env
eval `env - /usr/local/bin/envdir ./env awk '\
BEGIN { for (i in ENVIRON) printf "%s=\"%s\"\n", i, ENVIRON[i] }'`

# enforce some sane defaults
# COURIER=${COURIER:="/usr/local"}
COURIER=${COURIER:="/usr/local/courier"}
#!/bin/sh
exec 2>&1
#
# IMAP service: this script is for courier-imap
#
QMAIL="/var/qmail"
ME="`head -1 $QMAIL/control/me`"
if [ -e $QMAIL/control/defaultdelivery ]; then
        ALIASEMPTY=`head -1 $QMAIL/control/defaultdelivery 2> /dev/null`
else
        ALIASEMPTY=`head -1 $QMAIL/control/aliasempty 2> /dev/null`
fi
ALIASEMPTY=${ALIASEMPTY:="./Maildir/"}

PATH="$QMAIL/bin:$PATH"

# source the environemt in ./env
eval `env - PATH=$PATH envdir ./env awk '\
        BEGIN { for (i in ENVIRON) \
                if (i != "PATH") { \
                        printf "export %s=\"%s\"\\n", i, ENVIRON[i] \
                } \
        }'`

# enforce some sane defaults
COURIER=${COURIER:="/usr/local/courier"}
TLSCERT=${TLSCERT:="$QMAIL/control/cert.pem"}
PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbsadd"}

if [ X${NOPBS+"true"} = X"true" ]; then
        unset PBSTOOL
fi

exec \
        tcpserver -v -HRl $ME -x$QMAIL/control/qmail-imapd.cdb \
            ${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} \
            -s ${TLSCERT:+"-n$TLSCERT"} 0 imaps \
        $COURIER/libexec/courier/imaplogin \
        $QMAIL/bin/auth_imap ${PBSTOOL:+"-d$PBSTOOL"}\
        $COURIER/bin/imapd "$ALIASEMPTY"

exec envdir ./env \
tcpserver -v -HRl $ME -x$QMAIL/control/qmail-imapd.cdb \
${CONCURRENCY+"-c$CONCURRENCY"} ${BACKLOG+"-b$BACKLOG"} 0 imap \
$COURIER/libexec/courier/imaplogin \
$QMAIL/bin/auth_imap \
$COURIER/bin/imapd "$ALIASEMPTY"



For IMAPDs:


Hope you enjoy it! :) Saxa


Aiko Barz wrote:
On Tue, Nov 02, 2004 at 10:15:27AM -0800, Andreas Stollar wrote:

On topic though, I replaced the entire Courier-imap authentication part
with the auth_imap binary that comes with qmail-ldap. Using this, I have
no problems with Courier-3.X.


I tried to get courier-imap-3.0.8.20041103 working within qmail, but I
failed. That's what I discovered:

- You need courier-authlib to compile courier-imap
- imaplogin takes exactly 2 arguments or _fails_.
-> "imaplogin auth_imap imapd Maildir" has 3 arguments.
-> imapd.rc/imapd-ssl.rc look like this:
"/xyz/imaplogin /xyz/imapd ${MAILDIRPATH}"


Seems like there is no space for auth_ldap anymore...

Bis denne,
        Aiko

Reply via email to