You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Hardt, Jon" <jo...@cendant.com> on 2004/05/04 21:40:13 UTC
n00b question
Hello - I have inherited a SA 2.63/exiscan 4.30 on Solaris 8 set up...I have
a pretty easy question for you experts.
I just want to allow any mail with a particular subject line string through
SA regardless of SA score.
For example, I want all email containing the subject line "Your Reservation
has been confirmed" to be delivered regardless of SA score. Is there an easy
way to do this? I've searched, but have come up empty so far. Maybe I could
write a rule that would reduce the SA score by a certain level if the
subject line contains the desired string? Anyways I'm stumped...
Jon
Re: n00b question
Posted by Bram Mertens <br...@linux.be>.
On Wed, 2004-05-05 at 18:03, Steve Thomas wrote:
> On Wed, May 05, 2004 at 05:09:18PM +0200, Bram Mertens is rumored to have said:
> > [...]
> > Wouldn't it be easier to grep the rules and find out which rule triggers
> > on this subject and disable that rule?
> >
> > To disable a rule simply add
> > score RULE_TO_BE_DISABLED 0.00
> > to your local.cf
>
> You're reducing the effectiveness of SA by doing that, though.
How so? If this rule triggers on ham for the OP, SA effectiveness
shouldn't be touched or am I mistaken?
> You also run the risk of some other feature of the wanted e-mails
> causing a false positive.
Sorry but I don't see the difference between your suggestion and mine.
Your rule lowers the score for ALL messages containing a certain word or
word combination after it has been increased by a rule that looks for
exactly those words. This would require 2 rules to be evaluated, OTOH
disabling the rule by assinging a score 0 to it reduces the number of
rules to be checked by 1 (correct me if I'm wrong but I believe rules
with a score 0 aren't evaluated at all).
Of course if the OP wants to exclude only messages with a certain
SUBJECT while still marking messages containing the same word(s) in the
BODY as spam, your rule is the "right thing to do".
Regards
Bram
--
# Mertens Bram "M8ram" <br...@linux.be> Linux User #349737 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM #
# 5:28pm up 45 days 21:06, 5 users, load average: 0.18, 0.22, 0.09 #
Re: n00b question
Posted by Steve Thomas <li...@sthomas.net>.
On Wed, May 05, 2004 at 05:09:18PM +0200, Bram Mertens is rumored to have said:
>
> On Tue, 2004-05-04 at 22:10, Steve Thomas wrote:
> > On Tue, May 04, 2004 at 01:40:13PM -0600, Hardt, Jon is rumored to have said:
> > >
> > > I just want to allow any mail with a particular subject line string through
> > > SA regardless of SA score.
> >
> > In your local.cf:
> >
> > header MY_CUSTOM_RULE Subject =~ /the subject/i
> > describe MY_CUSTOM_RULE This mail should never be flagged as spam
> > score MY_CUSTOM_RULE -100
> >
> >
> > Check out the man page for Mail::SpamAssassin::Conf. There's a wealth of info there.
>
> Wouldn't it be easier to grep the rules and find out which rule triggers
> on this subject and disable that rule?
>
> To disable a rule simply add
> score RULE_TO_BE_DISABLED 0.00
> to your local.cf
You're reducing the effectiveness of SA by doing that, though. You also run the risk of some other feature of the wanted e-mails causing a false positive.
--
"For centuries, theologians have been explaining the unknowable in terms of the-not-worth-knowing."
- Henry Louis Mencken (1880-1956)
Re: n00b question
Posted by Bram Mertens <br...@linux.be>.
On Tue, 2004-05-04 at 22:10, Steve Thomas wrote:
> On Tue, May 04, 2004 at 01:40:13PM -0600, Hardt, Jon is rumored to have said:
> >
> > I just want to allow any mail with a particular subject line string through
> > SA regardless of SA score.
>
> In your local.cf:
>
> header MY_CUSTOM_RULE Subject =~ /the subject/i
> describe MY_CUSTOM_RULE This mail should never be flagged as spam
> score MY_CUSTOM_RULE -100
>
>
> Check out the man page for Mail::SpamAssassin::Conf. There's a wealth of info there.
Wouldn't it be easier to grep the rules and find out which rule triggers
on this subject and disable that rule?
To disable a rule simply add
score RULE_TO_BE_DISABLED 0.00
to your local.cf
HTH
--
# Mertens Bram "M8ram" <br...@linux.be> Linux User #349737 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM #
# 5:06pm up 44 days 20:44, 6 users, load average: 0.03, 0.05, 0.00 #
Re: n00b question
Posted by Steve Thomas <li...@sthomas.net>.
On Tue, May 04, 2004 at 01:40:13PM -0600, Hardt, Jon is rumored to have said:
>
> I just want to allow any mail with a particular subject line string through
> SA regardless of SA score.
In your local.cf:
header MY_CUSTOM_RULE Subject =~ /the subject/i
describe MY_CUSTOM_RULE This mail should never be flagged as spam
score MY_CUSTOM_RULE -100
Check out the man page for Mail::SpamAssassin::Conf. There's a wealth of info there.
--
"The mistakes are all waiting to be made."
- chessmaster Savielly Grigorievitch Tartakower (1887-1956) on the game's opening position