On Wed, 2009-04-08 at 13:00 -0700, Bill Landry wrote: > John Rudd wrote: > > I know there used to be a nice convenient set of RBL's based upon > > countries, such that you could easily track an IP address back to > > which country it came from. But, IIRC, that RBL went under.
> > (it's only slightly OT, because I plan to use this for fighting some > > internal spam problems we've been having; but it wouldn't be part of > > our spam assassin infrastructure) > > There is also the RelayCountry plugin (requires the IP::Country::Fast > perl module). From the SpamAssassin INSTALL file: > > - IP::Country::Fast (from CPAN) > > Used by the RelayCountry plugin (not enabled by default) to > determine the domain country codes of each relay in the path > of an email. Yup, this one came up recently. Creating rules against the Relay-Country header is trivial. Unfortunately, the POD [1] is rather sparse on information. The wiki [2] shows some much better docs. [1] http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_RelayCountry.html [2] http://wiki.apache.org/spamassassin/RelayCountryPlugin -- char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}