
Originally Posted by
chirpy
No, that won't work as that area is not for ACL's. Why not simply disable clamav on that server if your email is already being scanned elsewhere?
Thanks, chirpy. I'll be keeping that server as a secondary MX. I'm mainly just trying to have the majority of mail hit the filtering box first to help ease the load on the cPanel box. It's crazy, but for the each of the last two weeks my filters have rejected double what they have previously (mainly due to sober.u). When looked at as an increase of thousands per day, the constant filtering adds a not insignificant load to an aging box. 
OK, so in the ACL area, I have this.
Code:
##### clamav ACL, reject virus infected mails with proper error
deny message = This message contains malformed MIME ($demime_reason).
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content \
($malware_name)
demime = *
malware = *
deny message = Potentially executable content. If you meant to send this file \
then please package it up as a zip file and resend it.
demime = ade:adp:bas:bat:chm:cmd:com:cpl:crt:eml:exe:hlp:hta:inf:ins:isp:jse:lnk:mdb:mde:msc:msi:msp:pcd:reg:scr:sct:shs:url:vbs:vbe:wsf:wsh:wsc
# Add X-Scanned Header
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
##### end clamav ACL
Should I put my !hosts line in below each of the deny message directives?