Re-read the suggested rule I gave you, it does NOT contain a *. In fact, it's a regex syntax error to have the * where you put it.

When adding custom rules I strongly recommed that you run spamassassin --lint so you can see it complain about syntactic errors like your version had. Under normal running conditions SA has no place to complain about the errors, so it just silently skips the rule.


The proper format would be:

header MY_BLACKLISTED_RCVD Received=~/coolfunpages\.com/i
describe MY_BLACKLISTED_RCVD custom rule
score MY_BLACKLISTED_RCVD 100


note: I've removed the *, added a \ in front of the . and I've added an i to the end.

The original rule I suggested didn't have the \. but that's a relatively minor bug. It did correctly have the i at the end and no *'s in it.


At 09:57 AM 11/4/2002 -0800, Brossard, David wrote:
        I asked earlier about a way to block messages if they are
received from a certain set of servers. Someone very kindly provided me
with a custom rule to filter them out via header info. Unfortunately no
matter what I try the new custom rule is being ignored. I have other
custom headers with seem to work fine. Here is the non working rule:

header          MY_BLACKLISTED_RCVD     Received=~/*coolfunpages.com/
describe        MY_BLACKLISTED_RCVD     custom rule
score           MY_BLACKLISTED_RCVD     100


Here is a snippet from the headers of this mail getting though:

---
Received: from mail109.coolfunpages.com (mail109.coolfunpages.com
[64.49.246.143])
<snip>
X-Spam-Status: No, hits=3.6 required=7.0
        tests=CLICK_BELOW,CLICK_HERE_LINK,EXCUSE_16,FOR_FREE,

HTML_FONT_COLOR_GRAY,HTML_FONT_COLOR_RED,MAILTO_LINK,OFFER,
              SPAM_PHRASE_13_21,SUPERLONG_LINE,WEB_BUGS
        version=2.41
X-Spam-Level: ***
---

I have also tried ALL=~/*coolfunpages.com/
To make it easier for testing. It is still ignored when I put
coolfunpages.com in the subject line.
Does anyone see a typo or syntax error here that I am over looking?





-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk


-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to