[qpsmtpd] 0.81 pre-fork - no joy - back to forkserver :-(

2009-05-20 Thread J
Thanks, JJ for all you've done to help, but I still have not gotten it to work. I took your init.d startup script (debian) and altered it for the CentOS (redhat) system I'm building (using 'daemon' rather than 'start-stop-daemon'). After taking care of a few minor issues, I gave it a start with:

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Charlie Brady
On Tue, 19 May 2009, J wrote: I reinstalled clean, from scratch. I changed my 'run' file to the following: #!/bin/sh exec 21 \ sh -c ' exec \ /usr/local/bin/softlimit -m 1 \ ${PERL-perl} -T ./qpsmtpd-prefork \ --port 25 \ --port 587

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread J
On Wed, 20 May 2009, Charlie Brady wrote: I changed my 'run' file to the following: #!/bin/sh exec 21 \ sh -c ' exec \ /usr/local/bin/softlimit -m 1 \ ${PERL-perl} -T ./qpsmtpd-prefork \ --port 25 \ --port 587 \

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread J
On Wed, 20 May 2009, Charlie Brady wrote: So try: #!/bin/sh exec 21 \ exec \ /usr/local/bin/softlimit -m 1 \ /usr/bin/perl -T ./qpsmtpd-prefork \ --port 25 \ --port 587 \ --children 30 \ --idle-children 5 \ --renice-parent

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread J
On Wed, 20 May 2009, J wrote: On Wed, 20 May 2009, Charlie Brady wrote: So try: #!/bin/sh exec 21 \ exec \ /usr/local/bin/softlimit -m 1 \ /usr/bin/perl -T ./qpsmtpd-prefork \ --port 25 \ --port 587 \ --children 30 \

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Matt Sergeant
On Wed, 20 May 2009, J wrote: I compared the run file with other run files (i.e. djbdns and qmail) and I think the problem is with the trailing ' \' on the 2nd line (the first exec). Indeed. That shouldn't be there. When I remove that (and installed a missing Math::BigInt package from

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Charlie Brady
On Wed, 20 May 2009, J wrote: On Wed, 20 May 2009, Charlie Brady wrote: So try: #!/bin/sh exec 21 \ exec \ /usr/local/bin/softlimit -m 1 \ ... ./run: line 2: exec: exec: not found Sorry, I cut and pasted without checking each line. You are asking shell to run this:

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Charlie Brady
On Thu, 21 May 2009, Matt Sergeant wrote: On Wed, 20 May 2009, J wrote: When I remove that (and installed a missing Math::BigInt package from CPAN), everything loads, but complains about an insecure dependency on line 416 in setpriority (in qpsmtpd-prefork). (And the prefork processes

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Matt Sergeant
On Wed, 20 May 2009, Charlie Brady wrote: Though it is probably a bug, I'm guessing we don't test with taint on. Perl taint mode is an underutilised gem. It is, but it's also buggy and annoying. (there's a completely ignored bug in perl with -T and hash keys which I filed months ago)

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread David Nicol
On Wed, May 20, 2009 at 10:28 PM, Matt Sergeant m...@sergeant.org wrote: (there's a completely ignored bug in perl with -T and hash keys which I filed months ago) Matt. that hash keys are never tainted is documented, if that's your bug. It allows for a quick and dirty sub detaint($){ [

Re: [qpsmtpd] Still looking: tcpserver startup for qpsmtpd-prefork 0.81

2009-05-20 Thread Matt Sergeant
On Wed, 20 May 2009, David Nicol wrote: On Wed, May 20, 2009 at 10:28 PM, Matt Sergeant m...@sergeant.org wrote: (there's a completely ignored bug in perl with -T and hash keys which I filed months ago) that hash keys are never tainted is documented, if that's your bug. It allows for a