[SOLVED] whitelist clamav?

killmasta93

Renowned Member
Aug 13, 2017
958
56
68
30
Hi
Currently trying to whitelist on clamav but it does not seem to be working

these are the steps i took

echo "PUA.Pdf.Trojan.EmbeddedJavaScript-1" | sudo tee /var/lib/clamav/whitelist.ign2


then restarted the server

not sure what else to do?

Thank you
 
Thanks for the reply, trying to do the following but still doesn't work i restarted the server also

Code:
root@mail:~# cat /var/lib/clamav/whitelist.ign2
YARA.davivienda
root@mail:~# ls -l -h  /var/lib/clamav/whitelist.ign2
-rw-r--r-- 1 clamav clamav 16 Jan  6 23:32 /var/lib/clamav/whitelist.ign2


im getting the alert

Code:
Rule: Virus Alert
  Receiver: myemail@mydomain.com
  Action: block message
  Action: notify __ADMIN__
  Action: notify __SENDER__


Virus Info: YARA.davivienda.UNOFFICIAL (clamav)
 
Did you try whitelist eicar with an eicar test mail?

do you have the yara virus files? Try run clamscan -i your_virus_files and show the output.
 
thanks for the reply, this is what i get

Code:
root@mail:~# clamscan -i test.eml
test.eml: YARA.davivienda.UNOFFICIAL FOUND

----------- SCAN SUMMARY -----------
Known viruses: 11175625
Engine version: 0.101.4
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.08 MB
Data read: 0.16 MB (ratio 0.50:1)
Time: 57.826 sec (0 m 57 s)
 
did you test using the eicar?
pls share your test.eml.
 
Last edited:
I try download https://pastebin.com/raw/s8EKaP46 and test with clamscan, no detect virus. pls double confirm.

Code:
root@pmg:~# clamscan test.eml
/root/test.eml: OK

----------- SCAN SUMMARY -----------
Known viruses: 11037408
Engine version: 0.102.4
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.02 MB
Data read: 0.02 MB (ratio 1.25:1)
Time: 23.353 sec (0 m 23 s)
root@pmg:~#
 
thanks for the reply, after a while i had to disable the YARA rules which i did the following

nano /etc/clamav-unofficial-sigs/master.conf


and find lines and change to this

yararulesproject_enabled="no"

enable_yararules="no"
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!