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: Sameer N Ingole <strike@proscrutiny.com>
Date: Fri, 02 Mar 2007 11:30:19 +0530
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <f5ba7b270703011804x3030502dm65597af6c26a51f4@mail.gmail.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> <f5ba7b270703011804x3030502dm65597af6c26a51f4@mail.gmail.com>
User-agent: Thunderbird 1.5.0.5 (X11/20060719)
Dear Sato,
sato x wrote:
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

Add this above exec:

PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbscheck"}
if [ X${NOPBS+"true"} = X"true" ]; then
       unset PBSTOOL
fi

Make sure where is your pbscheck file.

    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 \

Look at the above line:
-xtcp.cdb \

Change it to:
-xqmail-smtpd.cdb

here I am assuming your run script knows where qmail-smtpd.cdb is. Else you may want to specify absolute path to qmail-smtpd.cdb like this:
-x/path/to/qmail-smtpd.cdb

-x specifies the file from which tcpserver reads rules for every connection. Read manpage for tcpserver.

        -- "${IP-0}" "${PORT-25}" \
    /var/qmail/bin/qmail-smtpd
'

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

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

###
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
Fine.

@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 <http://sato.br>'

The script in dirmaker.sh
    #!/bin/sh
    /var/qmail/bin/maildirmake $1/
Not sure if this works. Someone may want to comment on it.

My dirmaker reads:

#!/bin/sh
/bin/mkdir -m 0700 -p $1

In my script -p specifies to create parent directories as well if not already created.


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 <http://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

No problem with this.

* ldapsearch -x uid=sato
    # bla bla bla...
    uid: sato
    homeDirectory: /home/sato
    mail: sato.br@domain.co.id <mailto:sato.br@domain.co.id>
    accountStatus: active
    mailHost: mail.domain.co.id <http://mail.domain.co.id>
    deliveryMode: noforward
    mailMessageStore: /var/qmail/maildirs/sato.br/

Hope you have password in that ldap entry.

# I also tried with
    mailMessageStore: /var/qmail/maildirs/sato.br    # or
    mailMessageStore: sato.br <http://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 \

Here too. -xtcp.cdb ??

check your control directory, I think it should be something like qmail-pop3d.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}"
'

--
Best Regards,

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


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