Axel Werner wrote:
> im looking for some "opposit" parameters of "ok_locales" to
> make spamassassin mark all incoming mail of some specific charsets or
> language settings (locales) to get marked by default.
>
> for example: since i life in western europe i never expect mails from
> eastern europe, asia, afrika or something like that. especialy if they
> use their locale charset n stuff.
>
> so im looking for some parameter doing a
>
> "if locate is not western-europe or western mark mail as spam"
>
> is there something i did not found in all the manuals and google
> searches??! 

You need ok_locales. This is *EXACTLY* how it works. It is not a
whitelist, it's a list of exceptions to a blacklist.

Re-read man Mail::SpamAssassin::Conf when it says:
"This option is used to specify which locales are considered OK for
incoming mail. Mail using the *character sets* that are allowed by this
option will not be marked as possibly being spam in a foreign language."

ie: if the locale of the message isn't in ok_locales, CHARSET_FARAWAY
and friends will fire off, giving the message a positive score.

Now, technically the score of CHARSET_FARAWAY defaults to 3.2, which
isn't enough to mark as spam by itself. You can always over-ride the
score, but I'd suggest trying it out with the default score first.

Reply via email to