SpamAssassin seems slow to process

divemasterza

Active Member
Feb 2, 2013
29
2
3
South Africa
cPanel Access Level
Root Administrator
Twitter
Pretty much a vanilla configuration Centos server, really low loads.

On average a Spamassassin scan takes about 9s.
Code:
May 10 15:37:17 xxxxxx spamd[79439]: spamd: clean message (0.1/5.0) for xxxxxx:1000 in 8.7 seconds, 24233 bytes.                                                     
May 10 15:37:50 xxxxxx spamd[79439]: spamd: clean message (-0.1/5.0) for xxxxxx:1013 in 9.0 seconds, 26774 bytes.                                                   
May 10 15:38:16 xxxxxx spamd[79439]: spamd: clean message (-0.2/5.0) for xxxxxx:1013 in 9.8 seconds, 84797 bytes.
Is this normal, or is this too slow? sorry if it seems like a noob question, but I find 9s per message a bit sluggish :)
 

LucasRolff

Well-Known Member
May 27, 2013
128
74
28
cPanel Access Level
Root Administrator
Depends a bit on the target domain as well, the content of the email.

I have some scans that take 0.2 seconds, and some that take 7 seconds.

My average is 1.55 seconds.

Code:
cat /var/log/maillog |grep "spamd: clean message" | grep -v "cpaneleximscanner" | awk '{ sum += $13; n++ } END { if (n > 0) print sum / n; }'
1.55725
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
Houston
cPanel Access Level
DataCenter Provider
@LucasRolff is correct, it really is dependent on the contents of the mail as well as the domain. For instance if we use his command and look at my average:

Code:
cat /var/log/maillog |grep "spamd: clean message" | grep -v "cpaneleximscanner" | awk '{ sum += $13; n++ } END { if (n > 0) print sum / n; }'
8.11667
My average is pretty high as well though I don't send much mail from this test server.