öàªèÒ »ÃÐàÀ·µèÒ§æ
öàªèÒ ¨Ñ§ËÇÑ´
Howto Install ClamAV on DA DirectAdmin
Çѹ·Õè: 24/07/2008
àÇÅÒ: 09:56:23
ã¹ DirectAdmin äÁèä´éµÔ´µÑé§ ClamAV Anti Virus ÁÒãËé...àÃÒ¡çÁÒµÔ´µÑé§ clamav + exim à¢éÒ´éÇ¡ѹ´Ñ§¹Õé¤ÃѺ
download clamav version ÅèÒÊØ´ÁÒ
http://www.clamav.net
áÅéÇ·Ó¡ÒÃᵡä¿ÅìÍÍ¡áÅеԴµÑé§à¢éҡѺ FreeBSD 6.1
groupadd clamav
useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
tar zxvf clamav-0.8x.x.tar.gz
cd clamav-0.8x.x
./configure
./make
./make install
perl -pi -e "s/^Example/#Example/g" /etc/clamd.conf
perl -pi -e "s/^#MaxThreads 10/MaxThreads 5/g" /etc/clamd.conf
perl -pi -e "s/^#ScanMail/ScanMail/g" /etc/clamd.conf
perl -pi -e "s/^LocalSocket /tmp/clamd/LocalSocket /var/run/clamav/clamd/g" /etc/clamd.conf
perl -pi -e "s/^Example/#Example/g" /etc/freshclam.conf
mkdir /var/run/clamav
·Ó¡ÒÃ start clamd
/usr/local/etc/rc.d/clamd.sh start
áÅéÇä» config exim ¤ÃѺ
vi /etc/exim.conf
## Find primary_hostname and add the following line above
av_scanner = clamd:/var/run/clamav/clamd
## Find check_message:
## Make sure it looks like this:
check_message:
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
accept
## Save and exit
·Ó¡ÒÃ restart clamd services
/usr/local/etc/rc.d/clamd.sh restart
áÅéÇ·Ó¡Òà monitor ´Ù¤ÃѺ
tail -f /var/log/exim/mainlog
¨ÐàËç¹ÇèÒÁÕâ´¹ "rejected RCPT" ¡Ñ¹à¾Õº...
download clamav version ÅèÒÊØ´ÁÒ
http://www.clamav.net
áÅéÇ·Ó¡ÒÃᵡä¿ÅìÍÍ¡áÅеԴµÑé§à¢éҡѺ FreeBSD 6.1
groupadd clamav
useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
tar zxvf clamav-0.8x.x.tar.gz
cd clamav-0.8x.x
./configure
./make
./make install
perl -pi -e "s/^Example/#Example/g" /etc/clamd.conf
perl -pi -e "s/^#MaxThreads 10/MaxThreads 5/g" /etc/clamd.conf
perl -pi -e "s/^#ScanMail/ScanMail/g" /etc/clamd.conf
perl -pi -e "s/^LocalSocket /tmp/clamd/LocalSocket /var/run/clamav/clamd/g" /etc/clamd.conf
perl -pi -e "s/^Example/#Example/g" /etc/freshclam.conf
mkdir /var/run/clamav
·Ó¡ÒÃ start clamd
/usr/local/etc/rc.d/clamd.sh start
áÅéÇä» config exim ¤ÃѺ
vi /etc/exim.conf
## Find primary_hostname and add the following line above
av_scanner = clamd:/var/run/clamav/clamd
## Find check_message:
## Make sure it looks like this:
check_message:
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
accept
## Save and exit
·Ó¡ÒÃ restart clamd services
/usr/local/etc/rc.d/clamd.sh restart
áÅéÇ·Ó¡Òà monitor ´Ù¤ÃѺ
tail -f /var/log/exim/mainlog
¨ÐàËç¹ÇèÒÁÕâ´¹ "rejected RCPT" ¡Ñ¹à¾Õº...
¤ÇÒÁ¤Ô´àËç¹·Ñé§ËÁ´
ÂѧäÁèÁÕ¤ÇÒÁ¤Ô´àËç¹ ÁÒÃèÇÁáÊ´§¤ÇÒÁ¤Ô´àËç¹à»ç¹¤¹ááÊÔ!