รถเช่า ประเภทต่างๆ
รถเช่า จังหวัด
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" กันเพียบ...
ความคิดเห็นทั้งหมด
ยังไม่มีความคิดเห็น มาร่วมแสดงความคิดเห็นเป็นคนแรกสิ!