ติดตั้ง repo จาก atomic
#wget -q -O - http://www.atomicorp.com/installers/atomic |sh
แค่นี้ ติดตั้ง clamav ก็เป็นแค่เรื่องหมูๆ
สั่ง yum โล้ดดดด
#yum -y install clamd clamav
สั่งให้ service ทำงาน
#service clamd start
อัพเดทฐานข้อมูลไวรัส
#freshclam
สั่งให้รันตอนบูตเครื่อง
#chkconfig clamd on
ต่อด้วย แก้ config ของ exim
#nano /etc/exim.conf
ค้นหาบรรทัด primary_hostname พิมพ์ บรรทัดต่อไปด้วย
av_scanner = clamd:127.0.0.1 3310
จากน้้นค้นหา check_message:
ของเดิมจะเป็นแบบนี้
check_message:
accept
ให้เปลี่ยนเป็น
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 ซะ
Ctrl + x + y
สั่ง restart service exim
#service exim restart
ดู log ซักหน่อย
#tail /var/log/exim/mainlog -f
แล้วก็ลองส่งอีเมล ดูว่าได้รับหรือเปล่า(กันพลาด)
จบ...
Recent comments
22 hours 8 min ago
22 hours 22 min ago
5 days 16 hours ago
5 days 16 hours ago
6 days 4 hours ago
6 days 4 hours ago