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!

global filters and spamassassin

Discussion in 'E-mail Discussion' started by tcnolan7, Dec 30, 2016.

Tags:
  1. tcnolan7

    tcnolan7 Registered

    Joined:
    Dec 30, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Website Owner
    Hi all,

    We have Auto-Delete enabled in SpamAssassin for anything 8 and over. And we have a global filter rule to move any email with a score of 5 and over to a specific mail folder.

    Even though the Auto-Delete rule is first under Global Filters, that email is not deleted. All the spam (8 and up) is moved to the folder.

    Are we missing something? Is there a way to have the Auto-Delete happen first and then move the remaining spam to the folder?

    Thank you.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    735
    Likes Received:
    251
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The "Auto-Delete SPAM" button creates a filter like this in the /etc/vfilters/$domain file:

    Code:
    if not first_delivery and error_message then finish endif
    
    #Generated Apache SpamAssassin™ Discard Rule
    if
     $h_X-Spam-Bar: contains "+++++"
    then
     save "/dev/null" 660
    endif
    You'd want to disable this option, and instead setup an additional filter like the one mentioned in the previous response if you want to configure multiple actions for different SPAM score rules.

    Thank you.
     
    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