global filters and spamassassin
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.
-
Rather than use the auto-delete spam setting, have you tried setting up a second global filter to discard the message if it is above a certain spam score ? You will also have to ensure your other spam score rule has 2 criteria in it - one for 'is above' score and one for 'is below' score See Global Email Filters - Version 60 Documentation - cPanel Documentation and How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation 0 -
Hello, The "Auto-Delete SPAM" button creates a filter like this in the /etc/vfilters/$domain file: 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.0
Please sign in to leave a comment.
Comments
2 comments