clamav - how to exlude filetype from scan?

Discussion in 'HOWTO-Related Questions' started by klonos, Jun 13, 2008.

  1. klonos

    klonos New Member

    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 :)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I'm not sure how to do this... :eek:
     
  3. klonos

    klonos New Member

    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?:confused:
     
  4. falko

    falko Super Moderator ISPConfig Developer

    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.
     

Share This Page