ClamXav can be downloaded directly or through the Mac App Store. The Mac App Store version does not contain the Sentry tool that allows constant scanning for changes by folder, so this tutorial is for the download version which you can get at http://www.clamxav.com/.
These instructions assume you’re running Snow Leopard (10.6) or Lion (10.7), if you’re running a previous version some features need to be enabled, see the instructions here: http://www.clamxav.com/docs_menu.php. After installation, log out of your Mac and back in.
When you first launch ClamXav it’s a good idea to update the Virus Definitions. Next let’s set some preferences.
- You can set these as you desire, especially the audible alerts
- Believe it or not, UNcheck scanning your email for malware. Your spam filter will catch most of this and put it in a spam bucket but ClamXav will stil find it and give you CONSTANT popups about it. I also don’t update virus definitions on launch because we’ll put it on a schedule in a later step. I DO however allow the application to check for updates on launch like any other program.
- Click on the Sentry tab next.
Sentry keeps an eye on any folder you choose. We’re going to set it to watch your downloads folder, because that’s where new stuff shows up that we want scanned.
Drag Home Folder Into the Window
Drag your home folder into the window. Alternatively you can push the plus button and navigate to your home folder.
Your Home Folder Will Now be Monitored
- Verify – you should see simply ~/Downloads in the folders being watched.
- Click on the Schedule tab next.
It’s a good idea to allow virus definitions to be updated daily so set the pulldown to a time you’re sure your machine will be on. Now simply let ClamXav run and hope you never hear back from it!
Run a Full Scan
Run a full scan of your home folder. This took about 3 hours for my very large home folder. It found 450 .emix files, where are all Mail files that are probably in my spam and junk mail folders. Once the scan is done, you can right click on the files and show where they are in the finder, or you can simply choose delete from that menu, or select them all and hit command-delete.
Now that your machine is clean, you can rely on Sentry to watch for changes and to scan only those changes.
Scan On Demand
ClamXav also installs a Service that lets you scan a file or folder at any time. simply right click on the file or folder you want to scan, pull down to Services, and choose Scan with ClamXav. The application will run and show you the results of the scan.
If you’re running Leopard you must actually drag the plugin for contextual menus into your library to get the Service to work as shown. Read the text file entitled "How to install the plugin" to see exactly how to do this.
If you’re running Snow Leopard or Lion (and presumably Mountain Lion later) you’ll have to log out and back into your account for the contextual menus to be available under Services.