This script only installs clamav and does not make any changes on your exim.conf.
کد:
wget http://server.medyabim.com/clamd/clamavkur.sh
chmod +x clamavkur.sh
./clamavkur.shTo change your exim.conf you can follow directions below:
کد:
nano -w /etc/exim.confbefore
primary_hostname =add
av_scanner = clamd:/tmp/clamdafter
check_message:add
کد:
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 = 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 AntivirusSave And Restart exim.