From owner-freebsd-questions@FreeBSD.ORG Sat Oct 14 03:10:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E4116A403 for ; Sat, 14 Oct 2006 03:10:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 699E643D45 for ; Sat, 14 Oct 2006 03:10:15 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id k9E39cU1087932; Sat, 14 Oct 2006 04:09:38 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k9E39cU1087932 Message-ID: <453054DE.1030506@infracaninophile.co.uk> Date: Sat, 14 Oct 2006 04:09:18 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Beech Rintoul References: <200610131712.46822.freebsd@alaskaparadise.com> In-Reply-To: <200610131712.46822.freebsd@alaskaparadise.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigEA8FEA395A4842B0ECF1F9BA" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 14 Oct 2006 04:09:59 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/2030/Fri Oct 13 14:34:34 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, NO_RELAYS autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Non English Spam X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2006 03:10:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEA8FEA395A4842B0ECF1F9BA Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Beech Rintoul wrote: > I'm getting a ton of spam every day that comes from China, Japan and K= orea.=20 > Spam Assassin completely ignores it because it has all non-english char= acters=20 > and slows kmail to a crawl loading. Is there a way to filter on non-eng= lish=20 > either using Spam Assassin or procmail?=20 >=20 > 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 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigEA8FEA395A4842B0ECF1F9BA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFMFTy8Mjk52CukIwRCAwZAJ9C4DtOWDAz8r4vTcwbw0I58FLERACghWFR ct1h0FjqYs9b/Ulg0SC3DEE= =6smM -----END PGP SIGNATURE----- --------------enigEA8FEA395A4842B0ECF1F9BA--