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?

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 -> Spam and Virus Scanning, and then set “SpamAssassin client program” to “spamc”.

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

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