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

Zekeman

Member
Nov 13, 2004
19
0
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?
 

cPanelMichael

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

Zekeman

Member
Nov 13, 2004
19
0
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 <= [email protected] 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 [email protected] 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....
 
Last edited:

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
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
 

Zekeman

Member
Nov 13, 2004
19
0
151
Nick,

local.cf
# required_score 5.0

Localopts

globalspamassassin=0

So I should # out the global?

Thanks for the reply.
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
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
 

Zekeman

Member
Nov 13, 2004
19
0
151
Nick

# required_score 5 required_score 3

Thanks again.

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
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
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.
 

Zekeman

Member
Nov 13, 2004
19
0
151
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.
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @Zekeman,

Could you confirm if the issue is now addressed?

Thank you.