免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1346 | 回复: 0
打印 上一主题 下一主题

卡巴斯基Linux for mail server快速安装指南 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-05 19:14 |只看该作者 |倒序浏览

卡巴斯基Linux for mail server快速安装指南

此指南只适合kav4mailservers-linux-5.0以下版本。
           kav4mailservers-linux-5.0以上版本就很人性化了不需要设定太多设定,根据提示完全可以一步到位的安装完成。(此指南只做参考)

第一部分:安装前的准备工作:
一.硬件要求:
CPU: 英特尔奔腾(intel pentium)系列CPU(或相关兼容产品)
内存: ≧32M
硬盘可用空间: ≧100M
二.软件要求:
1.支持的操作系统及版本:
操作系统名称: 版本:
RedHat        7.3;8.0;9.0
SuSe          8.1;8.2
Debian        3.0
FreeBSD       4.7;5.0
OpenBSD       3.3
注释:其中RdeHat,SuSe 和Debian 是目前世界上应用比较广泛的三种LINUX 操
作系统。
FreeBSD 和OpenBSD 两种开放的UNIX 操作系统。
2.支持的邮件系统及版本
邮件系统名称: 版本:
Sendmail      8.X
Qmail         1.03
Postfix       snapshot_20000529
Exiam         4.0
3.其它软件要求:
软件名称  安装时是否必须  注释
Wget      必须           一种linux 下的网络下载工具
Perl     版本≥5.0 必须   一种编程工具
Webmin   非必须          一种linux 平台上的图形化管理工具

第二部分:安装程序(以rpm 包为例)
步骤一:安上光驱,将安装包文件拷贝到tmp 目录。
[root@test tmp]# mount /mnt/cdrom //安上光驱
[root@test tmp]# cd /mnt/cdrom //进入光驱目录
[root@testcdrom]#cp kav4mailservers-linux-5.0.2.1.i386.rpm /tmp
//复制安装文件到tmp 目录
步骤二:安上软驱,将KEY 文件拷贝到tmp 目录。
[root@test root]# mount /mnt/floppy //安上软驱
[root@test root]# cd /mnt/floppy //进入软驱目录
[root@test root]# cp CStrial-040722-30D.key /tmp
//复制KEY 文件到tmp 目录
步骤三:进入tmp 目录,开始安装。
[root@test floppy]# cd /tmp //进入tmp 目录
[root@testtmp]#rpm -i kav4mailservers-linux-5.0.2.1.i386.rpm
# Run /opt/kav/contrib/config.pl for configuration #
//执行rpm –i 进行安装
步骤四:完成安装后,程序会提示运行# Run /opt/kav/contrib/config.pl 来
与邮件系统进行整合同时配置图形化管理工具和安装KEY 文件。
运行后,程序会询问程序是要装在什么邮件系统上:
[root@test root]# /opt/kav/contrib/config.pl
Please select the MTA you want to configure Kaspersky Anti-Virus for
[sendmail|exim|qmail|postfix]?
输入不同的邮件系统名称后,提示会有所不同。
(4.1)SENDMAIL:
Please select the MTA you want to configure Kaspersky Anti-Virus for
[sendmail|exim|qmail|postfix]? [postfix]:sendmail
程序会询问SENDMAIL 的配置文件sendmail.cf 所在位置。
Where is Sendmail configuration file 'sendmail.cf' located?
[/etc/mail/sendmail.cf]:
询问sendmail 可执行文件所在路径:
Where is Sendmail binary file located? [/usr/sbin/sendmail]:
Webmin module installed successfully. Check it on 'Others' web page.
Depend on Webmin configuration, you may need to enable Kaspersky
Anti-Virus
Webmin module. To do this, on Webmin main page go to
Webmin -> Webmin users ->  -> check box on 'KAV for Mail Servers'
Directory /var/db/kav/5.0/kav4mailservers/keys exists
Installing licenses from current directory.
*********************************************************************

*********
Kaspersky Anti-Virus for Mail Servers configuration completed.
Binaries were installed in /opt/kav/bin directory
Configuration file is /etc/kav/5.0/kav4mailservers.conf
We recommend to add this directory in your PATH environment variable.
To access the man pages add the /opt/kav/man path to the MANPATH env
variable
To start using Kaspersky Anti-Virus you should download latest AV bases;
to do this run /opt/kav/bin/kavupdater.
Also if you're behind the proxy and want to update from Internet, you
should
set environment variables http_proxy and/or ftp_proxy (see wget manual
pages)
To enable mail server protection, restart your mail system as written in
product documentation.
安装完产品后,还要在命令行执行ntsysv,然后将SENDMAIL 的启动项去掉。
然后在系统的启动脚本中加入下列内容:
/usr/sbin/sendmail –bd –q10m –C /etc/mail/sendmail.cf.listen
/usr/sbin/sendmail –q10m –C /etc/mail/sendmail.
如果sendmail的版本大于8.12的话,还要加上这条语句:
/usr/sbin/sendmail –q10m –C /etc/mail/submit.cf
完成安装
(4.2)QMAIL
Please select the MTA you want to configure Kaspersky Anti-Virus for
[sendmail|exim|qmail|postfix]? [postfix]:qmail
程序会询问QMAIL 的队列处理文件qmail-queue 所在位置
Where is qmail binary file located? [/var/qmail/bin/qmail-queue]:
如果顺利的话,程序会自动完成文件重命名和替换工作。如出现下列提示:
cp: cannot stat `/var/qmail/bin/qmail-queue': No such file or directory
mv: cannot stat `/var/qmail/bin/qmail-queue': No such file or directory
cp: cannot create regular file `/var/qmail/bin/qmail-queue': No such file or directory
则还需要进行如下操作:
cd /var/qmail/bin
mv qmail-queue qmail-que
cp / opt/kav/bin/smtpscanner/ qmail-queue
安装完成。
注:WEBMIN和KEY的安装配置信息与SENDMAIL相同,在此就不在进行描述。
(4.3)POSTFIX:
[root@test root]# /opt/kav/contrib/config.pl
Please select the MTA you want to configure Kaspersky Anti-Virus for
[sendmail|exim|qmail|postfix]? [postfix]:postfix
程序会询问POSTFIX 的配置文件main.cf 和master.cf 所在位置
Where is Postfix configuration file 'main.cf' located? [/etc/postfix/main.cf]:
Where is Postfix configuration file 'master.cf' located? [/etc/postfix/master.cf]:
程序会自动完成配置文件的更改动作。
安装完成。
注:WEBMIN 和KEY 的安装配置信息与SENDMAIL 相同,在此就不在进行描
述。
(4.4)EXIM:
[root@test root]# /opt/kav/contrib/config.pl
Please select the MTA you want to configure Kaspersky Anti-Virus for
[sendmail|exim|qmail|postfix]? [postfix]:exim
程序会询问EXAM 的配置文件EXIM.CONF 所在位置
Where is Exim configuration file 'exim.conf' located? [/etc/exim/exim.conf]:
程序会自动完成配置文件的更改动作。
安装完产品后,还要在命令行执行ntsysv,然后将EXIM 的启动项去掉。
然后在系统的启动脚本中加入下列内容:
#exim -q10m -bd -C/etc/exim/exim.conf.listen
#exim -q10m -C/etc/exim/exim.conf
安装完成。
步骤五:重新启动计算机:
[root@test tmp]# shutdown -r now
步骤六:进行升级:
[root@test tmp]# /opt/kav/bin/kavupdater
第三部日常使用:
(一) 关于升级:
1. 如何更改升级地址:
1. 如何进行每日更新反病毒软件病毒库?(定时计划更新)
例如:每天07:00 自动更新病毒数据库
在命令行执行下列命令:

# crontab –e 0 7 * * * /opt/kav/bin/kavupdater
注释:crontab 是linux 系统本身带的一个定时组件。
2.如何进行手动更新病毒数据库?
a. 可以在任何时间使用命令行来执行反病毒数据库的更新。
在命令行执行下列命令:
# /opt/kav/bin/kavupdater
b.利用webmin 进行更新操作。在Run Kaspersky Anti-Virus component 里点
击Kaspersky Anti-Virus KeepUp2Date 组件的Start 按钮。
3.如何通过代理服务器实现病毒数据库升级?
在命令行执行下列命令:
# vi /etc/wgetrc
#http_proxy = http://proxy.yoyodyne.com:18023/ /去掉#号,输入恰当
代理服务器域名及端口/
#ftp_proxy = http://proxy.yoyodyne.com:18023/ /去掉#号,输入恰当
代理服务器域名及端口/
4.如何更改病毒数据库的升级路径?在命令行执行下列命令:
# cd /etc/kav/5.0
# vi servers.lst
输入新的升级路径如:http://avp.com.cn/Bases,并把放在首位。
注释:程序将升级路径存放在/etc/kav/5.0/servers.lst 文件里。可以通过修改这
个文件,来改变升级路径。Vi 是一个linux/unix 下的编辑工具。简单操作如
下:a,插入;q,不存盘退出;wq,存盘退出。
(二) 关于扫描:
1.何进行系统的全盘扫描?
最简单的办法是:
#cd /
# /opt/kav/bin/kavscanner
2.如何进行定时(计划)扫描?
例如:每天晚上12 点对/ftp/public 扫描
# crontab –e 0 7 * * * /opt/kav/bin/kavscanner /ftp/public
3.如何设置对多个文件扫描?
a) 编辑扫描区域文件。在存放扫描路径的文件中,书写格式应是绝对路径,
每个路径单独占一行。如将编辑好的文件scanzone.lst 保存在/home 目
录下
b) 利用kavscanner 对编辑的扫描区域进行扫描。
# /opt/kav/bin/kavscanner -@/home/scanzone.lst
(三) 其它:
1.key 过期后如何更换新的KEY 文件?
将其拷贝至KEY 文件存放的目录下, 默认情况下, 在
/var/db/kav/5.0/kav4mailservers/keys ( 由配置文件
kav4mailservers.conf 里的LicensePath参数指定),重启服务器即可。
2.如何了解本身KEY 文件的情况?
a. 利用linux 命令查看
# /opt/kav/bin/licenseviewer -s
b. 利用webmin 工具查看
在KAV for Mail Servers 中点击Keys info
(四)、关于WEBMIN:
本产品可通过WEBMIN(一种linux 下的图形化管理工具)来实现远程管理和图
形化设置。但基本设置和参数都和命令行下相同。
第四部分配置文件所在路径及用途
/etc/kav/5.0/ 配置文件的主目录,它包括以下内容:
kav4mailservers.conf 程序的配置文件
servers.lst 用来存放升级服务器的网址
locations 产品的安装日志
template_notify_main 通知模板
/opt/kav/ 产品安装主目录,它包括以下内容:
/opt/kav/bin/ 可执行文件存放目录,它包括:
smtpscanner SMTP 检测组件
kavscanner 手动扫描组件
kavupdater 病毒库更新组件
aveserver 防病毒引擎。
/opt/kav/man/ 产品帮助文档存放目录:
/var/db/kav/5.0/ kav4mailservers /bases 病毒库存储目录
/var/db/kav/5.0/ kav4mailservers /bases.backup 病毒库备份存储目录(用来存
储最后一次正确更新的病毒库文件)
/var/db/kav/ kav4mailservers /keys 授权文件存放目录


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/25308/showart_315318.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP