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.

How to clear spam assassin from marking as ***SPAM***

Discussion in 'E-mail Discussions' started by Zekeman, Mar 8, 2017.

Tags:
  1. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Besides whitelisting I have a few emails being marked by SA as ***SPAM*** it's score is 3.4 but have it set to accept up to 8 so don't know why it's marking it like that. But is there a way to clear these emails so they don't get marked as spam without whitelisting them?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you post the output from /var/log/exim_mainlog for one of the affected messages? EX:

    Code:
    exigrep MSGID /var/log/exim_mainlog
    Replace "MSGID" with the message ID of an affected message (found in the message header).

    Thank you.
     
  3. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Michael,

    Thank you... here is the output:

    Code:
    2017-03-08 13:02:32 1clfus-0007QU-Va H=p1-204240.e.target.com [63.239.204.240]:59886 Warning: "SpamAssassin as wog detected message as spam (5.9)"
    2017-03-08 13:02:32 1clfus-0007QU-Va <= targetnews@e.target.com H=p1-204240.e.target.com [63.239.204.240]:59886 P=esmtps X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no S=117849 id=493.28403849405.201703081801343930024.0027175790@e.target.com T="Splish-splash swim for the whole fam." for
    2017-03-08 13:02:33 1clfus-0007QU-Va => zeke <> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <> RQcONThHwFjlbwAAfzjT5A Saved"
    2017-03-08 13:02:33 1clfus-0007QU-Va Completed
    As I said SA is set for 8 at default....
     
    #3 Zekeman, Mar 8, 2017
    Last edited: Mar 8, 2017
  4. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    cPMichael,

    Any ideas on this?
     
  5. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you confirm that required_score is commented in local.cf and force global is off in localopts? You can see the values by issuing the following commands,

    grep score /etc/mail/spamassassin/local.cf
    grep global /etc/exim.conf.localopts
     
  6. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Nick,

    local.cf
    # required_score 5.0

    Localopts

    globalspamassassin=0

    So I should # out the global?

    Thanks for the reply.
     
  7. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hey,

    No, that's good. Can you show us the required_score value of the cPanel username you are having issues with?

    grep required_score /home/username/.spamassassin/user_prefs
     
  8. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Nick

    # required_score 5 required_score 3

    Thanks again.

     
  9. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Where did you set the 8.0 exactly?

    I believe the "required_score 3" is triggering SA to detect the message as SPAM, login to your cPanel account and modify the score inside Apache SpamAssassin.
     
  10. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Ok so now... on the main screen of SA in the drop down menu its set to "8" under Filters...

    When I click Configure Apache SA in the SA main section it somehow was set to 3 in required score for requiored hits before a mail is considered spam.....

    Not to sound ignorant but what the main difference between the filter score on front page (SA) and the required score in the configure submenu of Apache SA?
     
  11. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    175
    Likes Received:
    9
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    The first one you see is for the Auto-Delete feature.
     
    cPanelMichael likes this.
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Zekeman,

    Could you confirm if the issue is now addressed?

    Thank you.
     
Loading...

Share This Page