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 seems slow to process

Discussion in 'E-mail Discussion' started by divemasterza, May 10, 2019.

  1. divemasterza

    divemasterza Active Member

    Joined:
    Feb 2, 2013
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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 :)
     
  2. LucasRolff

    LucasRolff Well-Known Member

    Joined:
    May 27, 2013
    Messages:
    60
    Likes Received:
    45
    Trophy Points:
    18
    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
     
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

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

    LucasRolff Well-Known Member

    Joined:
    May 27, 2013
    Messages:
    60
    Likes Received:
    45
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Why not? Can sell a lot of shoes on a test server!
     
    cPanelLauren likes this.
  5. divemasterza

    divemasterza Active Member

    Joined:
    Feb 2, 2013
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thank you all :)
     
    cPanelLauren 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