Account Level Filter Will not Work for "To"

imperium2335

Registered
May 23, 2012
4
0
51
cPanel Access Level
Root Administrator
Hi,

I am trying to set up two filters, one of which works perfectly but the other does not.

My first filter: From - Contains - [email protected] - redirect to [email protected], discard message

Second filter: To - contains - [email protected] - redirect to [email protected], discard message

The second filter does not work in practise, nothing happens at all, the recipient gets the email and nothing is redirected.

Here is the output from the test filter, which is correct, but doesn't work in practice:

The Filter has matched the following condition(s):
$message_headers contains [email protected]

Condition is true: $header_to: contains [email protected]
Return-path copied from sender
Sender = [email protected]
Recipient = [email protected]
Testing Exim filter file "/etc/vfilters/xxx.com"

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

imperium2335

Registered
May 23, 2012
4
0
51
cPanel Access Level
Root Administrator
Hi,

I want to intercept an incoming email from a given address and not have it arrive at the user A's inbox.

I also want any email user A sends to that email address to be intercepted and deleted, so the person on the other end doesn't get it.

How can this be done? Is the cPanel account filtering bugged?
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
I'm not able to intercept (which is what it sounds like your rule #2 wants to do) no matter what action I select, with no other filters in place. Whether I do this via Account Level or User Level, same result. Is there an issue? Not sure there, I've never attempted to intercept and forward an email this way before.

Hopefully someone else has a better answer for you.
 

imperium2335

Registered
May 23, 2012
4
0
51
cPanel Access Level
Root Administrator
Is there any other way I can achieve the same results in WHM/cPanel? It's important that the email is redirected, and then deleted so that the intended recipient does not receive the email.
 

Hudsound

Registered
Mar 7, 2013
1
0
1
cPanel Access Level
Reseller Owner
I am having this problem as well. Simply wanting to stop emails to a certain address. I copy the address exactly into the "to" box and tell it to discard. The next email to this address comes through. How could this simple function by done incorrectly. any suggestions? thanks!