I'm trying to figure out why I am getting 2 difference scores, and different hits from the same email.
The first method is just a simple spamassassin -t < email 2nd is a small perl script invoking Mail::SpamAssassin. First result is (commandline): Content analysis details: (11.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date 2.1 FORGED_HOTMAIL_RCVD Forged hotmail.com 'Received:' header found 0.2 HTML_TEXT_AFTER_HTML BODY: HTML contains text after HTML close tag 0.2 HTML_TEXT_AFTER_BODY BODY: HTML contains text after BODY close tag 0.0 HTML_MESSAGE BODY: HTML included in message 0.2 HTML_FONT_BIG BODY: HTML tag for a big font size 1.2 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.4 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org 2.8 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org [<http://dsbl.org/listing?200.71.56.40>] 2.5 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [200.71.56.40 listed in sbl-xbl.spamhaus.org] 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org 2nd is : Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 MISSING_DATE Missing Date: header -2.8 ALL_TRUSTED Did not pass through any untrusted hosts 1.6 MISSING_SUBJECT Missing Subject: header This from the same user, same machine. SA 3.03 on a slackware box. Also I have the trusted_networks configured in my /etc/mail/spamassassin/local.cf as: clear_trusted_networks clear_internal_networks internal_networks 192.168. trusted_networks 192.168. The commandline doesnt give me the ALL_TRUSTED hit, but the perl script does. Perl script is: #!/usr/bin/perl # # use Mail::SpamAssassin ; $message = "/home/jradford/junk/1116571206-17961:1-j4K6dxup018217-046-mx2"; my $spamtest = Mail::SpamAssassin->new(); my $mail = $spamtest->parse( $message ); my $status = $spamtest->check( $mail ); my $debuginfo = $spamtest->debug_diagnostics (); my $report = $status->get_report (); print "$report\n"; $status->finish(); $mail->finish(); Any ideas here? -Jason