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

Reply via email to