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!

SOLVED Creating new exim rule for filtering spam

Discussion in 'E-mail Discussion' started by rs200, May 7, 2019.

  1. rs200

    rs200 Member

    Joined:
    Dec 4, 2017
    Messages:
    23
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    Hi,

    i need to add a new rule in exim configuration for filtering spam that has a particulary subject.

    I read How to create a custom filter rule file but i can't understand how to name the new file.

    In the /usr/local/cpanel/etc/exim/sysfilter/options/ dir i have some files, for example "fail_spam_score_over_100", "fail_spam_score_over_200", "spam_rewrite", etc...

    Have i create a file named with a specific name?

    And is this correct the above syntax to block the email with the subject "The subject"? Thanks

    Code:
    if
       $header_subject: contains "The Subject"
    then
       if error_message then save "/dev/null" 660 else fail "No spam here" endif
       finish
    endif
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rs200

    rs200 Member

    Joined:
    Dec 4, 2017
    Messages:
    23
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    I resolved in another way. There is the Global Email Filters section in cPanel, very easy and effective. That saved my time :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,248
    Likes Received:
    478
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I'm glad you were able to find a solution for your issue and thanks for letting us know how you resolved it!
     
    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