You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mattia Martinello <li...@mattiamartinello.com> on 2004/10/18 13:16:15 UTC
Doesn't mark spam messages
Hi,
I installed Spamassassin version 3.0.0 from .tar.gz on a Linux box
running SuSE 9.1, Qmail and Qmail-scanner.
Qmail-scanner is correctly configured to use Spamassassin and ClamAV, so
in the mail header I can see "X-Spam-Status: No, hits=0.6 required=7.5".
This mean that Spamassassin is checking email messages.
The problem is that even if a message is "SPAM" (hits higher than 7.5)
Spamassassin doesn't mark me the subject with [*****SPAM*****] and it
doesn't write the report (as I configured in
/etc/mail/spamassassin/local.cf).
This is my /etc/mail/spamassassin/local.cf:
required_hits 7.5
rewrite_subject 1
subject_tag [*****SPAM*****]
report_safe 0
use_terse_report 0
use_bayes 1
auto_learn 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
ok_languages all
ok_locales all
report_header 1
fold_headers 1
detailed_phrase_score 1
spam_level_stars 1
spam_level_char *
defang_mime 1
Any ideas to solve the problem?
Thank you very much
Bye
Mattia.
Re: Doesn't mark spam messages
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Oct 19, 2004 at 01:10:39AM +0200, Mattia Martinello wrote:
> Ok, so how I can do if I wish SpamAssassin to change the subject and to
> write SPAM headers when it detects a SPAM message?
As has been previously stated, your issue is qmail-scanner related,
so you need to talk to those folks wrt how to configure their software.
--
Randomly Generated Tagline:
I'm not deaf. I'm simply ignoring you.
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> right, "required_score" doesn't affect your rewriting/markup, they handle
> that.
Ok, so how I can do if I wish SpamAssassin to change the subject and to
write SPAM headers when it detects a SPAM message?
Re: Doesn't mark spam messages
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Oct 19, 2004 at 01:02:12AM +0200, Mattia Martinello wrote:
> >aha. you need to talk to the qmail-scanner people. iirc, they handle the
> >markup themselves, so your spamd config is meaningless, at least by
> >default.
>
> But if I change the "required_score" value, I can see it changed in the
> "X-Spam-Status: No, hits=-2.6 required=8.0" header...
right, "required_score" doesn't affect your rewriting/markup, they handle
that.
--
Randomly Generated Tagline:
A horse may go freely to water, but a pencil must be lead
Re: [OT] Re: Doesn't mark spam messages
Posted by Niek <ni...@packetstorm.nu>.
On 10/19/2004 1:14 AM +0200, Mattia Martinello wrote:
>> I'll bet your are using fast_spamassassin with qmail-scanner rather
>> than verbose_spamassassin. fast_spamassassin does NOT add anything to
>> the email except what qmail-scanner might add. verbose_spamassassin
>> is what you want to use instead.
>
>
> Now I am using verbose_spamassassin, but it doesn't work... :-(
Ask on the qmail-scanner list
Regards,
Niek
--
_______________________________________________________________________
Read about mime: http://www.geoapps.com/nomime.shtml
Read about quoting: http://www.netmeister.org/news/learn2quote.html
Read about disclaimers: http://www.goldmark.org/jeff/stupid-disclaimers
Re: [OT] Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> I'll bet your are using fast_spamassassin with qmail-scanner rather than
> verbose_spamassassin. fast_spamassassin does NOT add anything to the
> email except what qmail-scanner might add. verbose_spamassassin is what
> you want to use instead.
Now I am using verbose_spamassassin, but it doesn't work... :-(
[OT] Re: Doesn't mark spam messages
Posted by Rick Macdougall <ri...@nougen.com>.
Mattia Martinello wrote:
>> aha. you need to talk to the qmail-scanner people. iirc, they handle
>> the
>> markup themselves, so your spamd config is meaningless, at least by
>> default.
>
>
> But if I change the "required_score" value, I can see it changed in the
> "X-Spam-Status: No, hits=-2.6 required=8.0" header...
Hi,
I'll bet your are using fast_spamassassin with qmail-scanner rather than
verbose_spamassassin. fast_spamassassin does NOT add anything to the
email except what qmail-scanner might add. verbose_spamassassin is what
you want to use instead.
Regards,
Rick
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> aha. you need to talk to the qmail-scanner people. iirc, they handle the
> markup themselves, so your spamd config is meaningless, at least by default.
But if I change the "required_score" value, I can see it changed in the
"X-Spam-Status: No, hits=-2.6 required=8.0" header...
Re: Doesn't mark spam messages
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Oct 19, 2004 at 12:57:00AM +0200, Mattia Martinello wrote:
> I am calling Spamassassin with Qmail-Scanner.
aha. you need to talk to the qmail-scanner people. iirc, they handle the
markup themselves, so your spamd config is meaningless, at least by default.
--
Randomly Generated Tagline:
"It's been a few years since I really looked at NFS, so you can slap
me w/a trout if this is wrong. :-)" - John Eisenmenger
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> Hrm. How are you calling spamassassin/spamd? The X-Spam-Status header
> you quote is not the standard 3.0 one (it would be "score=", and there'd
> be a listing of rules...) Either you're using old modules, or whatever
> you use to pass through SA is actually doing the markup.
I am calling Spamassassin with Qmail-Scanner.
Bye
Mattia
Re: Doesn't mark spam messages
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Oct 19, 2004 at 12:47:09AM +0200, Mattia Martinello wrote:
> >If you don't get any X-Spam headers, then the mail isn't being fed through
> >spamd. You will always get at least a X-Spam-Checker-Version header.
>
> I get only this header: "X-Spam-Status: No, hits=-2.6 required=8.0".
>
> So how I can get all the headers that I can insert in local.cf?
Hrm. How are you calling spamassassin/spamd? The X-Spam-Status header
you quote is not the standard 3.0 one (it would be "score=", and there'd
be a listing of rules...) Either you're using old modules, or whatever
you use to pass through SA is actually doing the markup.
--
Randomly Generated Tagline:
Obviously I was either onto something, or on something.
-- Larry Wall on the creation of Perl
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> If you don't get any X-Spam headers, then the mail isn't being fed through
> spamd. You will always get at least a X-Spam-Checker-Version header.
I get only this header: "X-Spam-Status: No, hits=-2.6 required=8.0".
So how I can get all the headers that I can insert in local.cf?
Thank you very much!
Bye
Mattia
Re: Doesn't mark spam messages
Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, Oct 19, 2004 at 12:37:02AM +0200, Mattia Martinello wrote:
> I restarted spamd, but I can't solve the problem. Spam messages that
> have a score higher than 8 are not marked with [****SPAM****] in the
> subject and it never adds any header (Flag, Score, Tests, etc.) in the
> message headers.
If you don't get any X-Spam headers, then the mail isn't being fed through
spamd. You will always get at least a X-Spam-Checker-Version header.
--
Randomly Generated Tagline:
Perhaps they will have to outlaw sending random lists of words. fee fie
foe foo
-- Larry Wall in <19...@wall.org>
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> Run a spamassassin --lint I bet it will show you an error. Read the
> UPGRADE file, it will tell you that rewrite_header is no longer used.
spamassassin --lint didn't show me any error message.
I carefully read man Mail::SpamAssassin::Conf and I don't think I used
any deprecated conf...
Bye
mattia
Re: Doesn't mark spam messages
Posted by Andy Jezierski <aj...@stepan.com>.
Andy Jezierski <aj...@stepan.com> wrote on 10/18/2004 05:47:32 PM:
>
> Mattia Martinello <li...@mattiamartinello.com> wrote on 10/18/2004
> 05:37:02 PM:
>
[snip]>
> Run a spamassassin --lint I bet it will show you an error. Read
> the UPGRADE file, it will tell you that rewrite_header is no longer
used.
>
> I leave you with the excercise of finding it's replacement. :-)
> (Hint: The answer is in the UPGRADE file.)
>
> Andy
WHOOPS!! Never mind my previous post, I had a momentary lapse of reason!
Andy
Re: Doesn't mark spam messages
Posted by Andy Jezierski <aj...@stepan.com>.
Mattia Martinello <li...@mattiamartinello.com> wrote on 10/18/2004
05:37:02 PM:
> > Get rid of the "terse report" option.
>
> Now this is my /etc/mail/spamassassin/local.cf:
>
> required_score 8
> report_safe 0
> #use_terse_report 0
> use_bayes 1
> bayes_auto_learn 1
> skip_rbl_checks 0
> use_razor2 1
> use_dcc 1
> use_pyzor 1
> #fold_headers 1
> rewrite_header subject [****SPAM****]
> add_header all Flag _YESNOCAPS_
> add_header all Score _SCORE_ required=_REQD_
> add_header all Tests _TESTS(,)_
> add_header all Autolearn _AUTOLEARN_
> add_header all Level _STARS(*)_
> add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION)
> add_header all Report _REPORT_
> add_header all Summary _SUMMARY_
>
> I restarted spamd, but I can't solve the problem. Spam messages that
> have a score higher than 8 are not marked with [****SPAM****] in the
> subject and it never adds any header (Flag, Score, Tests, etc.) in the
> message headers.
>
> Could you help me, please?
>
> Thank you very much
> Bye
> Mattia
Run a spamassassin --lint I bet it will show you an error. Read the
UPGRADE file, it will tell you that rewrite_header is no longer used.
I leave you with the excercise of finding it's replacement. :-)
(Hint: The answer is in the UPGRADE file.)
Andy
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> Get rid of the "terse report" option.
Now this is my /etc/mail/spamassassin/local.cf:
required_score 8
report_safe 0
#use_terse_report 0
use_bayes 1
bayes_auto_learn 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
#fold_headers 1
rewrite_header subject [****SPAM****]
add_header all Flag _YESNOCAPS_
add_header all Score _SCORE_ required=_REQD_
add_header all Tests _TESTS(,)_
add_header all Autolearn _AUTOLEARN_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION)
add_header all Report _REPORT_
add_header all Summary _SUMMARY_
I restarted spamd, but I can't solve the problem. Spam messages that
have a score higher than 8 are not marked with [****SPAM****] in the
subject and it never adds any header (Flag, Score, Tests, etc.) in the
message headers.
Could you help me, please?
Thank you very much
Bye
Mattia
Re: Doesn't mark spam messages
Posted by Mike Burger <mb...@bubbanfriends.org>.
On Mon, 18 Oct 2004, Mattia Martinello wrote:
> > Read the UPGRADE document, this is answered there:
>
> Ok, thank you!!
> And why I can't see the complete report in the message haeader?
Get rid of the "terse report" option.
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
To be notified of updates to the web site, visit
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
message to:
site-update-request@bubbanfriends.org
with a message of:
subscribe
Re: Doesn't mark spam messages
Posted by Mattia Martinello <li...@mattiamartinello.com>.
> Read the UPGRADE document, this is answered there:
Ok, thank you!!
And why I can't see the complete report in the message haeader?
Thank you very much
Bye
Mattia.
Re: Doesn't mark spam messages
Posted by Teun Vink <te...@moonblade.net>.
On Mon, 2004-10-18 at 13:16 +0200, Mattia Martinello wrote:
> Hi,
>
> I installed Spamassassin version 3.0.0 from .tar.gz on a Linux box
> running SuSE 9.1, Qmail and Qmail-scanner.
> Qmail-scanner is correctly configured to use Spamassassin and ClamAV, so
> in the mail header I can see "X-Spam-Status: No, hits=0.6 required=7.5".
> This mean that Spamassassin is checking email messages.
> The problem is that even if a message is "SPAM" (hits higher than 7.5)
> Spamassassin doesn't mark me the subject with [*****SPAM*****] and it
> doesn't write the report (as I configured in
> /etc/mail/spamassassin/local.cf).
>
> This is my /etc/mail/spamassassin/local.cf:
>
>
> required_hits 7.5
> rewrite_subject 1
> subject_tag [*****SPAM*****]
> report_safe 0
[...]
> Any ideas to solve the problem?
Read the UPGRADE document, this is answered there:
- The "rewrite_subject" and "subject_tag" configuration options were
deprecated and are now removed. Instead, using "rewrite_header Subject
[your desired setting]". e.g.
rewrite_subject 1
subject_tag ****SPAM(_SCORE_)****
becomes
rewrite_header Subject ****SPAM(_SCORE_)****
Teun