Rspamd: how many viruses have been blocked?

email
mail2
rspamd

(Saito Benkei) #1

As far I understand, rspamd treats viruses detection as a spam.

I would like to see in the rspamd dashboard, in the graphic status and in the throughput, how many mails have been blocked because they contain viruses and how many have been blocked because they are spam.

Do you think that is possible to do that?


(Giacomo Sanchietti) #2

I guess yes, @stephdl do you know how to do it?


(St├ęphane de Labrusse) #3

Well not sure that you could separate easily spam and virus. History is stored in a redis database
to connect : redis-cli -s /var/run/redis-rspamd/rspamd

Mail are rejected with this tag CLAMAV_VIRUS(1)[Eicar-Test-Signature] in history, but after that I do not know much.
I suppose that you have to interrogate the redis database