This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Spamassassin performance

Hello everyone!

During the weekend we got about 14000 Spams.
Now spamassassin is filtering them but filtering takes about 4 second per email!
At this pace, SA would need another 10 (ten!!) hours to filter through those mails.

We have a 1,2Ghz box with 1GB DDR2 RAM.
CPU-usage by spamd never climbs over 40%
Virus detection is turned off.

Any idea what could speed up the process? Is such poor performance "normal" for spamassassin?

Thanx in advance, DiePlage


This thread was automatically locked due to age.
  • Hi Folks,

    I just got of the phone with astaro support and it looks like I have just been another victim of the well known "prefetching-bug". I didn't get all the details but it seems to be the database-errors produced while prefetching that lock up the contentfilter later on and make filtering really slow...

    So long, DiePlage
  • What version of Astaro are you running? Did Astaro give you a workaround to your issue?
  • The "workaround" was quite simple: Disable prefetching.
    To do that without loosing emails you have of course to make sure, that all emails stored so far on you astaro are fetched by clients / internal mailserver BEFORE turning off prefetching. This part is tricky because be had around 14000 emails (99.99% spam) waiting for being scanned on the astaro. With the poor performance of spamassassin this would have taken at least 20 hours.
    So we decided to disable spam protection on the astaro and let it pass all emails unfiltered to our local mailserver just to get an empty queue on the astaro box and to disable prefetching. Of course beforere that we set up anti-spam measures on our local mailserver as well.
    Fetching those 14000 Emails from the astaro gateway still took about one hour, don't ask me why.

    After prefetching was disabled I turned spam/virusprotection back on. The system is running smoothly since that.

    After all, our problems were due to three events occuring simultaniously:

    We reinstalled the gateway due to an update-problem. Therefore we had some tailback with processing emails.
    In the same time we had a massive spam load (~50.000 spams in 48 hours), which is 200 times the load of an average day.
    due to the prefetching-bug the content filter framework demon (cffd) kept locking up itself slowing down filtering immensely.

    Maybe this helps other users with similar problems...