(-17): error in filter file

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,178
Location
Schenectady, NY
Just had a client who setup a mail filter "clit$" - to filter out some of the porn thats floating through cyberspace, and we noticed a "bug".. thought you might be interested.


(-17): error in filter file: failed to expand "clit$" in filter file: $ not followed by letter, digit, or {


Seems anything that ends in a $ throws the error. I tried to use clit\$ and it still through the error.

Bug? Something to look into? Not really a big deal, just thought you might want to know.

Joe
 
$ is still a problem in filters

I just saw this error on a brand new server, fresh config.

A customer had a spam filter that ended in the "$" character, and exim threw errors for emails to their domain.

Perhaps this isn't fixed in newer versions?

R=domain_filter defer (-17): error in filter file: failed to expand "free \\$" in filter file: $ not followed by letter, digit, or {

Oddly, I had never seen this on the previous server. (The customer was restored from a backup from the old machine).

I deleted the filter which ended in $ and all is well.
 
Hi,

I recently hadthe same thing. The customer added the rule Block all e-mail containing the word: $ in the Spamfilter and the DA adds it in the list as: "//$" but then Exim does not handle the email well. It gives the error:

Code:
R=domain_filter defer (-17): error in filter file: failed to expand "US\\$" in filter file: $ not followed by letter, digit, or {

And then it stops to handle the email.

I still use Spamblocker 2.1.1 because Spamblocker 3 is still in Beta. Or is it an exim conf or .pl problem?

please let me know.

Regards,

Dennis
 
Hello,

Can you paste us that line from your /etc/virtual/domain.com/filter file? I'm not able to duplicate the error with this:
Code:
or $header_subject: contains "US\\$" or $message_headers contains "US\\$" or $message_body: contains "US\\$"
I don't believe spamblocker is related to the issue... unless there is some option that changes how a filter behaves (I'm not aware of one)

John
 
Hi John,

I think the problem begins when you put the following line in Block all e-mail containing the word: "US$" or just the "$". The following line wil appear in the filter file of that domain:

Code:
or $header_subject: contains "US\\$" or $message_headers contains "US\\$" or $message_body: contains "US\\$"

or

Code:
or $header_subject: contains "\\$" or $message_headers contains "\\$" or $message_body: contains "\\$"

Hope this helps!

Regards,

Dennis
 
Back
Top