global filters and spamassassin

tcnolan7

Member
Dec 30, 2016
5
0
51
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.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
470
113
UK
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
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.