From fe5959553488b655c176632c05207b9a171f7d1e Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 3 Dec 2024 17:17:13 +0100 Subject: [PATCH] fix(rspamd): update default RSPAMD_clamavscansize to 2MB in README and configuration --- rspamd/README.md | 4 ++-- rspamd/usr/local/templates/antivirus.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rspamd/README.md b/rspamd/README.md index adcfd443..344738f7 100644 --- a/rspamd/README.md +++ b/rspamd/README.md @@ -35,10 +35,10 @@ Well-known ports - `RSPAMD_bypass_score` If undefined (default) bypass rules are applied as an accept prefilter. Set to a negative number to turn the rules to ham score and run antivirus checks (e.g. `RSPAMD_bypass_score=-5.000`) -- `RSPAMD_clamavscansize` sets the maximum size (default 20 MB) for +- `RSPAMD_clamavscansize` sets the maximum size (default 2 MB) for email attachments scanned by ClamAV in Rspamd. Attachments larger than this value are skipped to optimize performance. - + ## Volumes - `/etc/rspamd/override.d` Rspamd custom configuration diff --git a/rspamd/usr/local/templates/antivirus.conf.j2 b/rspamd/usr/local/templates/antivirus.conf.j2 index dd315fd1..cfce182f 100644 --- a/rspamd/usr/local/templates/antivirus.conf.j2 +++ b/rspamd/usr/local/templates/antivirus.conf.j2 @@ -8,7 +8,7 @@ clamav { action = "reject"; # If `max_size` is set, messages > n bytes in size are not scanned - max_size = {= env.clamavscansize | default(20000000) =}; + max_size = {= env.clamavscansize | default(2000000) =}; scan_mime_parts = false;