Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 06:32:11 AM

Pages: [1]   Go Down
  Print  
Author Topic: Help needed - E-mail filter does not seem to work  (Read 775 times)
Daniel Petri
Newbie
*
Offline Offline

Posts: 3



WWW
« on: January 30, 2004, 04:31:32 AM »

Hi all

I've set up e-mail filters to try to stop some of the incoming virus messages.

For example:

$header_subject: contains "Delivery reports about your email" Discard
$header_subject: contains "Mail delivery failed: returning message to sender" Discard  
$header_subject: contains "Virus Infection Alert" Discard    
$header_subject: contains "failure notice" Discard

and so on. I have a total of 18 filters like these, plus one for SpamAssasin:

$h_X-Spam-Status: begins "yes" Discard

The problem is that I still keep getting e-mail messages that should have been discarded by these filters.

If I try to send myself an email that has one of the above headers - the filter catches the message and deletes it.

My question is why do some e-mails still pass the filter, although they should have been deleted?
Logged
mark363
Über Jedi
*****
Offline Offline

Posts: 2649


« Reply #1 on: January 30, 2004, 04:45:40 AM »

Do the subjects of the e-mails you're testing with contain the exact words in the same order & capitilization that you have in your filters? (for example, Virus Infection Alert instead of Alert: Infection of a Virus)
Logged
Daniel Petri
Newbie
*
Offline Offline

Posts: 3



WWW
Yes
« Reply #2 on: January 30, 2004, 04:51:43 AM »

I've copied the exact subject from the e-mail and pasted it in the filter.
Logged
mark363
Über Jedi
*****
Offline Offline

Posts: 2649


« Reply #3 on: January 30, 2004, 04:59:04 AM »

What happens when you try the Test function at the bottom of the Filters page?
Logged
Daniel Petri
Newbie
*
Offline Offline

Posts: 3



WWW
« Reply #4 on: January 30, 2004, 05:11:13 AM »

It seems to work:

Filter Trace Results:

The Filter has matched the following condition:
$header_subject: begins Returned mail

Return-path copied from sender
Sender      = petri02@sd00001.lunarpages.com
Recipient   = petri02@sd00001.lunarpages.com
Testing Exim filter file "/etc/vfilters/petri.co.il"

Save message to: /dev/null 0660
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.


But still, I keep getting some e-mail that have the same subject...

 Crying or Very sad
Logged
leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 13870


WWW
« Reply #5 on: January 30, 2004, 01:48:00 PM »

Are you using only the cPanel "Mail", "Email Filtering", and not Spam-Assassin, as well?

Could it be that you have "white-listed" something that may be counter-acting that filter?

I don't know if that's it or even if that's relevent to anything, but it might be and the more we know what you have configured the better in trying to figure out the problem.

I know I had a problem with emails breaking through the filter and found out that the filter cannot read/filter anything written within html tags.  This wouldn't apply to your particular situation since the subject wouldn't be written within html tags, but there always seems to be an explanation to why the filter is not working.
Logged
emtinc
Space Explorer
***
Offline Offline

Posts: 8


« Reply #6 on: January 30, 2004, 09:02:12 PM »

SpamAssassin filter has stopped working for me in the last few days. When I look at the message source, it does not have any reference to SpamAssassin having looked at that message (before there used to be even on white-listed messages)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: