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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with Regex expression

Discussion in 'E-mail Discussions' started by ITCynic, Jul 2, 2010.

  1. ITCynic

    ITCynic Registered

    Jul 2, 2010
    Likes Received:
    Trophy Points:
    I have SpamAssassin enabled in CPanel (version: 11.25.0-STABLE 46156) (Theme: cPanel X v2.5.0) on a shared hosting account.

    I do not want to set up a standard e-mail filter for handling the "X-Spam-Status" due to the fact that I only want to discard spam e-mail for 1 user and allow all other users to receive their spam-marked mail (The subject is written to include the words ** SPAM**).

    I have 1 e-mail address that has received more than 100 spam e-mails in the past 12 hours - all marked as SPAM in the e-mail subject line.

    What I want to do is set up a Regex expression along the following criteria.


    If "X-Spam-Status" = "Yes" and "To:" = "sample @" then "Discard"


    I assume this can be added to the .filter file on my shared hosting account or through the cPanel.

    Your help would be appreciated.

    Thank you in advance.

Share This Page