sato x wrote:
The content of the ~/control/qmail-smtpd.rules is
           :allow,NOPBS=""

I've just added it to become
            127.:allow,RELAYCLIENT=""
            :allow,NOPBS=""

Ok.


then ran the make command
          [EMAIL PROTECTED] smtpd]# make
           /usr/local/bin/tcprules tcp.cdb tcp.tmp < tcp

Ok, but you created tcp.cdb and you want to update /var/qmail/control/qmail-smtpd.cdb (look at your run file).
cd /var/qmail/control and then run make.
After that, relaying work only if you try to send mail from 127.*.*.*

( For now I don't use auth for smtp, but later I will. I see an application in /var/qmail/bin, named auth_smtp, I guess that what people usually use with their qmail-ldap server. I will learn how to use it. )

Update your run file to use auth_smtp.


Below is my /service/smtpd/run file:

#!/bin/sh

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

You don't need above lines with this run files as your run file is not referring to PBSTOOL


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"} \
        -x/var/qmail/control/qmail-smtpd.cdb \
        -- "${IP-0}" "${PORT-25}" \
    /var/qmail/bin/qmail-smtpd
'

What does logs say? (just to ensure which IP you are trying from)

--
Best Regards,

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

Reply via email to