The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Account Level Spam filter redirect to Spam Box

Discussion in 'E-mail Discussions' started by gunsuka, Aug 6, 2015.

  1. gunsuka

    gunsuka Member

    Jan 18, 2015
    Likes Received:
    Trophy Points:
    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.

    foranyaddress $h_to:,$h_cc:,$h_bcc: ( $thisaddress contains "" )
    and $message_headers contains "from nobody"
    save "$home/mail/\\$local_part/.Junk/" 660
    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?
    #1 gunsuka, Aug 6, 2015
    Last edited by a moderator: Aug 6, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.

Share This Page