imap with qmail-ldap

Friedrich Locke <[email protected]> Tue, 15 Apr 2014 09:07:27 -0300
Newsgroups gmane.mail.qmail.ldap
Message-ID <CANMDHqc-+5TuE-EegSCDiu6rcS7rf_53dbKPSboJrmzTZfb61Q@mail.gmail.com>
--089e0160b870c613dd04f713a460
Content-Type: text/plain; charset=UTF-8

Hi folks,

i am trying to run imap (i choose courier imap) and when i try to connect
to it, all i got was:

obsd# telnet obsd imap2
Trying 200.235.128.97...
Connected to obsd.
Escape character is '^]'.
* BYE imaplogin expected exactly two arguments.
Connection closed by foreign host.
obsd#

And what sounds strange is that i am running qmail-imap. qmail-imap/run is:

#!/bin/sh
exec 2>&1
#
# IMAP service: this script is for courier-imap
#
QMAIL="/var/qmail"
CONCURRENCY=500
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:="./Inbox/"}

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"}
PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbsadd"}

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

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


May someone clarify what is happening ?

Thank you for your time and cooperation.

--089e0160b870c613dd04f713a460
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Hi folks,<br><br></div>i am trying to =
run imap (i choose courier imap) and when i try to connect to it, all i got=
 was:<br><br>obsd# telnet obsd imap2 <br>Trying 200.235.128.97...<br>Connec=
ted to obsd.<br>
Escape character is &#39;^]&#39;.<br>* BYE imaplogin expected exactly two a=
rguments.<br>Connection closed by foreign host.<br>obsd# <br><br></div>And =
what sounds strange is that i am running qmail-imap. qmail-imap/run is:<br>
<br>#!/bin/sh<br>exec 2&gt;&amp;1<br>#<br># IMAP service: this script is fo=
r courier-imap<br>#<br>QMAIL=3D&quot;/var/qmail&quot;<br>CONCURRENCY=3D500<=
br>ME=3D&quot;`head -1 $QMAIL/control/me`&quot;<br>if [ -e $QMAIL/control/d=
efaultdelivery ]; then<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ALIASEMPTY=3D`head -1 $QMAIL/con=
trol/defaultdelivery 2&gt; /dev/null`<br>else<br>=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 ALIASEMPTY=3D`head -1 $QMAIL/control/aliasempty 2&gt; /d=
ev/null`<br>fi<br>ALIASEMPTY=3D${ALIASEMPTY:=3D&quot;./Inbox/&quot;}<br><br=
>
PATH=3D&quot;$QMAIL/bin:$PATH&quot;<br><br># source the environemt in ./env=
<br>eval `env - PATH=3D$PATH envdir ./env awk &#39;\<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 BEGIN { for (i in ENVIRON) \<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if=
 (i !=3D &quot;PATH&quot;) { \<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 printf &quot;export %s=3D\&quot;%s\&quot;\\n&quot;=
, i, ENVIRON[i] \<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 } \<br><br># enforce some sane defaults<br>COURIER=3D${COUR=
IER:=3D&quot;/usr/local&quot;}<br>PBSTOOL=3D${PBSTOOL:=3D&quot;$QMAIL/bin/p=
bsadd&quot;}<br><br>if [ X${NOPBSR+&quot;true&quot;} =3D X&quot;true&quot; =
]; then<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unset PBSTOOL<br>fi<br><br>exec =
\<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tcpserver -v -HRl $ME -x$QM=
AIL/control/qmail-imapd.cdb \<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 ${CONCURRENCY:+&quot;-c$CONCURRENCY&quot;} ${BACKL=
OG:+&quot;-b$BACKLOG&quot;} 0 imap \<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 $COURIER/sbin/imaplogin \<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $QMAIL/bin/auth_imap ${PBSTOOL:+=
&quot;-d$PBSTOOL&quot;} \<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $CO=
URIER/bin/imapd &quot;$ALIASEMPTY&quot;<br><br><br></div>May someone clarif=
y what is happening ?<br><br></div>Thank you for your time and cooperation.=
<br>
</div>

--089e0160b870c613dd04f713a460--