Ok, well I figured out the problem, the CHANGES.spamproxy says it requires *3*
parameters, when the code was looking for just 2. Here's a patch that fixes
this:

--- spamproxyd.raw.old  Sat Apr  6 12:47:14 2002
+++ spamproxyd.raw      Thu May 30 17:35:08 2002
@@ -61,14 +61,10 @@
            "minperchild=n" => \$minperchild,
            "maxperchild=n" => \$maxperchild) or die $syntax;

-die $syntax unless @ARGV == 2;
+die $syntax unless @ARGV == 3;
 my ($srcaddr, $srcport) = split /:/, $ARGV[0];
 my ($dstaddr, $dstport) = split /:/, $ARGV[1];
-if(@ARGV == 3) {
-  my $spamaddr = $ARGV[2];
-} else {
-  my $spamaddr = "recipient";
-}
+my $spamaddr = "$ARGV[2]";

 print "Trying to start using source $srcaddr port $srcport, " .
       "destination $dstaddr port $dstport, " .

Note/Complaint: This program doesn't spawn a daemon process and return which
makes it a bitch to write a init script for. Also, it's not signal compliant and
requires a `killall -9 spamproxyd` to stop the damn thing. Some things I'll have
to look into.


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jeremy Fowler
> Sent: Thursday, May 30, 2002 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: [SAtalk] Postfix spamproxyd
>
>
> I'm trying to get Spamproxyd started so I can use Postfix's content
> filter with
> Spamproxyd.
>
> However, my initd script for spamproxyd isn't working. It's calling spamproxyd
> as such:
>
> su spam -c "cd && /usr/bin/spamproxyd localhost:10125 localhost:10126
> [EMAIL PROTECTED]"
>
> However, it's coming back with an improper syntax:
>
> su: syntax: /usr/bin/spamproxyd [--children=4] [--minperchild=5]
> [--maxperchild=10] listen.addr:port talk.addr:port [EMAIL PROTECTED]
>
> What is wrong with this syntax?
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to