ການຕິດຕັ້ງ ClamAV ໃນ Linux/Directadmin
ອັນນີີ້ບັນທຶກໄວ້ສຳລັບ ຜູ້ທີ່ໃຊ້ DA
1.ເລີ່ມຈາກ ຊຸດຄຳສັ່ງທຳອິິດ ຄືການອັບເດດ custombuild , ຕັ້ງໃຫ້ ClamAV ເປັນ yes ແລ້ວກໍສັ່ງ build ClamAV ຕາມລຳດັບ
cd /usr/local/directadmin/custombuild ./build update ./build set clamav yes ./build clamav
*ຫມາຍເຫດ: ຫາກເຊີບເວີເຮົາໃຊ້ custombuild v2 ຢູ່ແລ້ວໃຫ້ຂ້າມຂັ້ນຕອນທີ່ 2 ໄປເຮັດຕອນທີ່ 4 ເລີຍ
2. ຈາກນັ້ນໃຫ້ໄປແກ້ ໄຟລ /etc/exim.conf, ແລະເພິ່ມຄຳສັ່ງລຸມນີ້ໄວ້ກ່ອນຫນ້າ “primary_hostname =”:
av_scanner = clamd:127.0.0.1 3310
3. ເພີ່ມໃຫ້ ClamAV Scan eMail ໃນ /etc/exim.conf ດ້ວຍການວາງ Code ລຸ່ມນີ້ໄວ້ທາງກ້ອງ “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 = */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
4, ສັ່ງ Restart Exim
/etc/init.d/exim restart #Redhat/Debian /usr/local/etc/rc.d/exim restart #FreeBSD
ຖືວ່າສຳເລັດ
ຫາກຈະໃຫ້ສະແກນທຸກໆມື້ກໍເຮັດແບບນີ້
mkdir /virus/ echo 'clamscan -i -v -r /home/ --move=/virus/ --log=/virus/clamscan.log' > /etc/cron.daily/clamscan chmod a+x /etc/cron.daily/clamscan service crond restart
Note: ໄຟລທີ່ກ່ຽວຂ້ອງ
/etc/exim.clamav.load.conf