On 2017-08-07 12:56, Wolfgang Rosenauer wrote:
Hi,
Am 07.08.2017 um 12:42 schrieb Carlos E. R.:
Many things, it is just that clamav is the biggest chunk except for firefox and thunderbird.
just to throw that in. Antivirus/Antispam is a quite expensive (as in memory, cpu and maintenance) function. As a mailserver admin this is something which is somehow expected.
Yes, that I understand.
If you run clamav on an extremely low traffic mailserver there still should be the option to run it on demand e.g. from amavisd-new. Have you looked into that option?
clamd is installed in the same clamav rpm, so it can't be removed. If clamd is not running, amavis tries insistently to reach it a few times before giving up and calling clamav or clamscan directly as a separate process. This is repeated for each mail, I think. And of course, starting clamav once per mail is heavy on a fetchmail run, which can pick a thousand emails in few minutes. I do not see how to configure amavis for not using clamd. If I start amavis, it starts clamd as a dependency. The best idea seems to be to configure systemd to start clamd by socket and stop it by timer. I need a howto for dummies on this. :-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)