Non English Spam
Matthew Seaman
m.seaman at infracaninophile.co.uk
Fri Oct 13 20:10:17 PDT 2006
Beech Rintoul wrote:
> I'm getting a ton of spam every day that comes from China, Japan and Korea.
> Spam Assassin completely ignores it because it has all non-english characters
> and slows kmail to a crawl loading. Is there a way to filter on non-english
> either using Spam Assassin or procmail?
>
> Suggestions would be appreciated.
Install the IP::Country perl modules (port: net/p5-IP-Country) and
uncomment the lines in /usr/local/etc/mail/spamassassin/init.pre to
enable Mail::SpamAssassin::Plugin::RelayCountry plugin, which causes
the Bayesian filters to learn which countries relay most spam to you.
Look for the discussion on 'ok_locales' in the Mail::SpamAssassin::Conf
perldoc. Set that to 'en' and messages in character sets other than
anything based on the Latin (and possibly Greek) alphabet will get a
higher spam score. You can put that into
/usr/local/etc/mail/spamassassin/local.cf for a site-wide effect or into
per-user ~/.spamassassin/user_prefs config files.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20061014/ec409bd0/signature.pgp
More information about the freebsd-questions
mailing list