Skip to content

Commit

Permalink
fix(rspamd): update default RSPAMD_clamavscansize to 2MB in README an…
Browse files Browse the repository at this point in the history
…d configuration
  • Loading branch information
stephdl committed Dec 3, 2024
1 parent 5ec524f commit fe59595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rspamd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rspamd/usr/local/templates/antivirus.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fe59595

Please sign in to comment.