- 论坛徽章:
- 0
|
Red Hat Enterprise Linux 4.1 + F-Prot Antivirus + MailScanner 4.46.2-2安装笔记
作者:fandy
电子邮箱:cbbc@163.com
QQ:332018422
建立日期:2005年10月07日,最后修改日期:2005年10月12日
版权说明:本文章的内容归作者版权所有,同时也接受大家的转贴,但一定要保存作者信息和出处,多谢!
F-Prot Antivirus + MailScanner 4.46.2-2的安装文章可以在google网站找到好多的介绍啦,但都是使用Redhat 9.0、Fedora Core或者是其它底版本的介绍,找来找去就是一些重复旧资料!要找一点新的安装介绍好像也难找到,不是没有就算找到了也不一定可以打开,所以本制作了一份在Red Hat Enterprise Linux 4.1操作系统下的配置记录,希望可以帮助到大家啦!(注在配置以下的信息前,请先安装好Mail System,可以参考一下本人的 “RedHat AS 4.1 + Postfix + dovecot + Apache + OpenWebMail 安装笔记” 这篇文章。以下的操作请使用root用户来操作)
Step0、实现环境:
网络域名:easy.com
DNS主机名称:pdc.easy.com
DNS主机IP地址:192.168.1.254
邮件主机名称:mail.easy.com
邮件主机IP地址:192.168.1.253
操作系统:RedHat Enterprise Server 4.1中文版
Step1、需要软件:
fp-linux-ws.rpm
MailScanner-4.46.2-2.rpm.tar.gz
Step2、软件安装过程:
# rpm -ivh fp-linux-ws.rpm(F-Prot Antivirus安装过程)
Preparing... ############################# [100%]
1:fp-linux-ws ########################### [100%]
(注意:在安装这个fp-linux-ws.rpm的同时,如果本机可以连接internet的
话,同时也会自动升级病毒!)
# tar -zxvf MailScanner-4.46.2-2.rpm.tar.gz (MailScanner解压过程)
MailScanner-4.46.2-2/
MailScanner-4.46.2-2/perl-Archive-Zip-1.14-1.src.rpm
MailScanner-4.46.2-2/perl-Compress-Zlib-1.34-1.src.rpm
MailScanner-4.46.2-2/perl-Convert-BinHex-1.119-2.src.rpm
MailScanner-4.46.2-2/perl-Convert-TNEF-0.17-1.src.rpm
MailScanner-4.46.2-2/perl-ExtUtils-MakeMaker-6.30-1.src.rpm
MailScanner-4.46.2-2/perl-File-Spec-0.82-1.src.rpm
MailScanner-4.46.2-2/perl-File-Temp-0.16-1.src.rpm
MailScanner-4.46.2-2/perl-HTML-Parser-3.45-1.src.rpm
MailScanner-4.46.2-2/perl-HTML-Tagset-3.03-1.src.rpm
MailScanner-4.46.2-2/perl-IO-stringy-2.108-1.src.rpm
MailScanner-4.46.2-2/perl-MailTools-1.50-1.src.rpm
MailScanner-4.46.2-2/perl-MIME-tools-5.417-1.src.rpm
MailScanner-4.46.2-2/perl-Net-CIDR-0.10-1.src.rpm
MailScanner-4.46.2-2/perl-TimeDate-1.1301-3.src.rpm
MailScanner-4.46.2-2/MailScanner-perl-MIME-Base64-3.05-5.src.rpm
MailScanner-4.46.2-2/CheckModuleVersion
MailScanner-4.46.2-2/install.sh
MailScanner-4.46.2-2/README
MailScanner-4.46.2-2/ExtUtils-MakeMaker-6.30.tar.gz
MailScanner-4.46.2-2/tnef-1.2.3.1-1.i386.rpm
MailScanner-4.46.2-2/QuickInstall.txt
MailScanner-4.46.2-2/mailscanner-4.46.2-2.noarch.rpm
# cd MailScanner-4.46.2-2 (进入MailScanner软件解压目录)
# ./install.sh (执行MailScanner软件的安装命令)
Good. You have the patch command.
Good, you have /usr/src/redhat in place.
Writing a .rpmmacros file in your home directory to stop
unpackaged files breaking the build process.
You can delete it once MailScanner is installed if you want to.
Good, you appear to only have 1 copy of Perl installed.
I think you are running on RedHat Linux, Mandrake Linux or SuSE Linux.
Good, you appear to have the basic development tools installed.
This script will pause for a few seconds after each major step,
so do not worry if it appears to stop for a while.
If you want it to stop so you can scroll back through the output
then press Ctrl-S to stop the output and Ctrl-Q to start it again.
If this fails due to dependency checks, and you wish to ignore
these problems, you can run
./install.sh nodeps
Setting Perl5 search path
I think your system will build architecture-dependent modules for i386
命令执行过程,编译过程可能需要10多分钟,视计算机的性能而定(略)
Do not worry too much about errors from the next command.
It is quite likely that some of the Perl modules are
already installed on your system.
The important ones are HTML-Parser and MIME-tools.
Preparing... ##################################### [100%]
1:perl-Convert-TNEF ################################### [100%]
Oh good, module Compress::Zlib version 1.34 is already installed.
Oh good, module Archive::Zip version 1.14 is already installed.
Installing tnef decoder
Preparing... ##################################### [100%]
1:tnef ##################################### [100%]
Now to install MailScanner itself.
NOTE: If you get lots of errors here, run the install.sh script
NOTE: again with the command "./install.sh nodeps"
Preparing... #################################### [100%]
1:mailscanner ################################### [100%]
To activate MailScanner run the following commands:
service sendmail stop
chkconfig sendmail off
chkconfig --level 2345 MailScanner on
service MailScanner start
For technical support, please read the MAQ at
www.mailscanner.biz/maq/
and buy the book at
www.mailscanner.info/store
Please buy the MailScanner book from www.mailscanner.info!
It is a very useful administration guide and introduction
to MailScanner. All the proceeds go directly to making
MailScanner a better supported package than it is today.
Step3、修改/etc/MailScanner/MailScanner.conf文件设定:
Run As User =
更改为:
Run As User = postfix
Run As Group =
更改为:
Run As Group = postfix
Incoming Queue Dir = /var/spool/mqueue.in
更改为:
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/ mqueue
更改为:
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = sendmail
更改为:
MTA = postfix
Virus Scanners = none
更改为:
Virus Scanners = f-prot
Step4、修改/etc/postfix/main.cf文件设定:
#header_checks = regexp:/etc/postfix/header_checks
更改为:
header_checks = regexp:/etc/postfix/header_checks
Step5、修改/etc/postfix/header_checks文件设定:
增加以下的代码:
/^Received:/ HOLD
Step6、修改变更目录权限:
#chown postfix:postfix /var/spool/MailScanner/incoming
#chown postfix:postfix /var/spool/MailScanner/quarantine
Step7、停止postfix服务:
# service postfix stop(停止postfix服务器动作)
Shutting down postfix: [ 确定 ]
Step8、重新启动MailScanner服务:
[root@mail tmp]# service MailScanner restart
Shutting down MailScanner daemons:
MailScanner: [ 确定 ]
incoming postfix: [ 确定 ]
outgoing postfix: [ 确定 ]
Starting MailScanner daemons:
incoming postfix: [ 确定 ]
outgoing postfix: [ 确定 ]
MailScanner: [ 确定 ]
Step9、测试结果:
从以下的网站下载一个测试病毒文件:
连接地址:
http://www.eicar.org/anti_virus_test_file.htm
文件名称为:eicar.com
编写一封测试邮件:
结果会收一封以下的警告邮件:
邮件内容以下:
同时也可以使用以下的命令查看MailScanner日志信息:
# grep “MailScanner” /var/log/maillog
Oct 13 22:12:21 mail MailScanner[7917]: Other Checks: Found 1 problems
Oct 13 22:12:21 mail MailScanner[7917]: Requeue: EE734507BF.2CF01 to B52DB50DB4
Oct 13 22:12:21 mail MailScanner[7917]: Cleaned: Delivered 1 cleaned messages
Oct 13 22:12:21 mail MailScanner[7917]: Notices: Warned about 1 messages
Oct 13 22:12:21 mail MailScanner[7917]: New Batch: Scanning 1 messages, 2094 bytes
Oct 13 22:12:21 mail MailScanner[7917]: Virus and Content Scanning: Starting
Oct 13 22:12:21 mail MailScanner[7917]: Requeue: 35EFB50DB4.6F89F to 3CADE507BF
Oct 13 22:12:21 mail MailScanner[7917]: Uninfected: Delivered 1 messages
出现以上的日志信息就代表您的F-Prot Antivirus + MailScanner-4.31.6-1架
设已经成功啦,真的要恭喜您啦!
Step10、库升级的F-Prot Antivirus病毒的操作:
# ./check-updates.sh
The check-updates.sh script has been replaced by a perl script:
check-updates.pl.
The check-updates.sh script has been deprecated
Please make appropriate changes to your crontab entries.
***************************************
* F-Prot Antivirus Updater *
***************************************
Nothing to be done...
因为以是最新权了,所以不用升级了!
Step11、重新启动操作系统:
# reboot (重新启动linux操作系统的命令)
Add1、本人的其它作品:
1、 RedHat Enterprise Server 4.1 安装Jabberd-2.0s9安装笔记
连接地址:
http://www.gd-linux.com/bbs/showthread.php?t=2845
2、 RedHat Enterprise Server 4.1 下配置jdk-1.5.0.04安装笔记
连接地址:
http://www.gd-linux.com/bbs/showthread.php?t=2813
3、Red Hat Enterprise Linux 4.1下配置BIND -9.2.4-2安装笔记
连接地址:
http://www.gd-linux.com/bbs/showthread.php?t=2866
4、RedHat AS 4.1 + Postfix + dovecot + Apache + OpenWebMail 安装笔记
连接地址:
http://www.gd-linux.com/bbs/showthread.php?t=2864
5、Red Hat Enterprise Linux 4.1 + F-Prot Antivirus + MailScanner 安装笔记
连接地址:
http://www.gd-linux.com/bbs/showthread.php?t=2953
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16907/showart_250072.html |
|