Hey everybody! long time since I've last posted something... Is there any way to exclude certain attachments from clamav scan (e.g. by file extension/name/content)? I am referring to both the Virtual Domains & ISPconfig HowTos. Is there some config file in clamav that holds that info? BTW, Happy Summer season to everybody ... or to just those that can afford it + have the free time to enjoy it
command line Well, I don't know if this helps at all, but I've found the following params that can be used with clamscan: --exclude=PATT, --exclude-dir=PATT Don't scan file/directory names containing PATT. It may be used multiple times. --include=PATT, --include-dir=PATT Only scan file/directory names containing PATT. It may be used multiple times. So if anyone knows how clamav is called to scan a file/attachment, then maybe we can try adding the above to this call. Any ideas anybody?
If you're using amavisd, then you can add the options to your amavisd.conf (there's a ClamAV section somewhere in it). If you're using ISPConfig, you can add this to the antivirus.rc.master template in /root/ispconfig/isp/conf.