Problems switching from tcpserver to tcpsvd

Rajkumar s <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
Dear sir,
          I had installed qmail and presently i'm using tcpserver for
listening incoming connections and i need to switch to tcpsvd , but
while switching i found some difficulties.

The tcprules-smtp file has these rules

127.:allow,RBLSMTPD="",RELAYCLIENT="",NOSPP="",QMAILQUEUE="bin/qmail-queue.scan"
202.144.28.163:allow,RBLSMTPD="",RELAYCLIENT="",NOSPP="",QMAILQUEUE="bin/qmail-queue.scan"
:allow,SPF="1",MAXBOUNCERCPTS="1",QMAILQUEUE="bin/qmail-queue.scan"

The tcpserver which listens for incoming connections invokes the
qmail-smtpd , i had configured qmail with auth smtp ,

The File is shown below and this works fine

exec /Programs/Daemontools/0.76/bin/softlimit -m 4000000              
                 \
     /Programs/Ucspi-tcp/0.88/bin/tcpserver -HDRv -l `head -1
/Programs/Qmail/1.03/control/me`   \
     -x /Programs/Qmail/1.03/control/tcprules-smtp.cdb -c 40          
                \
     -u `id -u qmaild` -g `id -g qmaild` 0 25                                 \
     /Programs/Ucspi-tcp/0.88/bin/rblsmtpd $RBLS                      
                 \
     /Programs/Qmail/1.03/bin/qmail-smtpd
/Programs/Qmail/1.03/bin/checkpassword /bin/true 2>&1

In the process of switching to tcpsvd from tcpserver , I had followed
these steps


Step 1:

created the directory for instructions as

mkdir /Programs/Qmail/1.03/etc/smtp

127.:allow,RBLSMTPD="",RELAYCLIENT="",NOSPP="",QMAILQUEUE="bin/qmail-queue.scan"

echo '+RBLSMTPD='  >  /Programs/Qmail/1.03/etc/smtp/127
echo '+RELAYCLIENT=' >> /Programs/Qmail/1.03/etc/smtp/127
echo '+NOSPP=' >> /Programs/Qmail/1.03/etc/smtp/127
echo '+QMAILQUEUE=bin/qmail-queue.scan' >> /Programs/Qmail/1.03/etc/smtp/127

202.144.28.163:allow,RBLSMTPD="",RELAYCLIENT="",NOSPP="",QMAILQUEUE="bin/qmail-queue.scan"

echo '+RBLSMTPD='  >  /Programs/Qmail/1.03/etc/smtp/202.144.28.163
echo '+RELAYCLIENT=' >> /Programs/Qmail/1.03/etc/smtp/202.144.28.163
echo '+NOSPP=' >> /Programs/Qmail/1.03/etc/smtp/202.144.28.163
echo '+QMAILQUEUE=bin/qmail-queue.scan' >>
/Programs/Qmail/1.03/etc/smtp/202.144.28.163

:allow,SPF="1",MAXBOUNCERCPTS="1",QMAILQUEUE="bin/qmail-queue.scan"

echo '+SPF=1' > /Programs/Qmail/1.03/etc/smtp/0
echo '+MAXBOUNCERCPTS=1' >> /Programs/Qmail/1.03/etc/smtp/0
echo '+QMAILQUEUE=bin/qmail-queue.scan' >> /Programs/Qmail/1.03/etc/smtp/0

Do i append the remaining Ip to 0 or do i have to do something.
Is this step correct?

Step 2:

chmod 644 /Programs/Qmail/1.03/etc/smtp/*

The tcpsvd program which is used to listen incoming connection is shown below.

#! /System/Links/Executables/bash

exec tcpsvd -vv -t1800 \
   -c100 -C'10:421 per host concurrency limit reached\r\n' \
   -i/Programs/Qmail/1.03/etc/smtp \
   0 25 \
   /Programs/Qmail/1.03/bin/qmail-smtpd \
   /Programs/Qmail/1.03/bin/checkpassword /bin/true 2>&1

After starting the tcpsvd using the runsv , i could send mails from
command line using
telnet 202.144.28.164 25

But i encounter problems when i tried sending mails through some mail
client like outlook express from some other Ip range, it is repeatedly
asking for password.

Where have i went wrong? Kindly help me out .

(:allow,SPF="1",MAXBOUNCERCPTS="1",QMAILQUEUE="bin/qmail-queue.scan")

Kindly provide the equivalent instructions for this rule .

The smtp Logs are shown below


Unsuccessful:

When sending mail from this domain to outside configuring the account
in mail client or sending to the same domain itself

2005-03-05_21:30:15.31786 tcpsvd: info: pid 14209 from 59.92.8.61
2005-03-05_21:30:15.31833 tcpsvd: info: concurrency 14209 59.92.8.61 1/10
2005-03-05_21:30:15.31833 tcpsvd: info: start 14209
mail.tenet.res.in:202.144.28.164 ::59.92.8.61:1059
2005-03-05_21:30:27.43291 tcpsvd: info: end 14209 exit 1
2005-03-05_21:30:27.43292 tcpsvd: info: status 0/100

Successful:

When send a mail from remote domain to this domain

2005-03-05_21:38:21.44576 tcpsvd: info: status 1/100
2005-03-05_21:38:21.44581 tcpsvd: info: pid 14374 from 203.199.69.181
2005-03-05_21:38:21.44627 tcpsvd: info: concurrency 14374 203.199.69.181 1/10
2005-03-05_21:38:21.44627 tcpsvd: info: start 14374
mail.tenet.res.in:202.144.28.164 ::203.199.69.181:37576
2005-03-05_21:38:21.84405 tcpsvd: info: end 14374 exit 0

Sincerely,
S.Rajkumar.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.