I decided to run spamd with the -D line and these are its results when I
run /usr/local/bin/spamd -d -D -u mail (I left out the -a this time):

debug: ignore: test message to precompile patterns and load modules
debug: using "/usr/local/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=0.8
debug: running uri tests; score so far=0.8
debug: running raw-body-text per-line regexp tests; score so far=0.8
debug: running full-text regexp tests; score so far=0.8
debug: Razor is available
debug: Razor Agents 1.19, protocol version 2.
debug: Read server list from /.razor.lst
debug: 146588 seconds before closest server discovery
debug: Closest server is 64.90.187.2
debug: Connecting to 64.90.187.2...
debug: Connection established
debug: Signature: 6fcf9dfbd479ed82697fee719b9f8c610a11ff2a
debug: Server version: 1.11, protocol version 2
debug: Server response: Positive 6fcf9dfbd479ed82697fee719b9f8c610a11ff2a
debug: - Message 1 is KNOWN SPAM -
debug: Agent terminated
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 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 relays.visi.com., set relay
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: AWL active, pre-score: 7.1, mean: undef
debug: Post AWL score: 7.1
debug: is spam? score=7.1 required=7
Can't write '/dev/null': Permission denied at /usr/local/bin/spamd line
640.

Everything seems to look okay except for the very end where it complains
about not being able to write to /dev/null

Thanks,
Kenneth

---------- Forwarded message ----------
Date: Sun, 21 Apr 2002 11:00:24 -0700 (PDT)
From: Kenneth Chen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [SAtalk] Unable to restart spamd as a non-root user

I edited something in local.cf today and tried to restart spamd, but to no
avail.  This is what I get on the command line:

root@vampire:/var/mail# /usr/local/bin/spamd -d -a -u mail
Can't write '/dev/null': Permission denied at /usr/local/bin/spamd line
640.

Line 640 in spamd is the part that starts with `open STDOUT':

sub daemonize
{
    chdir '/' or die "Can't chdir to '/': $!";
    open STDIN,'/dev/null' or die "Can't read '/dev/null': $!";
    open STDOUT,'>/dev/null' or die "Can't write '/dev/null': $!";
    defined(my $pid=fork) or die "Can't fork: $!";
    exit if $pid;
    setsid or die "Can't start new session: $!";
    open STDERR,'>&STDOUT' or die "Can't duplicate stdout: $!";
}


Can anyone offer any suggestions as to why this might be happening?  I
haven't changed a single setting since I last started spamd so I'm not
sure why this problem cropped up all of a sudden.

Thanks!
Kenneth


_______________________________________________
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

Reply via email to