On Wed, 2009-06-03 at 10:35 +0100, Martin Gregorie wrote:
> On Wed, 2009-06-03 at 00:48 -0700, an anonymous Nabble user wrote:
> > Hello: I am attempting to configure SA to mark as spam all email from
> > Top-Level-Domains other than .com, .net, and .edu.  
> > I have found three possible ways to do this.  Which if any is the preferred
> > method:

None of which is the preferred method. The whole concept is bound to
fail miserably in the first place.

> > 3) Create custom rule:
> >    design a custom rule that sets score to 5 where FROM: NOT=.com|.net|.org
> 
> IMO this is the easiest to implement.

Yep, that's quite trivial. And you easily can adjust the score for the
custom rule. Read, keep it *low*, so good mail at least got a chance to
reach you. Keep in mind that the option (1) triggers USER_IN_BLACKLIST,
worth a score of 100.

> However, whatever implementation you use is highly unlikely to do
> whatever you're trying to achieve. TLD assignments are far too widely
> misused and have too many widely held misconceptions to be a useful
> filter.

Yeah, I seriously don't think it will do what the OP wants. He
effectively does not want my mail. Neither Martin's reply. But obviously
he wants all the crap sent from freemail addresses, like gmail.

There are perfectly legitimate reasons to use a ccTLD indeed.

  guenther


-- 
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; }}}

Reply via email to