From: Baruch Even (baruch_at_nonexisting.hamakor.org.il)
Date: Tue 13 Jul 2004 - 13:46:59 IDT
* Noam Rathaus <noamr_at_beyondsecurity.com> [040713 12:55]:
> On Tuesday 13 July 2004 12:06, Baruch Even wrote:
> > * Noam Rathaus <noamr_at_beyondsecurity.com> [040713 11:40]:
> > > Hi,
> > >
> > > I am have found some difficulties in using SpamAssassin's network tests,
> > > my current timeout (recommended I believe) is 5 seconds for the network
> > > tests, as emails pore in faster than 1 every 5 seconds, I am lagging
> > > behind.
> > >
> > > I am trying to find a solution to this problem.
> > >
> > > My configuration involves (each email has to pass these three before a
> > > new email is handled):
> > > 1) Fetchmail pulling emails from POP3
> > > 2) Procmail launching SpamAssassin
> > > 3) Procmail checking to see whether its spam or not
> >
> > You should use spamc and spamd to keep SpamAssassin always running and
> > not load perl and all the modules all the time.
> >
>
> I just noticed that I am in fact calling spamc :) so, I am half way there...
> how can I speed up, maybe check 5 emails in parallel instead of one at a
> time?
>
> > You should make sure that you do not lock when accessing SA in procmail
> > so you can have parallel checks.
In your procmail recipe you should make sure not to have a second :
So the rule should like like:
:0fw
| /usr/bin/spamc
This will not use a local lockfile in procmail so that procmail will
allow concurrency.
You need to make sure your SMTP server allows concurrent delivery with
procmail, You should also use the -m option to spamd to limit
concurrency, so that you won't overload your system.
Take a look at: http://wiki.apache.org/spamassassin/FasterPerformance
though it doesn't say much that wasn't said here already.
Baruch
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Tue 13 Jul 2004 - 14:02:40 IDT