Emin Islam Tatli wrote:
> Hi,
> 
> I try to integrate clamav in my exim configuration.
> 
> as av_scanner I could not manage using clamd and always got the error "
> clamd: unable to read from socket (No such file or directory)", even
> though the files and directories existed (pid and ctl files).

Make sure you have AllowSupplementaryGroups setup properly for clamd to
access your mail spool.

> Then I swicthed to commanline version and defined av_scanner as follows:
> 
> av_scanner = cmdline:/usr/local/bin/clamscan --disable-summary
> --max-files=100 --threads=5 --stdout %s: FOUND:.*::(.+)FOUND$

This one works for me:
av_scanner = cmdline:/usr/bin/clamscan -i --unrar --unarj --unzoo --lha
--tar --tgz %s:FOUND: :: (.+) FOUND

> and the exim ACL:
> 
> # Reject virus infested messages.
>  deny  message = This message contains malware ($malware_name)
>        demime = *
>        malware = *

I assume you set that inside the acl_smtp_data acl. It looks correct to me.

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to