Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2008, 12:50
klonos klonos is offline
Member
 
Join Date: Apr 2007
Posts: 78
Thanks: 5
Thanked 3 Times in 3 Posts
Question clamav - how to exlude filetype from scan?

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
__________________
You can support Howtoforge and all the people behind it too. Consider becoming a supporter. It only costs a few and has to offer so much more than it already does. Take a look here
Reply With Quote
Sponsored Links
  #2  
Old 14th June 2008, 19:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I'm not sure how to do this...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th June 2008, 17:37
klonos klonos is offline
Member
 
Join Date: Apr 2007
Posts: 78
Thanks: 5
Thanked 3 Times in 3 Posts
Question 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?
__________________
You can support Howtoforge and all the people behind it too. Consider becoming a supporter. It only costs a few and has to offer so much more than it already does. Take a look here
Reply With Quote
  #4  
Old 16th June 2008, 14:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird issue with clamav and ISPConfig 2.2.23 Norman General 1 25th April 2008 10:12
ClamAV Milter Issues - Virtual Hosting Howto With Virtualmin On CentOS 5.1 pheniks HOWTO-Related Questions 14 26th March 2008 11:04
debian etch courier pop3 issue docean Installation/Configuration 6 20th March 2008 15:38
Clamav starting error scherpenzeel Installation/Configuration 3 19th May 2006 14:01
ClamAV for postfix-courier-mysql (Debian - Sarge) toastmaster HOWTO-Related Questions 2 24th February 2006 19:00


All times are GMT +2. The time now is 10:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.