Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: John Ruddy on February 07, 2003, 10:16:38 PM

Title: Spamassassin killing SME! HELP!
Post by: John Ruddy on February 07, 2003, 10:16:38 PM
Hi.. I installed spamassassin per the instructions I found on this forum (using ifspamh) .. everything works GREAT except when LARGE emails are received (ie 35MB+)

When these large emails are received, it fires up Spam Assassin, but instead of SA kicking it out due to size, it trys to process the file which ultimately eats up all of the available memory and essentially kills the server.

Any ideas on how to allow these emails to bypass Spam Assassin completely would be greatly appreciated!
Title: Re: Spamassassin killing SME! HELP!
Post by: Greg Zartman on February 08, 2003, 12:27:26 AM
First,  I say that sending 35mb email messages is never good practice.  Many mail servers will reject email of that size.  You are much better off uploading the file to you webserver and sending a link to the file in your message.

With that said...  Here is something that might help you (from spamassassin FAQ):

4.10. SpamAssassin/spamd seem to take a very long time to scan large emails, and are bogging down my server. What can I do?
Spamassassin will attempt to scan anything you throw at it. However, the time taken to scan messages rises exponentially with the message size. The best way to deal with this problem is to limit the size of messages that get scanned by SpamAssassin.
For procmail, the following recipe works:


     :0fw
     * < 200000
     | spamassassin

(The "* < 200000" line prevents messages over 200,000 bytes from being passed to SpamAssassin.)
If you're using spamd, you should be aware that spamc will only pass messages under 250k in size to spamd. This is a built-in limit that you can override using the "-s" option on the command-line. Refer to the spamc man page for more details.

Edit this entry / Log info / Last changed on