I have installed qmail-ldap-20050401a, in a redhat linux 9, the smtp server is working fine, but when i try to connect to the pop3 server i get the error shown below:

2005-06-21 09:31:40.490993500 tcpserver: ok 4287 0:127.0.0.1:110 :127.0.0.1::32826 2005-06-21 09:31:40.514240500 tcpserver: warning: dropping connection, unable to run /var/qmail/bin/qmail-popup: exec format error
2005-06-21 09:31:40.514639500 tcpserver: end 4287 status 28416
2005-06-21 09:31:40.514684500 tcpserver: status: 0/200

I'm using the sample that comes with qmail-ldap to execute pop3:

#!/bin/sh
exec 2>&1
#
# POP3 service
#
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
PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbsadd"}

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

exec \
       tcpserver -v -HRl $ME -x$QMAIL/control/qmail-pop3d.cdb \
${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} 0 pop3 \
       $QMAIL/bin/qmail-popup $ME \
       $QMAIL/bin/auth_pop ${PBSTOOL:+"-d$PBSTOOL"} \
       $QMAIL/bin/qmail-pop3d "$ALIASEMPTY"

i have also tried with this one:

#!/bin/sh
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -v -R -H -l 0 -c 200 0 pop3 \
/var/qmail/bin/qmail-popup mail.acelerate.org \
/var/qmail/bin/auth_pop ${PBSTOOL:+"-d$PBSTOOL"}\
/var/qmail/bin/qmail-pop3d Maildir 2>&1

but i continue to receive the same error:

Any ideas of what can the problem be:

Reply via email to