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.

global filters and spamassassin

Discussion in 'E-mail Discussions' 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:
    326
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,419
    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.
     
Loading...

Share This Page