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
signature.asc
Description: OpenPGP digital signature
