Hướng dẫn cài đặt ClamAV trên Directadmin
Trịnh Hoàng Bảo Lộc
2013-07-24T02:39:42-04:00
2013-07-24T02:39:42-04:00
https://trinhloc.com/blog/Tai-lieu-May-Chu/Huong-dan-cai-dat-ClamAV-tren-Directadmin-88.html
https://trinhloc.com/uploads/blog/2013_07/img2.png
Trịnh Lộc
https://trinhloc.com/assets/images/logo.png
Thứ tư - 24/07/2013 02:39
1) Install the binaries:
cd /usr/local/directadmin/custombuild
./build up-date
./build set clamav yes
./build clamav
2) Edit /etc/exim.conf
nano /etc/exim.conf
Sau đó bạn tìm tới dòng:
primary_hostname =
Thêm vào trên dòng đó như sau:
av_scanner = clamd:127.0.0.1 3310
Tìm tiếp
check_message:
Thêm vào bên dưới
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:comifrf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
3) Restart exim:
/etc/init.d/exim restart #Redhat/Debian
/usr/local/etc/rc.d/exim restart #FreeBSD