SA Bugzilla – Bug 274
rule FRIEND_AT_PUBLIC too broad
Last modified: 2003-06-03 06:04:38 UTC
In 20_head_tests.cf, the rule header FRIEND_AT_PUBLIC To =~ /(yourdomain|you|your|public).(com|org|net)/i catches more than it should (it caught x@HSBCRepublic.COM). The match should be more like: /[\.@](yourdomain|you|your|public)\.(com|org|net)/i
I'm going to leave it as is -- it's not scoring super high...
In spamassassin 2.50 - 2.55, all mail to the owner of the domain "hamsterrepublic.com" (one of my users) gets 2.9 points added due to the FRIEND_AT_PUBLIC test, which is enough to push a lot of legit mail over the threshhold. Obviously not a big deal for mail to just him, as disabling the test is easy. The problem is that it catches all mail for other users on other systems where he's listed as one of the "To:"s. As of July 2002 (the last data I have access to), the "(?:yourdomain|you|your|public)\.(?:com|org|net)/i" regexp matches 37025 active com/net/org domains. Is this intentional?
For future reference: it's better to open new bugs than comment on ancient bugs that have been closed.
reassigning and testing a fix in CVS now
Subject: Re: [SAdev] rule FRIEND_AT_PUBLIC too broad > As of July 2002 (the last data I have access to), the > "(?:yourdomain|you|your|public)\.(?:com|org|net)/i" regexp matches > 37025 active com/net/org domains. Is this intentional? Well, yes. How many of those 37025 are just parked or are currently registered by squatters? How many are used for email? Anyway, try: /(?:yourdomain|you|your|(?<!re)public)\.(?:com|org|net)/i
fixed in 2.60-cvs