Qmail-LDAP
[Top] [All Lists]

Re: qmail-ldap installation FAILURE again and again and .....

To: qmail-ldap@qmail-ldap.org
Subject: Re: qmail-ldap installation FAILURE again and again and .....
From: "sato x" <gladiol4@gmail.com>
Date: Fri, 2 Mar 2007 09:04:07 +0700
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=thHTtg8EyHC1Id3HfGOlfb5IsT9AwWXaW9DRwWJ1DyLdQ5ai+Jy52oMjDUlB8nc7HyrSMx0zA8gLxplex4SgwVkyB5ctTHeX4ZGST9n8ATpdKnmHN6rPLbBaXj7171fGu6tvKsGYUnLhGXEOWyZIYvnAqvzB/VisGouTHQ9gpxI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YNj4liJl4+GWNBmC9BMUZUnuZbCIeM//DKC0SpiYRKG69pNeqJbILaZK7SBcDisCUjh9fY3T8DPZYxNaDZdfmOjL1M1GnHL5mKwTBc9NIwuDbFiVENAQ7MMNEdXIOY1txFLZmbrK7dYD+2Dfn4U5/umx2o9NER/swM42DURRhQQ=
In-reply-to: <45E6E591.4010007@proscrutiny.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <f5ba7b270702271958x60fc5d0u1bf188440188bc3@mail.gmail.com> <f5ba7b270702281904k3adca764u766d815fde19c850@mail.gmail.com> <45E664E6.9050408@proscrutiny.com> <f5ba7b270702282301o6f275bb5rcc45c125519557c9@mail.gmail.com> <45E68539.8060903@proscrutiny.com> <f5ba7b270703010209o746b9727gfa37664d3a2ba171@mail.gmail.com> <45E6AE5B.9010008@proscrutiny.com> <45E6B116.6080704@proscrutiny.com> <f5ba7b270703010538x6d374420hd610f6fae81aa8ee@mail.gmail.com> <45E6E591.4010007@proscrutiny.com>
Hi Sameer ( and guys),
   I'm sorry for the double posting - I'll be more careful next time.  By the way, I don't have any PBSTOOL line in my /var/qmail/service/smtpd/run file. Here is my ~/smtpd/run :

#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c '
    case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
    case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
    exec \
    envuidgid qmaild \
    softlimit ${DATALIMIT+"-d$DATALIMIT"} \
    /usr/local/bin/tcpserver \
   -vDU"$H$R" \
        ${LOCALNAME+"-l$LOCALNAME"} \
        ${BACKLOG+"-b$BACKLOG"} \
        ${CONCURRENCY+"-c$CONCURRENCY"} \
        -xtcp.cdb \
        -- "${IP-0}" "${PORT-25}" \
    /var/qmail/bin/qmail-smtpd
'

But for ~/control/qmail-smtpd.rules, I changed it into
     :allow,NOPBS=""

then ran make command
    [root@mail control]# make
    tcprules qmail-smtpd.cdb rules.tmp < qmail-smtpd.rules

###
About the LDAP credentials, you're right. I miss-typed the Manager password with my password. I already changed it last night. The error message that I get in /var/qmail/service/qmail/log/main/current now is

@4000000045e7659135ec199c status: local 1/10 remote 0/20
@4000000045e7659138623a1c delivery 27: deferral: Unable_to_switch_to_/var/qmail/maildirs/sato.br/:_file_does_not_exist._(#4.3.0)/

I can not run
  su vmail -c '/var/qmail/bin/dirmaker.sh sato.br'

The script in dirmaker.sh
    #!/bin/sh
    /var/qmail/bin/maildirmake $1/

I also tried with
    #!/bin/sh
    /bin/mkdir -m 700 -p $1/Maildir
    /bin/mkdir -m 700 -p $1/Maildir/new
    /bin/mkdir -m 700 -p $1/Maildir/cur
    /bin/mkdir -m 700 -p $1/Maildir/tmp

The last dirmaker.sh script came from /www.qmail-ldap.org/wiki/Full_Installation_Guide_-_Basic_Qmail_Installation
I follow all the direction in this site and only added one configuration for pop3, since they didn't include a pop3 installation there. I used the qmail-pop3d-conf tool for that purpose and ran a similar command with their qmail-delivery or qmail-smtpd configuration.

Another information
*   cat ./control/defaultdelivery  =>             ./Maildir/
*   cat ./control/dirmaker           =>              /var/qmail/bin/dirmaker.sh
*   ll /var/qmail/bin
     # bla bla bla...
     -rwxr-xr-x  1 vmail  vmail   224 Mar  1 20:27 dirmaker.sh 
    
 * ldapsearch -x uid=sato
    # bla bla bla...
    uid: sato
    homeDirectory: /home/sato
    mail: sato.br@domain.co.id
    accountStatus: active
    mailHost: mail.domain.co.id
    deliveryMode: noforward
    mailMessageStore: /var/qmail/maildirs/sato.br/
   
    # I also tried with
    mailMessageStore: /var/qmail/maildirs/sato.br    # or
    mailMessageStore: sato.br

 * cat /usr/local/src/qmail-1.03/qmail-ldap.h
     #define LDAP_HOMEDIR            "homeDirectoryfake"
###

Below is my /service/pop3d/run

#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c '
    case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
    case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
    exec \
    softlimit ${DATALIMIT+"-d$DATALIMIT"} \
    /usr/local/bin/tcpserver \
        -vD"$H$R" \
        ${LOCALNAME+"-l$LOCALNAME"} \
        ${BACKLOG+"-b$BACKLOG"} \
        ${CONCURRENCY+"-c$CONCURRENCY"} \
        -xtcp.cdb \
        -- "${IP-0}" "${PORT-110}" \
    /var/qmail/bin/qmail-popup "${POPUPHOST-`sed 1q /var/qmail/control/me`}" \
    /var/qmail/bin/auth_pop \
    /var/qmail/bin/qmail-pop3d "${MAILDIRNAME-Maildir}"
'
I can see a tcp.cdb in /var/qmail/service/smtpd/ directory.

I hope you don't  mind with all the bunch of information I put in this email. Thank you for your kindness.

Best Regards,

sato



On 3/1/07, Sameer N Ingole <strike@proscrutiny.com> wrote:
Please reply to list only. Don't hit reply-all (or whatever).
I am getting 2 copies for each reply.

sato x wrote:
> pbscheck unable to read controls

There.. that is your first problem.
check in smtpd/run file for something like this:
--- from run file ---
PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbscheck"}

if [ X${NOPBS+"true"} = X"true" ]; then
        unset PBSTOOL
fi
--- end from run file ---
if it is there.. then leave it unchanged.
Check your controls/qmail-smtpd.rules file
add
,NOPBS=""
to all lines of that file if you do not want pop-before-smtp for sending
mails..

then run make command in that directory.
> and in /var/qmail/service/qmail/log/main/current
>
> @4000000045e6b24c186e2c5c delivery 7: deferral: \
> Unable_to_login_into_LDAP_server,_bad_credentials._(#4.4.3)/
Your LDAP server credentials are not correct, fix it.
> [root@mail qmail]# cat ./service/pop3d/log/main/current
> @4000000045e6c0812ac1ee34 tcpserver: warning: dropping connection,
> unable to read tcp.cdb: file does not exist

Post your /service/pop3d/run file.

Best Regards,

Sameer N. Ingole
http://weblogic.noroot.org/gallery2/
Better to light one candle than to curse the darkness.

<Prev in Thread] Current Thread [Next in Thread>