服務器搭建手冊之FREEBSDUNIX郵件服務器建設(十一)

六、防病毒與防垃圾郵件功能建立.

1、安裝Clamav

#cd /usr/ports/security/clamav

 

# make install clean

正確選擇:

要想clamav能自動的啟動,要在/etc/rc.conf中加入:

clamav_clamd_enable=”YES”

clamav_freshclam_enable=”YES”

重啟服務器.

2、測試殺毒

# clamscan -r -i /usr/local/www/data

———– SCAN SUMMARY ———–
Known viruses: 40460
Engine version: 0.87
Scanned directories: 63
Scanned files: 1166
Infected files: 0
Data scanned: 13.06 MB
Time: 63.233 sec (1 m 3 s)

3、升級病毒庫

# freshclam

ClamAV update process started at Sun Oct 16 14:32:00 2005
main.cvd is up to date (version: 34, sigs: 39625, f-level: 5, builder: tkojm)
Downloading daily.cvd [*]
daily.cvd updated (version: 1136, sigs: 948, f-level: 6, builder: ccordes)
Database updated (40573 signatures) from database.clamav.net (IP: 140.128.9.18) Clamd successfully notified about the update.

4、安裝MailScanner

# cd /usr/ports/mail/mailscanner

# make install

第一次執行安裝因此需執行make initial-config以建立基本配置文件

# make initial-config

# make clean

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營

發表評論

您的電子郵箱地址不會被公開。 必填項已用*標註