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