I just confirmed. Although, I didn't install Spamassassin prior to the qmail-scanner it didn't install the sub-spamassassin.pl at the bottem. And when I try to search for the sub_spamassassin.pl file, I cannot find it.
I didn't find this via google: sub spamassassin { #Only run SA if mail is from a "remote" SMTP client, or QS_SPAMASSASSIN #is defined via tcpserver... return if (defined($ENV{'RELAYCLIENT'}) && !defined($ENV{'QS_SPAMASSASSIN'})); #SpamAssassin client scanner my ($spamassassin_found,$spamassassin_status); my ($start_spamassassin_time)=[gettimeofday]; my ($DD,$spamassassin_status,$stop_spamassassin_time,$spamassassin_time); my ($sa_status)=0; my ($sa_score)=0; my ($sa_max)=0; &debug("SA: run $spamc_binary $spamc_options < $scandir/$wmaildir/new/$file_id"); open(SA,"$spamc_binary $spamc_options < $scandir/$wmaildir/new/$file_id|")||&tempfail("cannot run $spamc_binary < $scandir/$wmaildir/new/$file_id - $!"); open(SOUT,">$scandir/$wmaildir/new/$file_id.spamc")||&tempfail("cannot open for write $scandir/$wmaildir/new/$file_id.spamc - $!"); while (<SA>) { if ($spamc_options =~ /\-c/) { ($sa_score,$sa_max)=split(/\//,$_,2); $sa_max=~s/\n//g; } #X-Spam-Status: No, hits=2.8 required=5.0 if (/^X-Spam-Status: (Yes|No), hits=(.*) required=(.*)/) { $sa_status=1 if ($1 eq "Yes"); $sa_score=$2;$sa_max=$3; } print SOUT; } close(SA); $spamassassin_status=($? >> 8); $sa_status=$spamassassin_status if ($spamc_options =~ /\-c/); close(SOUT); $sa_score='0' if (!$sa_score); $sa_max='0' if (!$sa_max); if ($spamc_options !~ /\-c/ && -s "$scandir/$wmaildir/new/$file_id.spamc" && $spamassassin_status == 0) { &debug("SA: overwriting $scandir/$wmaildir/new/$file_id with $scandir/$wmaildir/new/$file_id.spamc"); rename ("$scandir/$wmaildir/new/$file_id.spamc","$scandir/$wmaildir/new/$file_i d"); } else { unlink("$scandir/$wmaildir/new/$file_id.spamc"); } if ($sa_status == 0) { if ($sa_max == 0 && $sa_score != 0) { $tag_score .= "SA:?($sa_score/$sa_max):"; } else { if ($sa_max > $sa_score) { $tag_score .= "SA:0($sa_score/$sa_max):"; $sa_comment = "No, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/); } else { $tag_score .= "SA:1($sa_score/$sa_max):"; $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/); &debug("SA: yup, this smells like SPAM"); } } } else { $tag_score .= "SA:1($sa_score/$sa_max):"; $sa_comment = "Yes, hits=$sa_score required=$sa_max" if ($spamc_options =~ /\-c/); &debug("SA: yup, this smells like SPAM"); } $stop_spamassassin_time=[gettimeofday]; $spamassassin_time = tv_interval ($start_spamassassin_time, $stop_spamassassin_time); &debug("spamassassin: finished scan of dir \"$scandir/$file_id\" in $spamassassin_time secs"); } when I applied this to the end, I get this error on line 2002 which is this line: open(SOUT,">$scandir/$wmaildir/new/$file_id.spamc")||&tempfail("cannot open for write $scandir/$wmaildir/new/$file_id.spamc - $!"); could this be an old version. spamassassin is starting and appears to be installed correctly. clamav is running and working and so is qmailscanner. I am hoping I don't have to reinstall :( -----Original Message----- From: Dallas L. Engelken [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 2:50 PM To: Jennifer Fountain Cc: [EMAIL PROTECTED] Subject: RE: [Qmail-scanner-general]problems with SA > -----Original Message----- > From: Jennifer Fountain [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 27, 2003 1:41 PM > To: Dallas L. Engelken > Subject: RE: [Qmail-scanner-general]problems with SA > > > this is the only thing in my scanner_array: > > my @scanner_array=("clamscan_scanner"); > > so I added this: > > my @scanner_array=("clamscan_scanner","spamassassin"); > > now I am getting this error: > > Aug 27 14:33:16 chopin X-Qmail-Scanner-1.20rc1: > [chopin106200919545526856] Requeuing: Undefined subroutine > &main::spamassassin called at /var/qmail/bin/qmail-scanner-queue.pl > line 1130. > > and this where spamassassin is invoked. > > have you seen this before? > yes, you should have had a working spamd before installing qmail-scanner. you need to add the contents of sub-spamassassin.pl in QS root dir to your /var/qmail/bin/qmail-scanner-queue.pl at the bottom. dallas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general