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!

SpamAssassin Auto-Delete Not Working As Expected

Discussion in 'E-mail Discussion' started by wonderfall, Jan 14, 2019.

  1. wonderfall

    wonderfall Member

    Joined:
    Feb 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. Paffy

    Paffy Registered

    Joined:
    Jan 14, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Belgium
    cPanel Access Level:
    Root Administrator
    that's depending on spam score of email which you want to delete. Verify your spamscore normally the default is : 5
     
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,141
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @wonderfall


    I haven't seen any instances in which this isn't working as intended yet and I'm wondering if there isn't a misconfiguration. What's the score set to for autodelete? Can you also provide the spam headers of a message which should have been deleted?


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. wonderfall

    wonderfall Member

    Joined:
    Feb 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    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 -
     
    #4 wonderfall, Jan 16, 2019
    Last edited by a moderator: Jan 17, 2019
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,141
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. wonderfall

    wonderfall Member

    Joined:
    Feb 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks, I provided the header of one of the spam messages, as you had requested, but that got removed. (Why is that??)

    Here is the screenshot you requested.
     

    Attached Files:

  7. wonderfall

    wonderfall Member

    Joined:
    Feb 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thank you very much!
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,877
    Likes Received:
    482
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Too many actual IP addresses, emails, and other personally identifiable bits of information were not obfuscated so it was removed entirely.

    Please see: Guide To Opening An Effective Forums Thread
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. wonderfall

    wonderfall Member

    Joined:
    Feb 5, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Makes sense. If it's still helpful, I'll make a screenshot and black out all those.
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,877
    Likes Received:
    482
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please feel free to. No need for a ss though, just edit out all the IP's emails etc.

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,141
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    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: <user@REMOVED.tld>
    Return-Path: <user@REMOVED.tld>
    X-Source-Auth: user@REMOVED.tld
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Infopro likes this.
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