PDA

View Full Version : is cpanel filtering disabled by default?


syntiva
03-22-2005, 10:30 AM
Does anyone know how to enable email filtering in cPanel?

I don't mean how to create a filter...I mean I have a filter and its does not get applied..or even seem to be run. When I use the trace tool nothing is displayed, either positive or negative. The normal output "Delivery will occur as normal", etc is not shown. I created a few basic filters that should work (nothing complicated) and delivery always occurs normal despite the filter.

I don't know what's used in the background to run the filter. Is this supposed to be enabled by default? Can I enable this globally in whm or somewhere?

muchas gracias!

cprompt
03-22-2005, 02:21 PM
Filters work straight away without any "switching on".
Why don't you post an example of one of your filter rules in case anyone else can spot what's going wrong?

syntiva
03-22-2005, 03:59 PM
thanks for the info...

I played around more and its just the primary domain (our company) which has this problem. If I create filters for other domains they work OK.

I attached a few screenshots here that shows the filter for a test. I just try to filter "test" from the default trace email. The first image is the test. The second image is the working responce. The third image is the response (or lack there of) on our domain. This is just one blatant example. I have tried many others for different types of filtering (contains, startswith, etc)

I deleted the .filters file (which looked fine anyway) and created new filters with no luck. I didn't see any cpanel docs that would help.

Any ideas on how to trouble shoot this?

cprompt
03-23-2005, 06:17 AM
I believe the problem to be you are sending mail to your localhost from your localhost. This mail is inherently trusted by the server and delivered regardless of any filters. Try sending some mail from an external email account and the filter should work.

syntiva
03-24-2005, 12:40 AM
Thanks cprompt, but that's not it...

The file is getting ignored no matter where the message is sent and no matter what the contents of the file.

I'll dig into Exim more (when I get a chance) and see if I can figure it out. I'll post when I get somewhere...

syntiva
04-08-2005, 12:17 AM
Just to close this thread....

I finally just reinstalled exim via the script below and it now works fine.

/scripts/exim4

However, the cause of the problem remains unknown. :-(

Tony
04-08-2005, 06:07 AM
On a wee side note, that is rather helpful in debugging, from the shell type:

service exim stop
exim -bh some.remote.ip.address

This will allow you to fake a mail reception and see exactly what exim is doing.

Obviously when you're done, restart exim with:

service exim start