Re: Problems switching from tcpserver to tcpsvd

Rajkumar s <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Mon, 7 Mar 2005 13:12:24 +0000, Gerrit Pape <[email protected]> wrote:
> On Sun, Mar 06, 2005 at 02:48:44PM +0530, Rajkumar s wrote:
> >           I had added the -u qmaild:nofiles option in the run file ,
> > But the problem still persists , its repeatedly asking for password
> > when i configure the account in outlook express and tried sending
> > mails.
> 
> I suggest to test by other means than using the mail client to find out
> what's going on; probably the patch to qmail you use includes some
> documentation on how to test its functionality.
> 
> > I too think that the following lines exit 1
> >    /Programs/Qmail/1.03/bin/qmail-smtpd \
> >    /Programs/Qmail/1.03/bin/checkpassword /bin/true 2>&1
> 
> > run file is provided below:
> >
> > exec tcpsvd -vv -t1800 \
> >    -c100 -C'10:421 per host concurrency limit reached\r\n' \
> >    -i/Programs/Qmail/1.03/etc/smtp \
> >    -u qmaild:nofiles 202.144.28.164 25 \
> >    /Programs/Qmail/1.03/bin/qmail-smtpd \
> >    /Programs/Qmail/1.03/bin/checkpassword /bin/true 2>&1
> 
> You could check whether the ipsvd instruction work as indended by
> dumping the environment to the log, with tcpsvd, and with tcpserver, to
> compare them, e.g.
> 
>  exec tcpsvd -vv -t1800 \
>     -c100 -C'10:421 per host concurrency limit reached\r\n' \
>     -i/Programs/Qmail/1.03/etc/smtp \
>     -u qmaild:nofiles 202.144.28.164 25 \
>     sh -c 'env >&2; exec /Programs/Qmail/1.03/bin/qmail-smtpd \
>     /Programs/Qmail/1.03/bin/checkpassword /bin/true' 2>&1
> 
> Or dump and compare a system call trace, e.g. under linux
> 
>  exec tcpsvd -vv -t1800 \
>     -c100 -C'10:421 per host concurrency limit reached\r\n' \
>     -i/Programs/Qmail/1.03/etc/smtp \
>     -u qmaild:nofiles 202.144.28.164 25 \
>     strace -f -o/tmp/trace /Programs/Qmail/1.03/bin/qmail-smtpd \
>     /Programs/Qmail/1.03/bin/checkpassword /bin/true 2>&1
> 
> HTH, Gerrit.
> 

Dear sir,
        I had  dumped all those to logs , but from the logs i found
the the message "access denied" , will there may be any permission
problems.

I tried establing connection using telnet 202.144.28.164 25

Log messages are provided below:

2005-03-09_06:03:42.21809 tcpsvd: info: status 1/100
2005-03-09_06:03:42.21814 tcpsvd: info: pid 7202 from 59.92.0.74
2005-03-09_06:03:42.21858 tcpsvd: warning: unable to unlink:
/Programs/Qmail/1.03/etc/smtp/0: access denied
2005-03-09_06:03:42.21861 tcpsvd: info: concurrency 7202 59.92.0.74 1/10
2005-03-09_06:03:42.21861 tcpsvd: info: start 7202
mail.tenet.res.in:202.144.28.164 ::59.92.0.74:1286
2005-03-09_06:03:42.22092 CONSOLE=/dev/console
2005-03-09_06:03:42.22093 TERM=linux
2005-03-09_06:03:42.22093 TCPLOCALHOST=mail.tenet.res.in
2005-03-09_06:03:42.22094 INIT_VERSION=sysvinit-2.84
2005-03-09_06:03:42.22094 PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
2005-03-09_06:03:42.22094 vga=0
2005-03-09_06:03:42.22094 RUNLEVEL=3
2005-03-09_06:03:42.22095 PWD=/Programs/Qmail/1.03/supervise/qmail-smtpd
2005-03-09_06:03:42.22095 TCPCONCURRENCY=1
2005-03-09_06:03:42.22095 PROTO=TCP
2005-03-09_06:03:42.22095 TCPREMOTEIP=59.92.0.74
2005-03-09_06:03:42.22096 PREVLEVEL=N
2005-03-09_06:03:42.22096 acpi=off
2005-03-09_06:03:42.22096 TCPLOCALPORT=25
2005-03-09_06:03:42.22097 TCPLOCALIP=202.144.28.164
2005-03-09_06:03:42.22097 HOME=/
2005-03-09_06:03:42.22097 SHLVL=1
2005-03-09_06:03:42.22097 TCPREMOTEPORT=1286
2005-03-09_06:03:42.22098 _=/usr/local/sbin/env
2005-03-09_06:04:13.30936 tcpsvd: info: end 7202 exit 111
2005-03-09_06:04:13.30940 tcpsvd: info: status 0/100


2005-03-09_06:05:54.20285 tcpsvd: info: status 1/100
2005-03-09_06:05:54.20295 tcpsvd: info: pid 7229 from 202.144.28.163
2005-03-09_06:05:54.20342 tcpsvd: warning: unable to unlink:
/Programs/Qmail/1.03/etc/smtp/202.144.28.163: access denied
2005-03-09_06:05:54.20346 tcpsvd: warning: unable to unlink:
/Programs/Qmail/1.03/etc/smtp/0: access denied
2005-03-09_06:05:54.20348 tcpsvd: info: concurrency 7229 202.144.28.163 1/10
2005-03-09_06:05:54.20348 tcpsvd: info: start 7229
mail.tenet.res.in:202.144.28.164 ::202.144.28.163:51272
2005-03-09_06:05:54.20579 CONSOLE=/dev/console
2005-03-09_06:05:54.20580 TERM=linux
2005-03-09_06:05:54.20581 TCPLOCALHOST=mail.tenet.res.in
2005-03-09_06:05:54.20581 INIT_VERSION=sysvinit-2.84
2005-03-09_06:05:54.20581 PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
2005-03-09_06:05:54.20581 vga=0
2005-03-09_06:05:54.20582 RUNLEVEL=3
2005-03-09_06:05:54.20582 PWD=/Programs/Qmail/1.03/supervise/qmail-smtpd
2005-03-09_06:05:54.20582 TCPCONCURRENCY=1
2005-03-09_06:05:54.20582 PROTO=TCP
2005-03-09_06:05:54.20583 TCPREMOTEIP=202.144.28.163
2005-03-09_06:05:54.20583 PREVLEVEL=N
2005-03-09_06:05:54.20583 acpi=off
2005-03-09_06:05:54.20583 TCPLOCALPORT=25
2005-03-09_06:05:54.20584 TCPLOCALIP=202.144.28.164
2005-03-09_06:05:54.20584 HOME=/
2005-03-09_06:05:54.20584 SHLVL=1
2005-03-09_06:05:54.20584 TCPREMOTEPORT=51272
2005-03-09_06:05:54.20585 _=/usr/local/sbin/env
2005-03-09_06:05:54.49501 tcpsvd: info: end 7229 exit 111
2005-03-09_06:05:54.49502 tcpsvd: info: status 0/100

On including strace option in run file and  when i tried to establish
smtp connection , i',m getting the response as "connection  to the
host lost" , So i couldn't using strace option.

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.