Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Account Level Spam filter redirect to Spam Box

Discussion in 'E-mail Discussion' 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 Technical Support Community Manager 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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice