SpamAssassin Auto-Delete Not Working As Expected

wonderfall

Member
Feb 5, 2015
6
0
1
cPanel Access Level
Website Owner
I have set my SpamAssassin Spam Filters to auto-delete all messages that it identifies as spam according to my configurations. But instead of deleting the spam messages, SpamAssassin is sending them to my spam folders, even I have Move to Spam Box turned off.

What the heck is going on? Why does SpamAssassin have a feature that doesn't work? Is there any other way I can get spam to be auto-deleted from the server level via cpanel, since this feature doesn't work?
 

wonderfall

Member
Feb 5, 2015
6
0
1
cPanel Access Level
Website Owner
Well, as I said,

"I have set my SpamAssassin Spam Filters to auto-delete all messages that it identifies as spam according to my configurations."

I have set a score of 4 or greater.

I've replaced my email address and domain with X's.
=======================
- Removed -
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
Houston
cPanel Access Level
DataCenter Provider
Hi @wonderfall

I asked for the settings because sometimes users will set the autodelete score to something that won't actually delete spam (like 9-10)

I'd like to help you but I do need you to provide the information I'm requesting. I can see the message is getting flagged as spam so that's going to rule out that SpamAssassin is not functioning.

Can you please show me a screenshot of the following UI at cPanel>>Email>>SpamFilters ->AutoDelete similar to the one I've provided

SA_autodelete.png

Thank you.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
Houston
cPanel Access Level
DataCenter Provider
Hi @wonderfall

It's ok, I don't need them added - the important part of those headers is:

Code:
X-Spam-Score: 46
X-Source-Cap: YXVyeW5jaGk7ZWRvYmVydGk7ZXNjb3J0LndlYnNpdGV3ZWxjb21lLmNvbQ==
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:51.0) Gecko/20100101 Thunderbird/51.0
X-Authority-Reason: nr=8
Return-Path: <[email protected]>
Return-Path: <[email protected]>
X-Source-Auth: [email protected]
X-Spam-Flag: YES
X-Spam-Bar: ++++
X-Spam-Report: Spam detection software, running on the system "server231.yourdomain.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see root\@localhost for details.
It's clearly marking the mail as spam and as I can see from your screenshot auto delete is set to 4.

This message received a spam score of 4.6, therefore, it should have been auto-deleted as well as flagged as spam.

It may be that I need you to open a ticket but first i'd like to know the following:

1. Which version of cPanel are you running?

2. What is present in the user prefs for SA
Code:
cat /home/$user/.spamassassin/user_prefs
Thanks!
 
  • Like
Reactions: Infopro