1 spamassassin invocation happens at 1 time

2 posts / 0 new
Last post
#1 Fri, 09/12/2008 - 06:15
borxa

1 spamassassin invocation happens at 1 time

How I get spamassassin invocation happens at 1 time, to keep the load down.

I want a configuration for each virtual server, but if i use spamassassin instead of spamc, when the server recive more spam the memory is not enough.

I see in http://wiki.apache.org/spamassassin/UsedViaProcmail this:

The lock file ensures that only 1 spamassassin invocation happens at 1 time, to keep the load down.

# :0fw: spamassassin.lock * < 256000 | spamassassin

But the configuration on my virtual servers haven't spamassassin.lock. I put it manualy but it don't work

:0fw: spamassassin.lock | /usr/bin/spamassassin --siteconfigpath /etc/webmin/virtual-server/spam/121801999420069 SPAMMODE=1

If I send several emails to this server, the server create several spamassassin proceses.

How I can to lock spamassassin for the server hasn't more than 1 spamassassin procces?

Fri, 09/12/2008 - 19:02
andreychek

Hello,

It's actually a bit easier than that -- you can enable usage of the spam daemon (along with spamc) by logging into Virtualmin, clicking Email Messages -&gt; Spam and Virus Scanning, and then set &quot;SpamAssassin client program&quot; to &quot;spamc&quot;.

At that point, Virtualmin will set it all up for you.

You might also consider setting the virus scanner to use &quot;Server scanner (clamdscan)&quot; in that same section.
-Eric

Topic locked