On Fri, 2012-12-28 at 21:48 -0800, Sean Tout wrote: > I have practically given up on the original > perl code since I'm unable to find out the issue. With spamc, I can get a > decent performance. > IMO, unless you need the extra facilities of amavis-new or one of the other smart wrappers for SA and Clamav, you're almost always better off using spamc/spamd for the reasons already given. FYI amavis-new is written in Perl and works by loading the SA code so it can directly pass messages to SA and read its responses.
However, don't mistake using spamc/spamd for 'not using the original Perl code' - it isn't. Although spamc is a simple purpose-built, fast C program which adds minimal runtime overheads, spamd is little more than simple daemon launcher wrapped round the standard SA code. Look at it with less and you'll see what I mean... Martin