Thanks, people; I really appreciate your replies here. :) Ok, here is how I start it up:
/usr/bin/spamd -d -i 216.122.74.112 Then it daemonizes and stays in memory. I know the daemon is running, as I see it with ps -ax, and it says so in syslog: "Feb 11 01:12:03 asarian-host spamd[53936]: server started on port 783" Then, when I run this, either from a system call within Perl, or in a shell, I get the error code 74: /usr/bin/spamc -c -f -d 216.122.74.112 < /tmp/testmail Yields the I/O error. Syslog reports this: "Feb 11 01:17:31 asarian-host spamd[53936]: unauthorized connection from asarian-host.net [ 216.122.74.112 ] at port 2820" I am confused by that; should there be a place where I set who can check the daemon, outside the command-line? Much obliged, - Mark System Administrator Asarian-host.org --- "If you were supposed to understand it, we wouldn't call it code." - FedEx ----- Original Message ----- From: "Craig R Hughes" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 12:34 AM Subject: Re: [SAtalk] Re: Exit code > Razor is optional. That is a "good" spamd startup. Did you run spamc > there or not yet? > > C > > Mark wrote: > > > Date: Sun, 10 Feb 2002 23:39:09 +0100 > > From: Mark <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: [SAtalk] Re: Exit code > > ----- Original Message ----- > > From: "Daniel Pittman" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, February 10, 2002 10:35 PM > > Subject: [SAtalk] Re: Exit code > > > On Sun, 10 Feb 2002, Mark wrote: > > > > > > > Dear people, > > > > > > > > Being rather interested in running the spamd daemon, I tried to run > > > > a test message in a small test Perl script, having the daemon > > > > running, of course, on my FreeBSD 4.1 server; it looks as follows: > > > > > > > > $result = int ((system ("/usr/bin/spamc -c -f < /tmp/testmail > > > > /dev/null") / 256)); > > > > > > > > Funny thing is, I keep getting error code 74. I thought it would > > > > only exit with either 1 or 0? Any help would be appreciated. > > > > > > Most MTAs will use the return codes from /usr/include/sysexit.h to > > > determine what went wrong when they talk to a child process of some > > > sort. spamc seems to use this convention to, with: > > > > > > #define EX_IOERR 74 /* input/output error */ > > > > > > So, I guess that spamc can't get at either an input or output channel > > > of some sort... > > > > > > Daniel > > > > Ok, I did a debug on it. Here is what is says; what is that Razor thing > > it says is missing? > > > > Thanks! > > > > asarian-host: {root} % /usr/bin/spamd -d -D -i 216.122.74.112 > > > > debug: ignore: test message to precompile patterns and load modules > > debug: using "/usr/share/spamassassin" for default rules dir > > debug: using "/etc/mail/spamassassin" for site rules dir > > debug: running header regexp tests; score so far=0 > > debug: running body-text per-line regexp tests; score so far=2.2 > > debug: running raw-body-text per-line regexp tests; score so far=2.2 > > debug: running full-text regexp tests; score so far=2.2 > > debug: spam-phrase score: 0: hits: > > debug: Razor is not available > > debug: is Net::DNS::Resolver unavailable? 0 > > debug: looking up MX for 'microsoft.com.' > > debug: MX for 'microsoft.com.' exists? 1 > > debug: is DNS available? 1 > > debug: checking RBL orbs.dorkslayers.com., set relay > > debug: checking RBL inputs.orbz.org., set relay > > debug: checking RBL relays.osirusoft.com., set relay > > debug: checking RBL relays.ordb.org., set relay > > debug: checking RBL ipwhois.rfc-ignorant.org., set rfci > > debug: checking RBL results in set relay for 127.0.0.6 > > debug: checking RBL results in set relay for 127.0.0.4 > > debug: is spam? score=2.9 required=5 - Mark System Administrator Asarian-host.org --- "If you were supposed to understand it, we wouldn't call it code." - FedEx ----- Original Message ----- From: "Craig R Hughes" <[EMAIL PROTECTED]> To: "Mark" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 12:32 AM Subject: Re: [SAtalk] Exit code > Just out of curiosity, does that /tmp/testmail exist? 74 is an IO error. > > C > > Mark wrote: > > > Date: Sun, 10 Feb 2002 22:27:18 +0100 > > From: Mark <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: [SAtalk] Exit code > > > > Thanks for your reply; but no, that makes no differnce; I still get code: > > 18944 (divided by 256 = 74). > > > > - Mark > > > > ----- Original Message ----- > > From: "John Johnson" <[EMAIL PROTECTED]> > > To: "Mark" <[EMAIL PROTECTED]> > > Sent: Sunday, February 10, 2002 9:43 PM > > Subject: Re: [SAtalk] Exit code > > > > > > > On Sun, 10 Feb 2002, Mark wrote: > > > > > > > $result = int ((system ("/usr/bin/spamc -c -f < /tmp/testmail > > >/dev/null") / > > > > 256)); > > > > > > > > Funny thing is, I keep getting error code 74. I thought it would only > > exit > > > > with either 1 or 0? Any help would be appreciated. > > > > > > not a perl expert, but it could be getting the code of the pipe > > > command (?) > > > > > > how bout > > > > > > `/usr/bin/spamc -c -f < /tmp/testmail` ; > > > $result = $? ; > > > > > > does that return a good value? > > > > > > _______________________________________________ > > Spamassassin-talk mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk > > > > > > > > > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk