Compare commits

...

3 Commits

Author SHA1 Message Date
Dmitriy Alekseev
ab862d4a82 Update antivirus.conf to check for 'no' in SKIP_CLAMD 2025-12-30 00:46:53 +01:00
Dmitriy Alekseev
8834d04146 Add RSPAMD_SKIP_CLAMD environment variable 2025-12-30 00:28:48 +01:00
Dmitriy Alekseev
7733844722 [Rspamd] Do not try scanning eml with clamav when it's off 2025-12-30 00:27:45 +01:00
2 changed files with 3 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
{%- if env.SKIP_CLAMD == "n" or env.SKIP_CLAMD == "no" -%}
clamav {
# Scan whole message
scan_mime_parts = false;
@@ -9,3 +10,4 @@ clamav {
servers = "clamd:3310";
max_size = 20971520;
}
{% endif %}

View File

@@ -97,6 +97,7 @@ services:
- REDIS_SLAVEOF_PORT=${REDIS_SLAVEOF_PORT:-}
- REDISPASS=${REDISPASS}
- SPAMHAUS_DQS_KEY=${SPAMHAUS_DQS_KEY:-}
- RSPAMD_SKIP_CLAMD=${SKIP_CLAMD:-n}
volumes:
- ./data/hooks/rspamd:/hooks:Z
- ./data/conf/rspamd/custom/:/etc/rspamd/custom:z