On Thu, 2010-07-15 at 04:31 -0700, Gnanam wrote:
> > I want to integrate SpamAssassin in my web-based application to test spam
> > score of the "email content" that our application User's wish to send in
> > mail composing page itself - even before sending.

> As I'm integrating SpamAssassin command-line tool in our web-based
> application to test spam score of the email message, hundreds of application
> Users may perform spam score test at the same time.
> 
> My question is: Will the command-line tool "spamassassin" or "spamc" be
> stable/reliable enough to test hundreds of different email messages at the
> same time?

No stability concerns with either.

However, with anything other than a trivial load, do not use the plain
spamassassin script, but the spamd daemon with the light-weight spamc
client. The daemon is much faster and consumes less resources, because
SA does not have to compile all rules and start a full Perl process each
time -- unlike the spamassassin script, which does.


However, you will most likely *not* be able to scan "hundreds of
messages at the same time". Your machine simply doesn't have the
resources for that.

Do you really expect them to be scanned simultaneously, at the very same
moment!? A continuous, steady stream of a hundred messages every few
seconds? Or are you referring to "same time" as in a human meaning,
actually covering minutes or even more.

Depending on your hardware and rules / DNS BL optimization for your
specific case, scanning a message should take less than a few seconds,
while some of them actually can be processed simultaneously. Think RAM.
So yes, hundreds of messages per minute definitely is possible.


But these are human generated messages, right? Exactly how many monkeys
do you have typing, to expect anything even close to that throughput?

I guess I'm still not clear on your actual intention and environment.
Hope you do understand, that the receiver is likely to perform his own
spam filtering, with criteria differing from yours. In particular, all
those DNS BL and reputation based tests you simply cannot perform before
sending the mail.


-- 
char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to