Rspand detecting virus in emails through Clamav scanning

en

#1

Hi

I would like to scan all incoming emails through Clamav antivirus and want to add X-Virus header through Rspand in the email, which will take the email to the virus folder in the inbox with the help of dovecot.
Someone can help me where to start and how this can be achieved?

I configured Clamav with Rspand according to this article https://workaround.org/ispmail/stretch/filtering-viruses-malware but I can’t get the X-virus header. Can someone tell me how this header be added in the email?


[Security tips inside] How to check if the server is hacked?