Don't generate the clamav configuration if ANTIVIRUS is none.

Otherwise the rspamd will try to connect to none, timing out several times and
leading to poor performance.
master
Manuel Vázquez Acosta 6 years ago
parent 4d58b322bc
commit 611363cbe4
No known key found for this signature in database
GPG Key ID: DD46E18C119E9CFA

@ -1,6 +1,8 @@
{% if ANTIVIRUS == 'clamav' %}
clamav {
attachments_only = true;
symbol = "CLAM_VIRUS";
type = "clamav";
servers = "antivirus:3310";
}
{% endif %}

Loading…
Cancel
Save