You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Harry Putnam <re...@newsguy.com> on 2006/02/14 10:33:32 UTC
ok_locales en Unexpected behavior
Running spamassassin-3.1.0
I have `ok_locales en' set in local.cf. I had hoped that would cut
down on the amount of processing SA has to do, but I see messages with
a subject line like this:
Subject: Replicas dos melhores relogios
That still grind thru lots of processing and never did hit the
"CHARSET_FAR- AWAY_HEADERS"
Is there something else I need to tweak so that this is seen right
away and no further processing is done, or is setting ok_locales just
not all that usefull.
SA report on that message:
* 1.8 X_IP Message has X-IP header
* 3.6 MIME_BOUND_DD_DIGITS Spam tool pattern in MIME boundary
* 3.4 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr
* 1)
* 3.5 MSGID_SPAM_CAPS Spam tool Message-Id: (caps variant)
* 2.2 FORGED_HOTMAIL_RCVD Forged hotmail.com 'Received:' header found
* 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay
* lines
* 0.2 HTML_IMAGE_RATIO_02 BODY: HTML has a low ratio of text to image
* area
* 0.9 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 0.3 HTML_FONT_BIG BODY: HTML tag for a big font size
* 0.1 MPART_ALT_DIFF BODY: HTML and text parts are different
* 0.0 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
* 1.5 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding
* 0.5 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org
* 3.1 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
* [70.35.234.34 listed in sbl-xbl.spamhaus.org]
* 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address
* [70.35.234.34 listed in dnsbl.sorbs.net]
* 1.8 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org
* [<http://dsbl.org/listing?70.35.234.34>]
* 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
* [Blocked - see <http://www.spamcop.net/bl.shtml?70.35.234.34>]
* 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in
* postmaster.rfc-ignorant.org
* 3.5 RCVD_DOUBLE_IP_SPAM Bulk email fingerprint (double IP) found
* 0.0 MIME_HTML_ONLY_MULTI Multipart message only has text/html MIME
* parts
* 1.4 MISSING_MIMEOLE Message has X-MSMail-Priority, but no X-MimeOLE
* 1.0 FORGED_MUA_AOL_FROM Forged mail pretending to be from AOL (by From)
* 0.0 REPTO_QUOTE_AOL AOL doesn't do quoting like this
Re: ok_locales en Unexpected behavior
Posted by Loren Wilton <lw...@earthlink.net>.
> I have `ok_locales en' set in local.cf. I had hoped that would cut
> down on the amount of processing SA has to do, but I see messages with
> a subject line like this:
>
> Subject: Replicas dos melhores relogios
>
> That still grind thru lots of processing and never did hit the
> "CHARSET_FAR- AWAY_HEADERS"
>
> Is there something else I need to tweak so that this is seen right
> away and no further processing is done, or is setting ok_locales just
> not all that usefull.
There ain't nothing, period, that will short-circuit SA processing. If it
gets its hands on a mail, it is going to run ALL the rules on it, regardless
of current accumulated score at any point in the processing.
What ok_locales should do for you is add points to spams from far away. Of
course, that is based on them actually having a charset: declaration in them
somewhere. In that subject line you quoted I don't see a single non-English
character. They happen to be arranged in a manner that suggests to me that
it is Spanish. But unless there was a charset clause someplace, SA isn't
going to know that pile of letters from a locally-generated spam.
Loren
Re: ok_locales en Unexpected behavior
Posted by Harry Putnam <re...@newsguy.com>.
"jdow" <jd...@earthlink.net> writes:
> Nothing of note "short circuits" any of the SpamAssassin tests. They all
> have to be evaluated because a positive or negative score might get over-
> ridden by subsequent processing. Suppose you had a whitelist entry that
> forgot and sent you a message in Spanish?
I see your point. Perhaps someone has devised a nifty procmail recipe
that gets close.... I've asked on the procmail list now.
Re: ok_locales en Unexpected behavior
Posted by jdow <jd...@earthlink.net>.
Nothing of note "short circuits" any of the SpamAssassin tests. They all
have to be evaluated because a positive or negative score might get over-
ridden by subsequent processing. Suppose you had a whitelist entry that
forgot and sent you a message in Spanish?
{^_^}
----- Original Message -----
From: "Harry Putnam" <re...@newsguy.com>
> Running spamassassin-3.1.0
>
> I have `ok_locales en' set in local.cf. I had hoped that would cut
> down on the amount of processing SA has to do, but I see messages with
> a subject line like this:
>
> Subject: Replicas dos melhores relogios
>
> That still grind thru lots of processing and never did hit the
> "CHARSET_FAR- AWAY_HEADERS"
>
> Is there something else I need to tweak so that this is seen right
> away and no further processing is done, or is setting ok_locales just
> not all that usefull.
>
> SA report on that message:
> * 1.8 X_IP Message has X-IP header
> * 3.6 MIME_BOUND_DD_DIGITS Spam tool pattern in MIME boundary
> * 3.4 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr
> * 1)
> * 3.5 MSGID_SPAM_CAPS Spam tool Message-Id: (caps variant)
> * 2.2 FORGED_HOTMAIL_RCVD Forged hotmail.com 'Received:' header found
> * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay
> * lines
> * 0.2 HTML_IMAGE_RATIO_02 BODY: HTML has a low ratio of text to image
> * area
> * 0.9 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words
> * 0.0 HTML_MESSAGE BODY: HTML included in message
> * 0.3 HTML_FONT_BIG BODY: HTML tag for a big font size
> * 0.1 MPART_ALT_DIFF BODY: HTML and text parts are different
> * 0.0 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
> * 1.5 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding
> * 0.5 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org
> * 3.1 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
> * [70.35.234.34 listed in sbl-xbl.spamhaus.org]
> * 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address
> * [70.35.234.34 listed in dnsbl.sorbs.net]
> * 1.8 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org
> * [<http://dsbl.org/listing?70.35.234.34>]
> * 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net
> * [Blocked - see <http://www.spamcop.net/bl.shtml?70.35.234.34>]
> * 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in
> * postmaster.rfc-ignorant.org
> * 3.5 RCVD_DOUBLE_IP_SPAM Bulk email fingerprint (double IP) found
> * 0.0 MIME_HTML_ONLY_MULTI Multipart message only has text/html MIME
> * parts
> * 1.4 MISSING_MIMEOLE Message has X-MSMail-Priority, but no X-MimeOLE
> * 1.0 FORGED_MUA_AOL_FROM Forged mail pretending to be from AOL (by From)
> * 0.0 REPTO_QUOTE_AOL AOL doesn't do quoting like this
>
Re: ok_locales en Unexpected behavior
Posted by Michael Monnerie <m....@zmi.at>.
On Dienstag, 14. Februar 2006 14:05 Harry Putnam wrote:
> Judging from yours and other posts on this thread, I'm looking for
> something that is able to tell with some certainty when a subject
> line is not in english. Something that gets to a message before SA
> is called. Like maybe a nifty procmail recipe.
I guess it would be easier to use RBL at MTA level. Greylisting helps a
lot, too.
mfg zmi
--
// Michael Monnerie, Ing.BSc --- it-management Michael Monnerie
// http://zmi.at Tel: 0660/4156531 Linux 2.6.11
// PGP Key: "lynx -source http://zmi.at/zmi2.asc | gpg --import"
// Fingerprint: EB93 ED8A 1DCD BB6C F952 F7F4 3911 B933 7054 5879
// Keyserver: www.keyserver.net Key-ID: 0x70545879
Re: ok_locales en Unexpected behavior
Posted by Matt Kettler <mk...@comcast.net>.
Harry Putnam wrote:
> Matt Kettler <mk...@comcast.net> writes:
>
>
>> Well, that particular subject looks to only contain ordinary ascii.
>> Can't hit any CHARSET rules when there's no charachter set to hit.
>>
>
> I hadn't understood it was based on a charset being stipulated.
>
Yes, check the manpage again.. In fact, the HTML version on the website
has *character sets in bold text.
http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html#language_options
*
>
>> Are you using ok_languages as well?
>>
>
> My Mail::SpamAssassin::Conf page doesn't mention this at all. The
> only thing beginning `ok_' in it is `ok_locales'. What man page talks
> about ok_languages?
>
Apparently in SA 3.1.0 this was moved to a plugin. You need a loadplugin
statement in your v310.pre that loads the TextCat plugin. There's one in
there in the default file, but it's commented out.
Once you load TextCat you can use the options in it's manpage, including
ok_languages:
http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Plugin_TextCat.html
> Judging from yours and other posts on this thread, I'm looking for
> something that is able to tell with some certainty when a subject line
> is not in english. Something that gets to a message before SA is
> called. Like maybe a nifty procmail recipe.
>
>
If you're looking to save CPU, that's the way to go. However, I'm not
sure how to do that with anything simple..
Re: ok_locales en Unexpected behavior
Posted by Harry Putnam <re...@newsguy.com>.
Matt Kettler <mk...@comcast.net> writes:
> Well, that particular subject looks to only contain ordinary ascii.
> Can't hit any CHARSET rules when there's no charachter set to hit.
I hadn't understood it was based on a charset being stipulated.
> Are you using ok_languages as well?
My Mail::SpamAssassin::Conf page doesn't mention this at all. The
only thing beginning `ok_' in it is `ok_locales'. What man page talks
about ok_languages?
Judging from yours and other posts on this thread, I'm looking for
something that is able to tell with some certainty when a subject line
is not in english. Something that gets to a message before SA is
called. Like maybe a nifty procmail recipe.
Re: ok_locales en Unexpected behavior
Posted by Matt Kettler <mk...@comcast.net>.
Harry Putnam wrote:
> Running spamassassin-3.1.0
>
> I have `ok_locales en' set in local.cf. I had hoped that would cut
> down on the amount of processing SA has to do, but I see messages with
> a subject line like this:
>
Turning on features will pretty much never reduce the amount of
processing SA has to do.
> Subject: Replicas dos melhores relogios
>
> That still grind thru lots of processing and never did hit the
> "CHARSET_FAR- AWAY_HEADERS"
>
>
Well, that particular subject looks to only contain ordinary ascii.
Can't hit any CHARSET rules when there's no charachter set to hit.
Are you using ok_languages as well?