CalmAv Exim Setup

develop

Verified User
Joined
Jun 9, 2016
Messages
147
Location
Istanbul, TR
Hello All,

I have just finished install ClamAv on sistem by this guide. https://www.woktron.com/secure/knowledgebase/136/Installation-Clam-Anti-Virus-ClamAV-on-DirectAdmin-or-CentOS.html

ClamAv works well. I see on directadmin service monitor.

netstat -tap | grep clamd

Result:

tcp 0 0 localhost.local:dyna-access *:* LISTEN 4405/clamd

But on exim conf there is no "check_message:" part. And I could not past necessary scripts for exim.conf. Please check it below.

PHP:
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 = */defer_ok
deny message = This message contains an attachment of a type which we  do not accept (.$found_extension)
demime = bat:com:pif:prf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
And exim not scan email s without this code. On email headers there is no "X-Antivirus-Scanner:..." details.

Thanks.
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
500
Location
Murfreesboro
on the options.conf what do you have for is clamav exim set yes?

Code:
cd /usr/local/directadmin/custombuild
cat options.conf
#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
The following commands should couple exim with clamav:

Code:
cd /usr/local/directadmin/custombuild
./build set clamav yes
./build set clamav_exim yes
./build set exim yes
./build set eximconf yes
./build set eximconf_release 4.5


./build clamav
./build exim
./build exim_conf
 

develop

Verified User
Joined
Jun 9, 2016
Messages
147
Location
Istanbul, TR
Thank you for all answers.

Special thanks zEitEr

Fixed:

cd /usr/local/directadmin/custombuild
./build set clamav yes
./build set clamav_exim yes
./build set exim yes
./build set eximconf yes
./build set eximconf_release 4.5


./build clamav
./build exim
./build exim_conf
 
Top