Speeding up Spam Assassin

Adil Kodian akodian-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Aug 4 21:11:19 UTC 2004


On Wed, 04 Aug 2004 17:04:07 -0400, Michael Coburn <michael-3aH0qR8MVRD3fQ9qLvQP4Q at public.gmane.org> wrote:
> On my Debian stable / qmail P2 333 with 128M of ram and approximately 50
> messages per hour, the average message requires 3 - 5 seconds to process
> through spamc, and sometimes as long as 70 seconds.

If youve got a good amount of RAM on your machine (and it has a UPS
and is stable), create a tmpfs partition, and mount it as
/var/spool/postfix

thus all spamassassin reading and writing will be done from memory. 
This will greatly speed up delivery.  The downside is that you have to
be really careful when you shut this machine down. Make sure that
there are no messages in the mailq (either incoming or outgoing)
before yuo shut the box down.

I would suggest using two mailservers. Both receive a copy of the
mail, and one is backup. THe live one has tmpfs.

adil.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list