You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2010/03/15 16:41:39 UTC
[Bug 6378] New: PLEASE let us assign RIPE/APNIC scores
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
Summary: PLEASE let us assign RIPE/APNIC scores
Product: Spamassassin
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Rules
AssignedTo: dev@spamassassin.apache.org
ReportedBy: spamassassin@forward.rusticate.net
In our small business environment I can be confident that I will ~never~
receive a legitimate email from any host in RIPE or APNIC. If I could assign a
high score to emails from those sources I could eliminate 95% of all of my spam
immediately.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] [RFE] RIR based Regional Rules
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
--- Comment #10 from spamassassin@forward.rusticate.net 2010-03-20 22:21:57 UTC ---
I fail to see how it is "dangerous". Those who want to use the rule will turn
it on, those who do not will not. (These are definitely rules that should be
left off or with a default score of 0 to be sure).
I have never so much as received an acknowledgment from within RIPE or APNIC
space about spammers - if they won't address the issue then it should be the
easiest thing in the world to block them.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] [RFE] RIR based Regional Rules
Posted by bu...@issues.apache.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
--- Comment #11 from Adam Katz <an...@khopis.com> 2010-05-24 19:18:34 EDT ---
(In reply to comment #10)
> I fail to see how it is "dangerous". Those who want to use the rule will turn
> it on, those who do not will not. (These are definitely rules that should be
> left off or with a default score of 0 to be sure).
>
> I have never so much as received an acknowledgment from within RIPE or APNIC
> space about spammers - if they won't address the issue then it should be the
> easiest thing in the world to block them.
The danger is that spam is not (currently) an RIR's problem. Each RIR
represents a very large number of legitimate users, and each RIR has more spam
originating from its allocated space than ham. Assigning points on such a
broad level is very very ill-advised.
To repeat comment 2, if you want this sort of thing, use the RelayCountry
plugin.
That said, identifying relays by RIR is in itself interesting, as it has led to
good filtering in meta rules (e.g. CN_EIGHT_NOAPNIC). It also goes to show
where the SA corpora need more contributors (specifically on the ham side).
I am (hesitantly) checking in recognition for all RIRs.
See r947856 for detail.
BEFORE YOU JUMP ON THE BANDWAGON and implement these rules.
They need to test first, and the results will still be flawed by the
masscheck's poor corpus diversity. These are not meant to be assigned points!
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
--- Comment #5 from Karsten Bräckelmann <gu...@rudersport.de> 2010-03-15 17:36:27 UTC ---
(In reply to comment #0)
> In our small business environment I can be confident that I will ~never~
> receive a legitimate email from any host in RIPE or APNIC. If I could assign a
By engaging in open source projects, like you just did, that claim gets false
all too easily.
> high score to emails from those sources I could eliminate 95% of all of my spam
> immediately.
If that number is founded, you already have a mechanism to do what you want,
no?
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Re: Regional Rules (was: [Bug 6378] [RFE] RIR based Regional Rules)
Posted by John Hardin <jh...@impsec.org>.
On Fri, 19 Mar 2010, Karsten Br�ckelmann wrote:
> This just reminded of one of the two rules that are now in the 3.3.1
> tarball, with no explicit score -- and thus a score of 1.0. Despite
> John's clear intent, to test with a *low* score. Anyway, the currently
> live rule in question, in John's own words:
>
> "What's odd is that there _is_ an explicit score on NSL_ORIG_FROM_41 in my
> sandbox. A _low_ score. 41/8 is all of Africa."
_hopefully_ that will go away the first time they run sa_update...
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
After ten years (1998-2008) of draconian gun control in the State
of Massachusetts, the results are in: firearms-related assaults up
78%, firearms-related homicides up 67%, assault-related emergency
room visits up 331%. Gun Control does not reduce violent crime.
-----------------------------------------------------------------------
161 days since President Obama won the Nobel "Not George W. Bush" prize
Regional Rules (was: [Bug 6378] [RFE] RIR based Regional Rules)
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
> https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
> Adam Katz <an...@khopis.com> changed:
> [...] __RCVD_VIA_APNIC_LE and __RCVD_VIA_LACNIC_LE, both
> present as meta tests because it is dangerous to publish them as rules that can
> be assigned higher scores.
>
> See http://ruleqa.spamassassin.org/?rule=/RCVD_VIA.*LE though note that the
> results are biased by the fact that the test corpora lack any notable quantity
> of non-spam from LACNIC and APNIC.
This raises a general question, potentially about SA project (and ASF?)
moral, ethics, and political correctness.
Do we want to have rules in stock SA, enabled by default, based on the
origin network, region, continent, language, ... you name it.
This just reminded of one of the two rules that are now in the 3.3.1
tarball, with no explicit score -- and thus a score of 1.0. Despite
John's clear intent, to test with a *low* score. Anyway, the currently
live rule in question, in John's own words:
"What's odd is that there _is_ an explicit score on NSL_ORIG_FROM_41 in my
sandbox. A _low_ score. 41/8 is all of Africa."
Note the last sentence. I'm with Adam here (and John's intention). I
don't feel particularly comfortable to have the GA decide about a score
for an entire continent. Or RIR. Even less so, since we don't have a
substantial ham corpus originating from all those regions.
Providing such rules as requested in bug 6378, *disabled* or almost
informational scoring by default -- one thing. It's on the admin's
discretion to enable them. But enabled by default, possibly with a high
score?
I realize this is a slippery slope. And there likely are some
discriminating rules or terminology in stock already.
However, AFAIR similar stuff usually is disabled by default. Or
permissive. Like ok_locales, ok_languages, the TextCat plugin...
guenther
--
char *t="\10pse\0r\0dtu\0.@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; }}}
[Bug 6378] [RFE] RIR based Regional Rules
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
Adam Katz <an...@khopis.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |antispam@khopis.com
--- Comment #9 from Adam Katz <an...@khopis.com> 2010-03-19 20:21:25 UTC ---
There are two rules in the sandbox that do this kind of thing, though for APNIC
and LACNIC and not RIPE. __RCVD_VIA_APNIC_LE and __RCVD_VIA_LACNIC_LE, both
present as meta tests because it is dangerous to publish them as rules that can
be assigned higher scores.
See http://ruleqa.spamassassin.org/?rule=/RCVD_VIA.*LE though note that the
results are biased by the fact that the test corpora lack any notable quantity
of non-spam from LACNIC and APNIC.
I don't think either of these rules are published yet.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
spamassassin@forward.rusticate.net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |spamassassin@forward.rustic
| |ate.net
--- Comment #3 from spamassassin@forward.rusticate.net 2010-03-15 17:18:43 UTC ---
Consider the headers of the most recent spam:
Received: from ppp78-36-110-50.pppoe.komi.dslavangard.ru (HELO
ppp78-36-110-198.pppoe.komi.dslavangard.ru) (78.36.110.50)
Everything from 78.x.x.x is from RIPE space. The complete assignment list is
here:
http://www.iana.org/assignments/ipv4-address-space/
077/8 RIPE NCC 2006-08
whois.ripe.net ALLOCATED
078/8 RIPE NCC 2006-08
whois.ripe.net ALLOCATED
079/8 RIPE NCC 2006-08
whois.ripe.net ALLOCATED
080/8 RIPE NCC 2001-04
whois.ripe.net ALLOCATED
081/8 RIPE NCC 2001-04
whois.ripe.net ALLOCATED
082/8 RIPE NCC 2002-11
whois.ripe.net ALLOCATED
083/8 RIPE NCC 2003-11
whois.ripe.net ALLOCATED
084/8 RIPE NCC 2003-11
whois.ripe.net ALLOCATED
085/8 RIPE NCC 2004-04
whois.ripe.net ALLOCATED
086/8 RIPE NCC 2004-04
whois.ripe.net ALLOCATED
087/8 RIPE NCC 2004-04
whois.ripe.net ALLOCATED
088/8 RIPE NCC 2004-04
whois.ripe.net ALLOCATED
089/8 RIPE NCC 2005-06
whois.ripe.net ALLOCATED
090/8 RIPE NCC 2005-06
whois.ripe.net ALLOCATED
091/8 RIPE NCC 2005-06
whois.ripe.net ALLOCATED
092/8 RIPE NCC 2007-03
whois.ripe.net ALLOCATED
093/8 RIPE NCC 2007-03
whois.ripe.net ALLOCATED
094/8 RIPE NCC 2007-07
whois.ripe.net ALLOCATED
095/8 RIPE NCC 2007-07
whois.ripe.net ALLOCATED
All of the regionals are assigned spaces on /8 terms so it should be fairly
simple to maintain that information.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
--- Comment #6 from spamassassin@forward.rusticate.net 2010-03-15 17:58:15 UTC ---
If the regional authority rule is coded into Spam Assassin then small
businesses that need it would be able to use it more easily. Those that don't
want to use it could ignore it.
When I engage in open source projects I use my personal email on another
server, not my work email through my work server. I'm probably the only person
in the building who knows RIPE from a banana and nobody on the work server will
ever be sent a legitimate email from anywhere outside of the US.
By allowing admins to set a score by originating region it becomes globally
useful - there are undoubtedly many people/businesses in APNIC who are tired of
dealing with 100% spam rates from RIPE and vice-versa. And the ability to even
add just an extra point or two to the score would make it easier to catch more
of the obvious spam from those areas.... if I didn't go for a complete block
then I'd at least be more suspicious of something coming from RIPE/APNIC so by
assigning an extra point and a half to those areas would make those senders be
extra careful about what they send.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
Justin Mason <jm...@jmason.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jm@jmason.org
--- Comment #1 from Justin Mason <jm...@jmason.org> 2010-03-15 16:16:30 UTC ---
I think if we had a reliable way to determine that data for an IP, we could
consider it... any suggestions?
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] [RFE] RIR based Regional Rules
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
Kevin A. McGrail <km...@pccc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kmcgrail@pccc.com
--- Comment #8 from Kevin A. McGrail <km...@pccc.com> 2010-03-15 18:50:40 UTC ---
I will also comment that my own firm used to purchase bandwidth from
PCCW/Beyond the Network. We highly recommend them, in fact. However, our
bandwidth would often appear to originate from the UK rather than the US
because of the way their IP allocation worked. Since I'm outside of Washington
DC, the margin of error can be quite large ;-)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] [RFE] RIR based Regional Rules
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
Karsten Bräckelmann <gu...@rudersport.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|PLEASE let us assign |[RFE] RIR based Regional
|RIPE/APNIC scores |Rules
--- Comment #7 from Karsten Bräckelmann <gu...@rudersport.de> 2010-03-15 18:35:50 UTC ---
Don't get me wrong, I'm not strictly against this. And in fact I do use the
RelayCountry plugin.
However, this *is* a rather sharp blade to hand out to the unwary admin.
Scoring entire continents. Such rules absolutely need to ship with a big red
warning. I already can see admins all over the place shooting their own foot.
Requests for regional rules are not new. Not for spam filtering, not on
firewall lists I've been on. And it quickly became clear, that rejecting
connections from "east of UTC" wasn't exactly what was anticipated... ;) But I
digress slightly.
Again, the rules would not be hard to write. Maintaining them, and preventing
them from getting stale are a different topic. The RelayPlugin works, and
adding the ccTLDs of the relays to a header give a special bonus for Bayes.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
--- Comment #4 from Karsten Bräckelmann <gu...@rudersport.de> 2010-03-15 17:32:03 UTC ---
(In reply to comment #3)
> All of the regionals are assigned spaces on /8 terms so it should be fairly
> simple to maintain that information.
And it is almost trivial to just write a custom rule. See the
X-Spam-Relays-External pseudo-header.
Generally, I'm not a huge fan of this really course approach. Did you just say
you want the US-based ASF bugzilla mail from the Europe-based developers, but
not a direct communication via mail with them?
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6378] PLEASE let us assign RIPE/APNIC scores
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6378
John Hardin <jh...@impsec.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jhardin@impsec.org
--- Comment #2 from John Hardin <jh...@impsec.org> 2010-03-15 16:56:21 UTC ---
Would the RelayCountry plugin suffice? Perhaps we could add some metas to
create regional/continental rules based on RelayCountry that an end-user or
admin could simply tweak the scores for?
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.