----- 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 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk