On 12/7/2012 3:01 PM, Ronaldo Luiz de Carvalho wrote:
Sorry, I don't explain very well what I'm trying to do
I have a CentOS server running ClamAV. When the server receive e-mails with
attached files, some files attached has inside files with extension .cmd,
.bat, .cpl and others.
My doubt is how could I set ClamAV to reject or delete this attached files
or even the entire e-mail?
Sorry again for the wrong question
Probably the wrong tool for the job. Amavisd-new would be a better fit
for this. It has lots of rules for rejecting on file types and can
expand archives to look at the files inside them. You would not be able
to delete the attachments, but you could reject the email. Amavis can
also run ClamAV and SpamAssassin as part of its checks.
--
Bowie
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml