sHuKKo
Verified User
EDIT:: THIS POST IS OUTDATED AND LINKS ARE REMOVED. PLEASE USE ORIGINAL @HOW@ SCRIPT.
NOTES:
I used to install clamav to my new servers using @How@'s update.script
But it seems like all posts are now deleted and some links not working. So I spent some time and create a new standalone clamav install script. Almost all parts of this script is taken from previous update.script.I tried this script on my several centos 5.x servers without any problem.
This script only installs clamav and does not make any changes on your exim.conf.
To change your exim.conf you can follow directions below:
before
add
after
add
Save And Restart exim.
NOTES:
I used to install clamav to my new servers using @How@'s update.script
But it seems like all posts are now deleted and some links not working. So I spent some time and create a new standalone clamav install script. Almost all parts of this script is taken from previous update.script.I tried this script on my several centos 5.x servers without any problem.
This script only installs clamav and does not make any changes on your exim.conf.
Code:
wget http://server.medyabim.com/clamd/clamavkur.sh
chmod +x clamavkur.sh
./clamavkur.sh
To change your exim.conf you can follow directions below:
Code:
nano -w /etc/exim.conf
before
Code:
primary_hostname =
add
Code:
av_scanner = clamd:/tmp/clamd
after
Code:
check_message:
add
Code:
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 Antivirus
Save And Restart exim.
Code:
service exim restart
Last edited: