> On 2011-09-09 11:16, Alok Kushwaha wrote: > >> Hi All, >> >> I am using the 'SpamAssassin Server version 3.3.2' but 'Spanish spams' >> are >> getting through. >> Can anyone please suggest/point me the rule-set/plug-in for Spanish spams. >> >> Thanks, >> Alok Kushwaha >> >> "always be the reason of someones happiness." >> >> > > there is nothing like a plugin for this nor any dedicated rules. > If you post some samples in pastebin.com we may be able to help you. > > > >

______________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.spammertrap.com/______________________________________________________________________

On 09/09/2011 02:16 AM, Alok Kushwaha wrote: >> I am using the 'SpamAssassin Server version 3.3.2' but 'Spanish >> spams' are getting through. Can anyone please suggest/point me the >> rule-set/plug-in for Spanish spams. The short answer is to train bayes; it's far better at this sort of thing than anything else, even the language detection I'm about to suggest.

Enable (un-comment) TextCat in v310.pre and then add this to your local.cf (adjust as needed):

ok_languages en hi

If that's not enough, create an anti-Spanish rule:

header SPANISH_BODY X-Languages =~ /\bes/

(You'll have to verify that header name, I thought we always named our headers and pseudo-headers X-Spam-*. Also note that this is a pseudo-header, which means it doesn't show up in your emails unless you tell it to, e.g. with a line like "add_header all Languages _LANGUAGES_" though then it will always be named "X-Spam-Languages")

See also the perldoc/man page for Mail::SpamAssassin::Plugin::TextCat

Note that Spanish is not the easiest language to detect given its similarities to English in addition to the fact that most conversations are spattered with English words and even phrases. This can only do so much.

Axb's solution is dangerous but might work for you: > you mean block ñ á é ó í and what else? the rest is quivalent to en