Filter a phrase?

terrymc

New member
Joined
Jan 26, 2004
Messages
2
Hi,

How do I filter a phrase? the filters says block a word, but I went ahead and entered "prescription drugs" without the quotes, but I still get messages with that phrase in it. I have checked the source of the messages and it is spelled exactly the same with no hidden characters or anything..

Also, is there any way to block on certain header information on the message?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,051
Hello,

Using a phrase *should* work fine, just remember that it's case sensitive.

If you want to see how the filter is setup (and you have access), just checkout your /etc/virtual/domain.com/filter file to see how it's been setup.

Some older versions of exim also only check the first 500 bytes of a message.. this can be increased with the "message_body_visible" variable in the /etc/exim.conf

Most of the filters do use header blocking of some form:
email filter: $header_from
domain filter: $header_from
word filter: $header_subject $header_body $message_body

John
 

interfasys

Verified User
Joined
Oct 31, 2003
Messages
2,099
Location
Switzerland
Filters don't seem to work with domain names like mysisterandiwantyounow.com

Also message_body_visible is not in my exim.conf

Anything I can do to improve the situation?
 

interfasys

Verified User
Joined
Oct 31, 2003
Messages
2,099
Location
Switzerland
Do we need to restart Exim for the newly entered filters to be applied?
If this is the case then the filters page should be reworked.

We would need an "Apply" button that users should push after having entered all of their filters. This button would restart Exim.

We would need a status button for the "block all adult content filter". Because right now it's impossible to know if it's enabled or not.
 
Top