必要なソフトウェアをインストール
yum install clamav clamav-db clamav-devel clamav-milter clamd
/etc/freshclam.confを編集
# Comment or remove the line below. #Example
ウィルス対策の状態を最新にするため以下を実行
freshclam
/etc/clamd.confを書き換えて、メールの送信先を設定
VirusEvent echo "VIRUS ALERT: %v" | mail -s "Virus Alert" support@worldcraft.co.jp
デーモンの軌道
/etc/init.d/clamd start
デーモンが自動的に起動されるように設定
/sbin/chkconfig clamd on
デーモンが自動起動になっていることをチェック
/sbin/chkconfig --list clamd
デーモンの死活監視cron例
0 * * * * test -z "`/etc/init.d/clamd status | grep pid`" && echo 'clamd daemon is stopped.' | mail support@worldcraft.co.jp