ClamXav Sentry setup

“ClamXav is a free virus checker for Mac OS X. It uses the tried, tested and very popular ClamAV open source antivirus engine as a back end.”

ClamXav is a free virus checker for Mac OS X.  It is located at  Though viruses attacking OS X users is none, it is kind to scan email that may be replied to Windows users.

I am running ClamXav-Sentry to scan download folders and email folders.  The user must add the folders that ClamXav-Sentry watches and at first I added


~/Library/Mail Downloads






These folders have all subfolders scanned also.

But every time the mail program checked my nine (9) email accounts I had many dialog screens filling my desktop each alerting me that a single email had been identified with a virus and had been quarantined.  Wow every day their were dozens likely owing to the long length of time I have had some of these accounts. I do not see a way to turn these notifications off.

This was a little frustrating.  Then it occurred to me that the mail servers were already shunting infected emails to spam/trash/junk folders and that I was rescanning these.

My solution is to not scan the mail folder and all subdirectories with ClamXav-Sentry, but to scan the Inbox for each account.

So, ~/Library/Mail  is removed and a list of ~/Library/Mail/xxxxxxxxx/INBOX.imapmbox

The comprehensive scan will catch the emails in the spam/trash/junk folders of each account when it is evoked.

A final piece of the setup is that to see the Mail folder in Library you use the column view.