From 611363cbe4c24ed8fd5d2ad9913f60676c9e63e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=A1zquez=20Acosta?= Date: Mon, 4 Feb 2019 15:28:50 -0500 Subject: [PATCH] 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. --- services/rspamd/conf/antivirus.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/rspamd/conf/antivirus.conf b/services/rspamd/conf/antivirus.conf index a72f79c1..7bf646b8 100644 --- a/services/rspamd/conf/antivirus.conf +++ b/services/rspamd/conf/antivirus.conf @@ -1,6 +1,8 @@ +{% if ANTIVIRUS == 'clamav' %} clamav { attachments_only = true; symbol = "CLAM_VIRUS"; type = "clamav"; servers = "antivirus:3310"; } +{% endif %}