Skip to content

fix: disable default rspamd clamav integration when SKIP_CLAMD=y#7180

Open
kvdb wants to merge 1 commit intomailcow:stagingfrom
kvdb:fix/skip-clamd-rspamd-disable
Open

fix: disable default rspamd clamav integration when SKIP_CLAMD=y#7180
kvdb wants to merge 1 commit intomailcow:stagingfrom
kvdb:fix/skip-clamd-rspamd-disable

Conversation

@kvdb
Copy link
Copy Markdown

@kvdb kvdb commented Apr 1, 2026

Contribution Guidelines

Short Description

Disable the default Rspamd ClamAV integration when SKIP_CLAMD=y, so Rspamd stops trying to scan via clamd:3310 and no longer logs ClamAV timeout warnings.

Affected Containers

  • rspamd-mailcow

Did you run tests?

What did you tested?

  • Verified rspamd-mailcow receives SKIP_CLAMD
  • Verified the hook creates /etc/rspamd/override.d/antivirus.conf
  • Verified rspamadm configdump antivirus shows clamav { enabled = false; }
  • Sent a test mail through SMTP on a live Mailcow setup
  • Checked rspamd-mailcow logs before and after the change

What were the final results? (Awaited, got)

  • Awaited: with SKIP_CLAMD=y, Rspamd should stop using the default ClamAV scanner and stop logging CLAM_VIRUS_FAIL / maximum retransmits exceed
  • Got: the clamav module was disabled in effective config, and the test mail was processed without ClamAV timeout warnings or CLAM_VIRUS_FAIL

@milkmaker
Copy link
Copy Markdown
Collaborator

Thanks for contributing!

I noticed that you didn't select staging as your base branch. Please change the base branch to staging.
See the attached picture on how to change the base branch to staging:

check_prs_if_on_staging.png

@kvdb kvdb force-pushed the fix/skip-clamd-rspamd-disable branch from 74d34b2 to bf79b72 Compare April 1, 2026 19:00
@kvdb kvdb changed the base branch from master to staging April 1, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants