Marco Draghi wrote:
Hi, I've been using Clamav on Cyrus imap mail server.
Clamscan works great on mbox, but I'd like to delete automatically infected mail after clamscan. How can I set it?
Thanks, Marco.
As answered previously on this list
Make sure you only scan one peice of email each time you call clamscan, then by using the return code delete it/quarantine it/flag it/whatever
If their are in a mbox spool file, tools such as formail can help you with that.
You will probaly see a large performance improvement in the above by using clamd with the ScanMail directive uncommented in /etc/clamav.conf or wherever your is.
I have found that you can usualy do something like this
cat $email_msg | clamdscan -
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users