Spamassassin not logging outgoing email

Operating System & Version
Cloudlinux 7.8
cPanel & WHM Version
11.94.0

p.jiraphat

Member
Sep 25, 2017
10
1
3
Bangkok
cPanel Access Level
Root Administrator
When i enable Spamassassin to check outgoing email and forward email as per this configuration

Scan outgoing messages for spam and reject based on defined Apache SpamAssassin™ score = 10
Do not forward mail to external recipients based on the defined Apache SpamAssassin™ score = 5

Spamassassin did block outgoing/forward email when spam score reach limit, but it not logging which rules that trigger so it so hard to know why that email is mark as spam and got reject when my customers ask.

As me finding around in request/forum cPanel team suggest that it logging in /var/log/maillog (Spamassasin outgoing spam scoring information on undelivered email message), but i'm not finding it at all even after find with all file in /var/log/ or make custom log location by modify /usr/local/cpanel/3rdparty/perl/532/bin/spamd file to logging to another location it still nothing in new log about outgoing score.

Where did this logging going? or how cpaneleximscanner work?

Have test on 3 system it all doing the same.


SpamAssassin version 3.4.4 running on Perl version 5.32.0
 

Attachments

Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
895
313
cPanel Access Level
Root Administrator
Hey there! It sounds like you've done quite a bit of testing on this already, so it seems like this would be best handled through a ticket, as I would expect those to be logged by default. Could you open a ticket with our support team and then post the number here so I can follow along?
 

p.jiraphat

Member
Sep 25, 2017
10
1
3
Bangkok
cPanel Access Level
Root Administrator
Howdy, @p.jiraphat! In following up on the ticket, I see that the issue appears to have been with the sysfilter settings getting the message bounced at SMTP-time before being handed off to SpamAssassin.

Please let us know if we may be of further assistance.
Hi i've send more information in ticket but to clarify email not got reject by sysfilter since SMTP log is show as
"Warning: "SpamAssassin as cpaneleximscanner detected OUTGOING smtp message as spam" not "cancelled by system filter" and email that got reject is not relate with condition in sysfilter at all.
 

p.jiraphat

Member
Sep 25, 2017
10
1
3
Bangkok
cPanel Access Level
Root Administrator
Hi , to update this case and for someone that may encounter the problem that Spamassassin will stop logging after sometime and need to restart for it to log again.

As per cPanel Analyst . Disable Spamassassin from dormant mode (which enable by default) should be help.

- Access WHM » Server Configuration » Tweak Settings » Software » Dormant services.
- Unselect Spamd from the list of Dormant Services.
- Restart the Spamd and cpsrvd services