------
/trashscan/ is a shell script that makes the connection between /procmail/ and ClamAV (i.e., when an email arrives, /procmail/ is invoked which itself invokes /trashscan/ in order to have the mail scanned for viruses by ClamAV). It comes with ClamAV.
/cd /tmp/clamav-0.67/contrib/trashscan tar xvfz trashscan-0.08.tar.gz cd trashscan-0.08 //cp -pf trashscan /usr/local/sbin//
---------
anyway the script is using the --mbox switch. isnt that for mbox or can I use it for Maildir?
/jon
Ren� Berber said the following on 2005-04-23 18:38:
Jon wrote:
Hi, Thanks for your reply.
Yes there are many ways. I forgott to mention that i want to use it with procmail.
I use spamassassin for spam filtering so that is covered.
How do I go about configuring clamav to work with procmail. In the links
I sent it seemes they want to send it to "trashcan" whitch no longer is
in the distribution of clamav. Any suggestions?
"trashcan" is the name of a user's mail folder. It's usually named Trash (in Thunderbird or "Deleted Items" in Outlook), I usually create this folder by default when creating each user mailbox. But the recomended option for infected messages is to delete them.
You don't configure clamav to work with procmail, unless you are using clamdscan wich used clamd, then you need to configure clamd.
Procmail works by processing a set of rules, you already know that, the one for virus detection just sends all messages to a script, clamfilter.pl is one possible script, you can then put another rule to see if the message was infected (looking for the 'X-Virus-Found: yes' added by clamfilter.pl) and delete it, for example.
But I have to disagree about a system wide procmail. I use one and it is
owned by root and is located in /etc/procmail and is applied to all
messages comming in.
I've never seen this, but it's probably there for handling mail lists.
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
