Advertisement

03.15.2008 at 05:06PM PDT, ID: 23244623
[x]
Attachment Details

Spamassassin Rules not updated and processed

Asked by sdsol in Spam Assassin, Perl Programming Language, Apache Web Server

I am using spamasassin along with perl. My perl script calculates the score of emails based on its
body content, subject and from address. Mail content type is HTML. I just pass the html along with
subject and from address to perl, but for any kind of text in mail body, I get same score even if I
pass it illegle content.
Important the content I pass to spamassassin don't include email headers.
It looks to me that spamassassin rules are not invoked, I even tried installing many open source
rules as well, but nothing hapens and even default spamassassin rules look not working.
I am using perl and spam assassing on windows xp with IIS 6 on development machine where as Apache, perl and spamassassin on deployment machine but same results on both ends.
Some snapshot of my perl code is as follows:
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
use Mail::SpamAssassin;
&get_form_data();
$message = 'Subject:' . $FORM{'txtsubject'} .
'From:' . $FORM{'txtfrom'} .
'
' . $FORM{'txtbody'};
my $spamtest = Mail::SpamAssassin->new();
my $mail = $spamtest->parse($message);
my $status = $spamtest->check($mail);
if ($status->is_spam()) {
    $message = $status->rewrite_mail();
    $report = $status->get_report ();
}
print $report;
$status->finish();
$mail->finish();

Please let me know what can I do for Spamassassin to process all the rules? How can I update the spam assassin rules?Start Free Trial
 
 
[+][-]03.16.2008 at 07:28PM PDT, ID: 21139519

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2008 at 11:52PM PDT, ID: 21140191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:08AM PDT, ID: 21141131

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Spam Assassin, Perl Programming Language, Apache Web Server
Sign Up Now!
Solution Provided By: mjcoyne
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.25.2008 at 04:05AM PDT, ID: 22087385

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 10:42PM PDT, ID: 22093855

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 04:28AM PDT, ID: 22119339

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628