How to install ClamAV and config EXIM on DirectAdmin(CentOS)

user warning: Unknown column 'u.signature_format' in 'field list' query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.signature, u.signature_format, u.picture, u.data, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 60 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 30 in /home/cmsdd/domains/cmsdd.com/public_html/modules/comment/comment.module on line 992.

ติดตั้ง 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

แล้วก็ลองส่งอีเมล ดูว่าได้รับหรือเปล่า(กันพลาด)

จบ...