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!

Custom SpamAssassin- Multi Rules

Discussion in 'E-mail Discussion' started by amjad.q, Jun 11, 2018.

  1. amjad.q

    amjad.q Member

    Joined:
    Jul 2, 2016
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I would like to add Custom SpamAssassin- Multi Rules with OR , for Ex

    body LOCAL_DEMONSTRATION_RULE /test/
    OR
    body LOCAL_DEMONSTRATION_RULE /test2/
    OR
    body LOCAL_DEMONSTRATION_RULE /test3/

    score LOCAL_DEMONSTRATION_RULE 0.1
    describe LOCAL_DEMONSTRATION_RULE This is a simple test rule


    How can I do the rules with OR ?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,221
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @amjad.q

    You can create a ruleset and have it check for multiple items without the use of OR. For examples you can look at the rulesets added to cPanel for the KAM and CPANEL custom rules located at:
    Code:
    /usr/local/cpanel/etc/mail/spamassassin/
    They have a tutorial on writing rules as well, which can be found here: WritingRules - Spamassassin Wiki and they also have a large number of custom rulesets that you can pull examples from located here: CustomRulesets - Spamassassin Wiki

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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