menu

精英意识会让人走向孤独

忘记社区密码或者保密贴查看密码的,请给我留言,并留联系方式。

Avatar

Prima Mail Protect 1.1 for Fedora Core 3 Released

经过一周的努力,Prima Mail Protect 1.1 for Fedora Core 3 终于release了。系统基于 amavisd-new-2.3.2 + clamav-0.86-2 构建,适用于运行postfix的各种linux平台,当前配置完成的是Fedora Core 3版本。

据说业内很多邮件防毒网关都采用了类似的组合,很想回biti去看看,eyou系统采用的什么东东。(gate.biti.edu.cn)

为了解决邮件中各种压缩附件的问题,专门去rpmfind收集了各种压缩格式的linux版本,amavisd可以用这些程序将邮件附件进行解压和扫描病毒。

arc-5.21j-1.i386.rpm
arj-3.10-0.1.i386.rpm
cabextract-1.1-2.i386.rpm
freeze-2.5-2.1.fc3.rf.i386.rpm
lzo-1.08-4.1.fc3.rf.i386.rpm
lzop-1.01-1.1.fc3.rf.i386.rpm
rar-3.5-0.b1.1.fc3.rf.i586.rpm
tnef-1.3.3-1.1.fc3.rf.i386.rpm
zoo-2.10-2.i386.rpm

加载了这些模块之后的,在启动amavisd的时候:

Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .mail
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .asc
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .uue
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .hqx
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .ync
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .F    at /usr/bin/unfreeze
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .Z    at /usr/bin/gzip -d
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .gz
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .lzo  at /usr/bin/lzop -d
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .cpio at /usr/bin/pax
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .tar  at /usr/bin/pax
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .deb  at /usr/bin/ar
Aug  5 21:06:18 pcman238 amavis[5836]: Internal decoder for .zip
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .rar  at /usr/local/bin/rar
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .arj  at /usr/bin/arj
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .arc  at /usr/bin/arc
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .zoo  at /usr/bin/zoo
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .lha  at /usr/bin/lha
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .cab  at /usr/bin/cabextract
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .tnef at /usr/bin/tnef
Aug  5 21:06:18 pcman238 amavis[5836]: Found decoder for    .exe  at /usr/local/bin/rar; /usr/bin/lha; /usr/bin/arj
Aug  5 21:06:18 pcman238 amavis[5836]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Aug  5 21:06:18 pcman238 amavis[5836]: Creating db in /var/amavis/db/; BerkeleyDB 0.26, libdb 4.2

哈哈哈,终于perfect了,就算你把病毒放在.tnef这种谁都没听说过的压缩格式上,一样跑不掉!

最后糊了一个特别土特别简陋的setup脚本:


[root@pcman238 ~/Prima_MailProtect_1.1_For_FC3]# ./setup.sh 
####################################################
##                                                ##
##      Prima MailProtect 1.1 For Fedora Core 3   ##
##                                                ##
####################################################

Installing compress-decompress program for amavis, please wait...

warning: Redhat/compress/arc-5.21j-1.i386.rpm: V3 DSA signature: NOKEY, key ID 1ac70ce6
warning: Redhat/compress/freeze-2.5-2.1.fc3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:zoo                    ########################################### [ 11%]
   2:arc                    ########################################### [ 22%]
   3:arj                    ########################################### [ 33%]
   4:cabextract             ########################################### [ 44%]
   5:freeze                 ########################################### [ 56%]
   6:lzo                    ########################################### [ 67%]
   7:lzop                   ########################################### [ 78%]
   8:rar                    ########################################### [ 89%]
   9:tnef                   ########################################### [100%]


Installing perl module of Fedora Core 3, please wait...

warning: Redhat/base/spamassassin-3.0.0-3.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: Redhat/base/perl-Archive-Zip-1.16-1.1.fc3.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
warning: Redhat/base/perl-Convert-BinHex-1.119-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 1ac70ce6
warning: package perl-XML-SAX = 0.12-7 was already added, replacing with perl-XML-SAX <= 0.12-7
Preparing...                ########################################### [100%]
   1:perl                   ########################################### [  1%]
   2:spamassassin           ########################################### [  3%]
   3:perl-Archive-Tar       ########################################### [  4%]
   4:perl-Archive-Zip       ########################################### [  6%]
   5:perl-BerkeleyDB        ########################################### [  7%]
   6:perl-Bit-Vector        ########################################### [  9%]
   7:perl-BSD-Resource      ########################################### [ 10%]
   8:perl-Compress-Zlib     ########################################### [ 12%]
   9:perl-Convert-ASN1      ########################################### [ 13%]
  10:perl-Convert-BinHex    ########################################### [ 15%]
  11:perl-Convert-TNEF      ########################################### [ 16%]
  12:perl-Convert-UUlib     ########################################### [ 18%]
  13:perl-Crypt-SSLeay      ########################################### [ 19%]
  14:perl-Cyrus             ########################################### [ 21%]
  15:perl-Date-Calc         ########################################### [ 22%]
  16:perl-DateManip         ########################################### [ 24%]
  17:perl-DBD-MySQL         ########################################### [ 25%]
  18:perl-DBD-Pg            ########################################### [ 26%]
  19:perl-DBI               ########################################### [ 28%]
  20:perl-Devel-Symdump     ########################################### [ 29%]
  21:perl-Digest-HMAC       ########################################### [ 31%]
  22:perl-Digest-SHA1       ########################################### [ 32%]
  23:perl-File-MMagic       ########################################### [ 34%]
  24:perl-Filter            ########################################### [ 35%]
  25:perl-Filter-Simple     ########################################### [ 37%]
  26:perl-Frontier-RPC      ########################################### [ 38%]
  27:perl-HTML-Parser       ########################################### [ 40%]
  28:perl-HTML-Tagset       ########################################### [ 41%]
  29:perl-Inline            ########################################### [ 43%]
  30:perl-IO-Socket-SSL     ########################################### [ 44%]
  31:perl-IO-String         ########################################### [ 46%]
  32:perl-IO-stringy        ########################################### [ 47%]
  33:perl-IO-Tty            ########################################### [ 49%]
  34:perl-IO-Zlib           ########################################### [ 50%]
  35:perl-LDAP              ########################################### [ 51%]
  36:perl-libwww-perl       ########################################### [ 53%]
  37:perl-libxml-enno       ########################################### [ 54%]
  38:perl-libxml-perl       ########################################### [ 56%]
  39:perl-Mail-Alias        ########################################### [ 57%]
  40:perl-MailTools         ########################################### [ 59%]
  41:perl-MIME-tools        ########################################### [ 60%]
  42:perl-MIME-Types        ########################################### [ 62%]
  43:perl-Net-DNS           ########################################### [ 63%]
  44:perl-Net-Server        ########################################### [ 65%]
  45:perl-Net-SSLeay        ########################################### [ 66%]
  46:perl-NKF               ########################################### [ 68%]
  47:perl-Parse-RecDescent  ########################################### [ 69%]
  48:perl-Parse-Yapp        ########################################### [ 71%]
  49:perl-PDL               ########################################### [ 72%]
  50:perl-RPM2              ########################################### [ 74%]
  51:perl-RPM-Specfile      ########################################### [ 75%]
  52:perl-SGMLSpm           ########################################### [ 76%]
  53:perl-suidperl          ########################################### [ 78%]
  54:perl-TermReadKey       ########################################### [ 79%]
  55:perl-Text-Kakasi       ########################################### [ 81%]
  56:perl-TimeDate          ########################################### [ 82%]
  57:perl-Time-HiRes        ########################################### [ 84%]
  58:perl-Unix-Syslog       ########################################### [ 85%]
  59:perl-URI               ########################################### [ 87%]
  60:perl-XML-SAX           ########################################### [ 88%]
  61:perl-XML-Dumper        ########################################### [ 90%]
  62:perl-XML-Encoding      ########################################### [ 91%]
  63:perl-XML-Grove         ########################################### [ 93%]
  64:perl-XML-LibXML        ########################################### [ 94%]
  65:perl-XML-LibXML-Common ########################################### [ 96%]
  66:perl-XML-NamespaceSuppo########################################### [ 97%]
  67:perl-XML-Parser        ########################################### [ 99%]
  68:perl-XML-Twig          ########################################### [100%]

Installing amavisd-2.3.2, please wait...

Preparing...                ########################################### [100%]
   1:amavisd-new            ########################################### [100%]

Installing clamav-0.86, please wait...

warning: Redhat/RPMS/clamav-0.86.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 6cdf2cc1
Preparing...                ########################################### [100%]
   1:clamav-milter          ########################################### [ 33%]
   2:clamav                 ########################################### [ 67%]
   3:clamav-devel           ########################################### [100%]
--levle: unknown option

AutoDetect hostname and set /etc/amavisd.conf ...


Modify /usr/prima/postfix/mail.cf /usr/prima/postfix/master.cf ...


Starting Services, please wait...

Starting Clam AV daemon:                                   [  OK  ]
Starting freshclam:                                        [  OK  ]
Starting amavisd:                                          [  OK  ]




All clear. Please use the following command to watch if they are work:
 
----------------------------------------------------------------------

      tail -f /var/log/maillog | grep amavisd

----------------------------------------------------------------------

Bye.
[root@pcman238 ~/Prima_MailProtect_1.1_For_FC3]# 

Clamav还有windows版本,可以免费download,并且自动update病毒库。

http://bj.www.bitipcman.com/pub/software/Clamav-0.86.2-1/Windows/

开源世界真伟大~~~~

可惜目前的biti.org.cn是windows平台,只能暂时忍着MDaemon这种东西。 。。。

呵呵,大概3个多月前,每天都搞这些东西。
这么长时间用起来感觉还不错,没有收到过病毒。
就是接收病毒报告的邮箱会有很多病毒报告信的,呵呵。
有没有好的过滤垃圾邮件的办法?

spamassasin

这个东西当然是用了的,但是一段时间之后就不太好用了,还是会有垃圾邮件,虽然比较少。

评论已关闭