Account Level Spam filter redirect to Spam Box

gunsuka

Member
Jan 18, 2015
10
0
1
cPanel Access Level
Root Administrator
Yea, I know this thread is VERY old but in my searching this is the only one I can find.

Mod Note: Original Thread

I am trying to do exactly with the OP was trying to do back in 2009.

I have an account level filter (called Global Email Filters now in Lantern) and when the account level filter triggers I want to move the message into the specific user's spam folder.

EXIM has a variable $local_part but if I attempt to use it cPanel escapes the $ in the filtering rule it is generating. Here is an example of a filter that cPanel might create to be used by EXIM.

Code:
if
foranyaddress $h_to:,$h_cc:,$h_bcc: ( $thisaddress contains "@example.com" )
and $message_headers contains "from nobody"
then
save "$home/mail/example.com/\\$local_part/.Junk/" 660
endif
You can see that cPanel is using the EXIM variable $home but if I try and use $local_part it gets escaped.

Is there any way to inform cPanel that I want to use a variable and that it is actually not a string?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

There's no native support for this when creating filters through cPanel. You may want to open a feature request for native support of that variable in the filter drop-down options:

Submit A Feature Request

Thank you.