Re: tcpsvd fails where tcpserver works

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Mon, Dec 01, 2003 at 01:05:20PM +0000, Payal Rathod wrote:
> I am trying to use tcpsvd in place of tcpserver for a test machine. It
> is Mandrake Linux 9.2 machine and ipsvd-0.7.0 is used.
> I am trying to configure qscanq for qmail. I have in my run file,
> 
> #!/bin/sh
> exec 2>&1
> #exec /usr/local/bin/softlimit -m 20000000 /usr/local/bin/tcpsvd -i ./peers -v -l0 0 25 /var/qmail/bin/qmail-smtpd
> exec /usr/local/bin/softlimit -m 20000000 /usr/local/bin/tcpsvd -x tcp.cdb -v -l0 0 25 /var/qmail/bin/qmail-smtpd
> 
> In my peer/127.0.0.1 file I have,
> # cat 127.0.0.1
> +RELAYCLIENT=
> +QMAILQUEUE="/package/mail/qscanq/command/qscanq"
> 
> Now when I try to send a mail, I get an error like,
[...]
> 451 unable to exec qq (#4.3.0)

> When I switched to tcpserver I could get it running in a jiffy. My 
> tcp.smtp line for tcpserver was,
> 
> 127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/package/mail/qscanq/command/qscanq"
> 192.168.:allow,RELAYCLIENT="",QMAILQUEUE="/package/mail/qscanq/command/qscanq"
> 
> What am I missing here? Can someone give me some pointers on this please?

You must not quote values for environment variables with ipsvd; no need
for that since it reads instructions line-by-line.  The quotes become
part of the value.  Make it

 # cat 127.0.0.1
 +RELAYCLIENT=
 +QMAILQUEUE=/package/mail/qscanq/command/qscanq

and it should work.

Regards, Gerrit.
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.