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.
This commit is contained in:
Manuel Vázquez Acosta
2019-02-04 15:28:50 -05:00
parent 4d58b322bc
commit 611363cbe4

View File

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