[Rspamd-Users] Discarding email detected as viruses by ClamAV

Danjel Jungersen danjel at jungersen.dk
Tue Feb 3 07:52:46 UTC 2026


Hi.

I don't see a response on this one.

Have you made it work?


On 07-01-2026 15:34, Steve Siirila via Users wrote:
> Has anyone successfully configured Rspamd to use ClamAV to discard anything
> it detects as a virus?  We can get it to reject such email, but we want it
> silently discarded instead.

In: /etc/rspamd/local.d/antivirus.conf
I have this:
clamav {
  attachments_only = false;
  symbol = "CLAM_VIRUS";
  type = "clamav";
  action = "reject";
  servers = "/var/run/clamav/clamd.ctl";
  retransmits = 5;
  timeout = 60;
}

If I read this correctly:
https://docs.rspamd.com/configuration/metrics/

And you have rspamd version 1.9 or above, you should be able to replace 
reject with discard

I hope it works!

:-)

-- 
Med venlig hilsen/Kind regards
Danjel Jungersen
Mail: danjel at jungersen.dk
Mobile: +45 20 42 20 11

Jungersen Grafisk ApS,
Holsbjergvej 39, DK-2620 Albertslund,
Denmark.
Tel: +45 43 64 10 00

WEBSHOP: PRINTLIGHT.DK <https://www.printlight.dk> | WWW.JUNGERSEN.DK 
<https://www.jungersen.dk>

Logo <https://www.jungersen.dk>


More information about the Users mailing list